<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="mitz-consent-provide" />
  <language value="nl-NL" />
  <url value="http://vzvz.nl/fhir/otv/StructureDefinition/mitz-consent-provide" />
  <name value="MitzConsentProvide" />
  <status value="draft" />
  <publisher value="VZVZ" />
  <contact>
    <name value="VZVZ" />
    <telecom>
      <system value="email" />
      <value value="standaardisatie@vzvz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Notification of a care provider to Mitz registry that the 'consent button' is used on behalf of the patient" />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="NL" />
      <display value="Netherlands" />
    </coding>
  </jurisdiction>
  <copyright value="VZVZ" />
  <fhirVersion value="4.3.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://vzvz.nl/fhir/otv/StructureDefinition/mitz-base-consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.status">
      <path value="Consent.status" />
      <fixedCode value="active" />
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <definition value="Category is required but actual data catagory is defined by the situation code. Therefore fixed value INFA." />
      <max value="1" />
    </element>
    <element id="Consent.category.coding">
      <path value="Consent.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Consent.category.coding.system">
      <path value="Consent.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
    </element>
    <element id="Consent.category.coding.code">
      <path value="Consent.category.coding.code" />
      <fixedCode value="INFA" />
    </element>
    <element id="Consent.policyRule">
      <path value="Consent.policyRule" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConsentPolicyRule" />
        </extension>
        <strength value="required" />
        <valueSet value="http://vzvz.nl/fhir/otv/ValueSet/situatiecode" />
      </binding>
    </element>
    <element id="Consent.policyRule.coding.system">
      <path value="Consent.policyRule.coding.system" />
      <min value="1" />
    </element>
    <element id="Consent.policyRule.coding.version">
      <path value="Consent.policyRule.coding.version" />
      <short value="Version of the system" />
      <definition value="Catalog version, version conforming to the relevant consent catalog" />
      <min value="1" />
    </element>
    <element id="Consent.policyRule.coding.code">
      <path value="Consent.policyRule.coding.code" />
      <short value="Situation code" />
      <definition value="Situation code" />
      <min value="1" />
    </element>
    <element id="Consent.provision.actor">
      <path value="Consent.provision.actor" />
      <definition value="Source provider. Only required when the consent is given to a specific provider." />
      <max value="1" />
    </element>
    <element id="Consent.provision.actor.role.coding.code">
      <path value="Consent.provision.actor.role.coding.code" />
      <short value="Custodian" />
      <fixedCode value="CST" />
    </element>
  </differential>
</StructureDefinition>