<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSItreatment" />
  <name value="ConsentSItreatment" />
  <status value="draft" />
  <fhirVersion value="4.1.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSI" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.category.coding.system">
      <path value="Consent.category.coding.system" />
      <fixedUri value="urn:nijz:crpp:consentcategory" />
    </element>
    <element id="Consent.category.coding.code">
      <path value="Consent.category.coding.code" />
      <fixedCode value="treatment" />
    </element>
    <element id="Consent.category.coding.display">
      <path value="Consent.category.coding.display" />
      <fixedString value="treatment" />
    </element>
    <element id="Consent.performer">
      <path value="Consent.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
      </type>
    </element>
    <element id="Consent.provision.actor.role.coding.code">
      <path value="Consent.provision.actor.role.coding.code" />
      <fixedCode value="PROV" />
    </element>
    <element id="Consent.provision.actor.role.coding.display">
      <path value="Consent.provision.actor.role.coding.display" />
      <fixedString value="healthcare provider" />
    </element>
    <element id="Consent.provision.action.coding.system">
      <path value="Consent.provision.action.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/consentaction" />
    </element>
    <element id="Consent.provision.action.coding.code">
      <path value="Consent.provision.action.coding.code" />
      <fixedCode value="access" />
    </element>
    <element id="Consent.provision.action.coding.display">
      <path value="Consent.provision.action.coding.display" />
      <fixedString value="Access" />
    </element>
    <element id="Consent.provision.purpose.system">
      <path value="Consent.provision.purpose.system" />
      <fixedUri value="http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" />
    </element>
    <element id="Consent.provision.purpose.code">
      <path value="Consent.provision.purpose.code" />
      <fixedCode value="TREAT" />
    </element>
    <element id="Consent.provision.purpose.display">
      <path value="Consent.provision.purpose.display" />
      <fixedString value="treatment" />
    </element>
  </differential>
</StructureDefinition>