{
  "resourceType": "StructureDefinition",
  "id": "StructureDefinition-ACP-TreatmentDirective",
  "url": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-TreatmentDirective",
  "name": "ACPTreatmentDirective",
  "title": "ACP Treatment Directive",
  "status": "draft",
  "publisher": "IKNL",
  "contact": [
    {
      "name": "IKNL",
      "telecom": [
        {
          "system": "email",
          "value": "info@iknl.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "[TO-DO]",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "pzp-dataset-100-beta1-2025-TO-DO",
      "uri": "[TO-DO]",
      "name": "ART-DECOR Dataset Proactieve Zorgplanning 1.0.0-beta.1 [TO-DO]"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "short": "TreatmentDirective, Behandelgrenzen"
      },
      {
        "id": "Consent.extension:verification",
        "path": "Consent.extension",
        "sliceName": "verification"
      },
      {
        "id": "Consent.extension:verification.extension",
        "path": "Consent.extension.extension",
        "min": 1
      },
      {
        "id": "Consent.extension:verification.extension:VerificationDate",
        "path": "Consent.extension.extension",
        "sliceName": "VerificationDate"
      },
      {
        "id": "Consent.extension:verification.extension:VerificationDate.valueDateTime:valueDateTime.value",
        "path": "Consent.extension.extension.valueDateTime.value",
        "type": [
          {}
        ]
      },
      {
        "id": "Consent.extension:comment",
        "path": "Consent.extension",
        "sliceName": "comment",
        "comment": "[TO-DO] In the context of Advanced Care Planning (ACP), this extension is used to convey supporting comment to the",
        "mustSupport": true
      },
      {
        "id": "Consent.extension:treatment",
        "path": "Consent.extension",
        "sliceName": "treatment",
        "comment": "[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": true
      },
      {
        "id": "Consent.extension:treatment.valueCodeableConcept:valueCodeableConcept",
        "path": "Consent.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "mustSupport": false,
        "binding": {
          "strength": "extensible",
          "valueSetUri": "https://fhir.iknl.nl/fhir/PZP/ValueSet/ValueSet-ACP-TreatmentType"
        }
      },
      {
        "id": "Consent.extension:additionalSources",
        "path": "Consent.extension",
        "sliceName": "additionalSources"
      },
      {
        "id": "Consent.extension:additionalSources.value[x]",
        "path": "Consent.extension.value[x]",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-QuestionnaireResponse"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-AdvanceDirective"
          }
        ]
      },
      {
        "id": "Consent.modifierExtension",
        "path": "Consent.modifierExtension",
        "min": 1
      },
      {
        "id": "Consent.modifierExtension:treatmentPermitted",
        "path": "Consent.modifierExtension",
        "sliceName": "treatmentPermitted",
        "mustSupport": true
      },
      {
        "id": "Consent.modifierExtension:treatmentPermitted.valueCodeableConcept:valueCodeableConcept.text",
        "path": "Consent.modifierExtension.valueCodeableConcept.text",
        "comment": "[TO-DO] In the context of Advance Care Planning (ACP), this element should be populated if the `.treatmentPermitted.valueCodeableConcept.code` = \"JA_MAAR\" to indicate what the limitations are."
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient"
          }
        ]
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient"
          }
        ]
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-AdvanceDirective"
          }
        ]
      },
      {
        "id": "Consent.except.extension:restrictions",
        "path": "Consent.except.extension",
        "sliceName": "restrictions",
        "mustSupport": true
      }
    ]
  }
}