{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Advancecaredirective-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-advancecaredirective-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-EVALUATION.advance_care_directive.v2"
    }
  ],
  "version": "0",
  "name": "Advancecaredirective",
  "title": "Advance care directive",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "A framework to communicate the preferences of an individual for future medical treatment and care.",
  "purpose": "To record the preferences of an individual for future medical treatment and care.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "openEHR",
      "uri": "http://openehr.org",
      "name": "openEHR Mapping"
    },
    {
      "identity": "openEHR-natural",
      "uri": "http://openehr.org",
      "name": "openEHR natural path"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "StructureDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "snapshot": {
    "element": [
      {
        "id": "Advance_care_directive",
        "path": "Advance_care_directive",
        "short": "Advance care directive",
        "definition": "A framework to communicate the preferences of an individual for future medical treatment and care.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Advance_care_directive",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol",
        "path": "Advance_care_directive.protocol",
        "short": "Item tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Valid_period_start",
        "path": "Advance_care_directive.protocol.Valid_period_start",
        "short": "Valid period start",
        "definition": "The date/time that marks the beginning of the valid period of time for this advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Valid_period_start",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Valid_period_start.value",
        "path": "Advance_care_directive.protocol.Valid_period_start.value",
        "short": "Valid period start",
        "definition": "The date/time that marks the beginning of the valid period of time for this advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Valid_period_start.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Valid_period_end",
        "path": "Advance_care_directive.protocol.Valid_period_end",
        "short": "Valid period end",
        "definition": "The date/time that marks the conclusion of the valid period of time for this advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Valid_period_end",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Valid_period_end.value",
        "path": "Advance_care_directive.protocol.Valid_period_end.value",
        "short": "Valid period end",
        "definition": "The date/time that marks the conclusion of the valid period of time for this advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Valid_period_end.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Review_due_date",
        "path": "Advance_care_directive.protocol.Review_due_date",
        "short": "Review due date",
        "definition": "The date at which the advance care directive is due to be reviewed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Review_due_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Review_due_date.value",
        "path": "Advance_care_directive.protocol.Review_due_date.value",
        "short": "Review due date",
        "definition": "The date at which the advance care directive is due to be reviewed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Review_due_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Last_updated",
        "path": "Advance_care_directive.protocol.Last_updated",
        "short": "Last updated",
        "definition": "The date when this advance directive record was last updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Last_updated",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Last_updated.value",
        "path": "Advance_care_directive.protocol.Last_updated.value",
        "short": "Last updated",
        "definition": "The date when this advance directive record was last updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Last_updated.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Witness",
        "path": "Advance_care_directive.protocol.Witness",
        "short": "Witness",
        "definition": "Personal details of a person who witnesses the completion of the advance care directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.protocol.Witness",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Mandate",
        "path": "Advance_care_directive.protocol.Mandate",
        "short": "Mandate",
        "definition": "Description of any legislation or other authoritative guidance that apply.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.protocol.Mandate",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Mandate.value_DV_TEXT",
        "path": "Advance_care_directive.protocol.Mandate.value_DV_TEXT",
        "short": "Mandate",
        "definition": "Description of any legislation or other authoritative guidance that apply.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Mandate.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Mandate.value_DV_URI",
        "path": "Advance_care_directive.protocol.Mandate.value_DV_URI",
        "short": "Mandate",
        "definition": "Description of any legislation or other authoritative guidance that apply.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Mandate.value_DV_URI",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Digital_representation",
        "path": "Advance_care_directive.protocol.Digital_representation",
        "short": "Digital representation",
        "definition": "Digital document, image or video representing the Advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Digital_representation",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Directive_location",
        "path": "Advance_care_directive.protocol.Directive_location",
        "short": "Directive location",
        "definition": "Information about the physical or digital location of the Advance care directive.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.protocol.Directive_location",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Directive_location.Location",
        "path": "Advance_care_directive.protocol.Directive_location.Location",
        "short": "Location",
        "definition": "Physical or digital location of the Advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Directive_location.Location",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.protocol.Directive_location.Location.value_DV_TEXT",
        "path": "Advance_care_directive.protocol.Directive_location.Location.value_DV_TEXT",
        "short": "Location",
        "definition": "Physical or digital location of the Advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Directive_location.Location.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Directive_location.Location.value_DV_URI",
        "path": "Advance_care_directive.protocol.Directive_location.Location.value_DV_URI",
        "short": "Location",
        "definition": "Physical or digital location of the Advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Directive_location.Location.value_DV_URI",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Directive_location.Copy_holder",
        "path": "Advance_care_directive.protocol.Directive_location.Copy_holder",
        "short": "Copy holder",
        "definition": "Details of a person who has a copy of the Advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.protocol.Directive_location.Copy_holder",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.protocol.Extension",
        "path": "Advance_care_directive.protocol.Extension",
        "short": "Extension",
        "definition": "Additional information required to extend the model with local content or to align with other reference models/formalisms.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.protocol.Extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data",
        "path": "Advance_care_directive.data",
        "short": "Item tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Type_of_directive",
        "path": "Advance_care_directive.data.Type_of_directive",
        "short": "Type of directive",
        "definition": "The type of advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Type_of_directive",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.data.Type_of_directive.value",
        "path": "Advance_care_directive.data.Type_of_directive.value",
        "short": "Type of directive",
        "definition": "The type of advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Type_of_directive.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Status",
        "path": "Advance_care_directive.data.Status",
        "short": "Status",
        "definition": "The status of the advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Status",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.data.Status.value_DV_CODED_TEXT",
        "path": "Advance_care_directive.data.Status.value_DV_CODED_TEXT",
        "short": "Status",
        "definition": "The status of the advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Status.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Status.value_DV_TEXT",
        "path": "Advance_care_directive.data.Status.value_DV_TEXT",
        "short": "Status",
        "definition": "The status of the advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Status.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Description",
        "path": "Advance_care_directive.data.Description",
        "short": "Description",
        "definition": "Narrative description of the overall advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.data.Description.value",
        "path": "Advance_care_directive.data.Description.value",
        "short": "Description",
        "definition": "Narrative description of the overall advance care directive.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Condition",
        "path": "Advance_care_directive.data.Condition",
        "short": "Condition",
        "definition": "The conditions or situations in which the individual wishes the advance care directive to apply.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.data.Condition",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Advance_care_directive.data.Condition.value",
        "path": "Advance_care_directive.data.Condition.value",
        "short": "Condition",
        "definition": "The conditions or situations in which the individual wishes the advance care directive to apply.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Condition.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Directive_detail",
        "path": "Advance_care_directive.data.Directive_detail",
        "short": "Directive detail",
        "definition": "Structured details about the advance care directive decisions.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Advance_care_directive.data.Directive_detail",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Advance_care_directive.data.Comment",
        "path": "Advance_care_directive.data.Comment",
        "short": "Comment",
        "definition": "Additional narrative about the advance care directive not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Advance_care_directive.data.Comment.value",
        "path": "Advance_care_directive.data.Comment.value",
        "short": "Comment",
        "definition": "Additional narrative about the advance care directive not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Advance_care_directive.data.Comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}