<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="StructureDefinition-ACP-TreatmentDirective" />
  <url value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-TreatmentDirective" />
  <name value="ACPTreatmentDirective" />
  <title value="ACP Treatment Directive" />
  <status value="draft" />
  <publisher value="IKNL" />
  <contact>
    <name value="IKNL" />
    <telecom>
      <system value="email" />
      <value value="info@iknl.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="[TO-DO]" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
    <uri value="[TO-DO]" />
    <name value="ART-DECOR Dataset Proactieve Zorgplanning 1.0.0-beta.1 [TO-DO]" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent">
      <path value="Consent" />
      <short value="TreatmentDirective, Behandelgrenzen" />
    </element>
    <element id="Consent.extension:verification">
      <path value="Consent.extension" />
      <sliceName value="verification" />
    </element>
    <element id="Consent.extension:verification.extension">
      <path value="Consent.extension.extension" />
      <min value="1" />
    </element>
    <element id="Consent.extension:verification.extension:VerificationDate">
      <path value="Consent.extension.extension" />
      <sliceName value="VerificationDate" />
    </element>
    <element id="Consent.extension:verification.extension:VerificationDate.valueDateTime:valueDateTime.value">
      <path value="Consent.extension.extension.valueDateTime.value" />
    </element>
    <element id="Consent.extension:comment">
      <path value="Consent.extension" />
      <sliceName value="comment" />
      <comment value="[TO-DO] In the context of Advanced Care Planning (ACP), this extension is used to convey supporting comment to the" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.extension:treatment">
      <path value="Consent.extension" />
      <sliceName value="treatment" />
      <comment value="[TO-DO] In the context of Advance Care Planning (ACP), this extension is used to exchange codes representing specific treatments relevant to ACP discussions. These treatments include, resuscitation (CPR), mechanical invasive ventilation, admission to an intensive care unit (ICU), hospital admission, administration of blood products, and other related medical interventions." />
      <mustSupport value="true" />
    </element>
    <element id="Consent.extension:treatment.valueCodeableConcept:valueCodeableConcept">
      <path value="Consent.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <mustSupport value="false" />
      <binding>
        <strength value="extensible" />
        <valueSetUri value="https://fhir.iknl.nl/fhir/PZP/ValueSet/ValueSet-ACP-TreatmentType" />
      </binding>
    </element>
    <element id="Consent.extension:additionalSources">
      <path value="Consent.extension" />
      <sliceName value="additionalSources" />
    </element>
    <element id="Consent.extension:additionalSources.value[x]">
      <path value="Consent.extension.value[x]" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-QuestionnaireResponse" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-AdvanceDirective" />
      </type>
    </element>
    <element id="Consent.modifierExtension">
      <path value="Consent.modifierExtension" />
      <min value="1" />
    </element>
    <element id="Consent.modifierExtension:treatmentPermitted">
      <path value="Consent.modifierExtension" />
      <sliceName value="treatmentPermitted" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.modifierExtension:treatmentPermitted.valueCodeableConcept:valueCodeableConcept.text">
      <path value="Consent.modifierExtension.valueCodeableConcept.text" />
      <comment value="[TO-DO] In the context of Advance Care Planning (ACP), this element should be populated if the `.treatmentPermitted.valueCodeableConcept.code` = &quot;JA_MAAR&quot; to indicate what the limitations are." />
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient" />
      </type>
    </element>
    <element id="Consent.consentingParty">
      <path value="Consent.consentingParty" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-RelatedPerson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient" />
      </type>
    </element>
    <element id="Consent.source[x]">
      <path value="Consent.source[x]" />
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-AdvanceDirective" />
      </type>
    </element>
    <element id="Consent.except.extension:restrictions">
      <path value="Consent.except.extension" />
      <sliceName value="restrictions" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>