{
  "resourceType": "StructureDefinition",
  "id": "zib-AdvanceDirective",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective",
  "version": "2.1.5",
  "name": "Zib AdvanceDirective",
  "title": "HCIM AdvanceDirective",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "AdvanceDirective (formerly know as LivingWill) as defined by the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) version 3.1.\r\nA living will is a verbal or written description of the patient’s wishes with regard to future medical action or end of their life. A living will is mainly used for situations in which the patient is no longer able to speak about these decisions with their healthcare provider.",
  "purpose": "A good overview of the patient’s wishes is important. A healthcare provider can use the living will to discuss the existing wishes with the persons involved and to incorporate these wishes in their own policy. A concise, orderly list is of particular importance in acute care situations.",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "hcim-advancedirective-v3.1-2017EN",
      "uri": "https://zibs.nl/wiki/AdvanceDirective-v3.1(2017EN)",
      "name": "HCIM AdvanceDirective-v3.1(2017EN)"
    },
    {
      "identity": "hcim-basicelements-v1.0-2017EN",
      "uri": "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)",
      "name": "HCIM BasicElements-v1.0(2017EN)"
    },
    {
      "identity": "hcim-advancedirective-v3.0-2016EN",
      "uri": "https://zibs.nl/wiki/AdvanceDirective-v3.0(2016EN)",
      "name": "HCIM AdvanceDirective-v3.0(2016EN)"
    },
    {
      "identity": "hcim-advancedirective-v1.0-2015EN",
      "uri": "https://zibs.nl/wiki/AdvanceDirective-v1.0(2015EN)",
      "name": "HCIM AdvanceDirective-v1.0(2015EN)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "short": "LivingWill",
        "alias": [
          "Wilsverklaring"
        ],
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.1",
            "comment": "LivingWill"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.1",
            "comment": "LivingWill"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.1",
            "comment": "AdvanceDirective"
          }
        ]
      },
      {
        "id": "Consent.extension",
        "path": "Consent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Consent.extension:disorder",
        "path": "Consent.extension",
        "sliceName": "disorder",
        "short": "Disorder",
        "definition": "The problem or disorder to which the living will applies.",
        "alias": [
          "Aandoening"
        ],
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective-Disorder"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.4",
            "comment": "Disorder"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.4",
            "comment": "Disorder"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.4",
            "comment": "Disorder"
          }
        ]
      },
      {
        "id": "Consent.extension:comment",
        "path": "Consent.extension",
        "sliceName": "comment",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/Comment"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.6",
            "comment": "Explanation"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.6",
            "comment": "Explanation"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.6",
            "comment": "Comment"
          }
        ]
      },
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.6",
            "comment": "IdentificationNumber"
          }
        ]
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Consent.category:livingWill",
        "path": "Consent.category",
        "sliceName": "livingWill",
        "short": "Living will and advance directive record",
        "definition": "Category SNOMED code used for indexing/retrieval of the HCIM AdvanceDirective.",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "11341000146107"
            }
          ]
        }
      },
      {
        "id": "Consent.category:livingWill.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Consent.category.coding.display",
        "defaultValueString": "Living will and advance directive record (record artifact)"
      },
      {
        "id": "Consent.category:typeOfLivingWill",
        "path": "Consent.category",
        "sliceName": "typeOfLivingWill",
        "short": "TypeOfLivingWill",
        "definition": "List of the different types of living wills.",
        "alias": [
          "WilsverklaringType"
        ],
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "List of the different types of living wills.",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.15.1--20171231000000",
            "display": "WilsverklaringTypeCodelijst"
          }
        },
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.2",
            "comment": "TypeOfLivingWill"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.2",
            "comment": "TypeOfLivingWill"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.2",
            "comment": "LivingWillType"
          }
        ]
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding",
        "path": "Consent.category.coding",
        "min": 1
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding.code",
        "path": "Consent.category.coding.code",
        "min": 1
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          }
        ]
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "short": "LivingWillDate",
        "definition": "The date on which the living will was recorded.",
        "alias": [
          "WilsverklaringDatum"
        ],
        "min": 1,
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.7",
            "comment": "LivingWillDate"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.7",
            "comment": "LivingWillDate"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.7",
            "comment": "LivingWillDate"
          },
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.14",
            "comment": "DateTime"
          }
        ]
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "short": "Representative",
        "definition": "The person who is the legal representative or is appointed as the authorized representative in the signed authorization.",
        "alias": [
          "Vertegenwoordiger"
        ],
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.3",
            "comment": "Representative"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.3",
            "comment": "Representative"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.3",
            "comment": "Representative"
          }
        ]
      },
      {
        "id": "Consent.actor.reference",
        "path": "Consent.actor.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CareTeam"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          }
        ]
      },
      {
        "id": "Consent.actor.reference.extension",
        "path": "Consent.actor.reference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Consent.actor.reference.extension:practitionerRole",
        "path": "Consent.actor.reference.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "Consent.organization",
        "path": "Consent.organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          }
        ]
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "short": "LivingWillDocument",
        "alias": [
          "WilsverklaringDocument"
        ],
        "mapping": [
          {
            "identity": "hcim-advancedirective-v1.0-2015EN",
            "map": "NL-CM:7.15.5",
            "comment": "LivingWillDocument"
          },
          {
            "identity": "hcim-advancedirective-v3.0-2016EN",
            "map": "NL-CM:7.15.5",
            "comment": "LivingWillDocument"
          },
          {
            "identity": "hcim-advancedirective-v3.1-2017EN",
            "map": "NL-CM:7.15.5",
            "comment": "LivingWillDocument"
          }
        ]
      },
      {
        "id": "Consent.policy.uri",
        "path": "Consent.policy.uri",
        "comment": "Either `.policy` or `.policyRule` should exist following core constraint ppc-1. If no explicit value is recorded, a fallback is to populate `.policy.uri` with <https://wetten.overheid.nl/> if the advance directive is recorded following Dutch law and regulations.",
        "example": [
          {
            "label": "General Dutch Law",
            "valueUri": "http://wetten.overheid.nl/"
          }
        ]
      },
      {
        "id": "Consent.except.actor.reference",
        "path": "Consent.except.actor.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CareTeam"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          }
        ]
      },
      {
        "id": "Consent.except.actor.reference.extension",
        "path": "Consent.except.actor.reference.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Consent.except.actor.reference.extension:practitionerRole",
        "path": "Consent.except.actor.reference.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      }
    ]
  }
}