{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Goal-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-goal-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-EVALUATION.goal.v1"
    }
  ],
  "version": "0",
  "name": "Goal",
  "title": "Goal",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "A desired health, or well-being, outcome for the subject of care.",
  "purpose": "To record details about a health-related goal and any associated targets and deadlines.",
  "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": "Goal",
        "path": "Goal",
        "short": "Goal",
        "definition": "A desired health, or well-being, outcome for the subject of care.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Goal",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.protocol",
        "path": "Goal.protocol",
        "short": "Tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.protocol",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.protocol.Last_updated",
        "path": "Goal.protocol.Last_updated",
        "short": "Last updated",
        "definition": "The date on which the goal was last updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.protocol.Last_updated",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.protocol.Last_updated.value",
        "path": "Goal.protocol.Last_updated.value",
        "short": "Last updated",
        "definition": "The date on which the goal was last updated.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.protocol.Last_updated.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.protocol.Extension",
        "path": "Goal.protocol.Extension",
        "short": "Extension",
        "definition": "Additional information required to capture local content or to align with other reference models/formalisms.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Goal.protocol.Extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data",
        "path": "Goal.data",
        "short": "Tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_name",
        "path": "Goal.data.Goal_name",
        "short": "Goal name",
        "definition": "The name of the desired health outcome.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_name",
          "min": 1,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_name.value",
        "path": "Goal.data.Goal_name.value",
        "short": "Goal name",
        "definition": "The name of the desired health outcome.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_name.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_description",
        "path": "Goal.data.Goal_description",
        "short": "Goal description",
        "definition": "A narrative description of the goal, including target/s to be achieved if relevant.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_description.value",
        "path": "Goal.data.Goal_description.value",
        "short": "Goal description",
        "definition": "A narrative description of the goal, including target/s to be achieved if relevant.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Clinical_indication",
        "path": "Goal.data.Clinical_indication",
        "short": "Clinical indication",
        "definition": "Name of the problem or diagnosis which is intended to be impacted by achievement of this goal.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Goal.data.Clinical_indication",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Goal.data.Clinical_indication.value",
        "path": "Goal.data.Clinical_indication.value",
        "short": "Clinical indication",
        "definition": "Name of the problem or diagnosis which is intended to be impacted by achievement of this goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Clinical_indication.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_start_date",
        "path": "Goal.data.Goal_start_date",
        "short": "Goal start date",
        "definition": "The anticipated or proposed date for commencing work towards the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_start_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_start_date.value",
        "path": "Goal.data.Goal_start_date.value",
        "short": "Goal start date",
        "definition": "The anticipated or proposed date for commencing work towards the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_start_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_proposed_date",
        "path": "Goal.data.Goal_proposed_date",
        "short": "Goal proposed date",
        "definition": "The desired or proposed date for achieving the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_proposed_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_proposed_date.value",
        "path": "Goal.data.Goal_proposed_date.value",
        "short": "Goal proposed date",
        "definition": "The desired or proposed date for achieving the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_proposed_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_end_date",
        "path": "Goal.data.Goal_end_date",
        "short": "Goal end date",
        "definition": "The actual date that the goal was achieved or abandoned.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_end_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_end_date.value",
        "path": "Goal.data.Goal_end_date.value",
        "short": "Goal end date",
        "definition": "The actual date that the goal was achieved or abandoned.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_end_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_outcome",
        "path": "Goal.data.Goal_outcome",
        "short": "Goal outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_outcome",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_outcome.value_DV_TEXT",
        "path": "Goal.data.Goal_outcome.value_DV_TEXT",
        "short": "Goal outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_outcome.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_outcome.value_DV_CODED_TEXT",
        "path": "Goal.data.Goal_outcome.value_DV_CODED_TEXT",
        "short": "Goal outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the goal.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_outcome.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Goal_comment",
        "path": "Goal.data.Goal_comment",
        "short": "Goal comment",
        "definition": "Additional narrative about the goal not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Goal_comment.value",
        "path": "Goal.data.Goal_comment.value",
        "short": "Goal comment",
        "definition": "Additional narrative about the goal not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Goal_comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Readiness_for_change",
        "path": "Goal.data.Readiness_for_change",
        "short": "Readiness for change",
        "definition": "Details about the readiness to change behaviour to achieve the desired goal.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Goal.data.Readiness_for_change",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target",
        "path": "Goal.data.Target",
        "short": "Target",
        "definition": "Detail about the intended target.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Goal.data.Target",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_name",
        "path": "Goal.data.Target.Target_name",
        "short": "Target name",
        "definition": "Identification of the intended target, by name.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_name",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_name.value",
        "path": "Goal.data.Target.Target_name.value",
        "short": "Target name",
        "definition": "Identification of the intended target, by name.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_name.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target",
        "path": "Goal.data.Target.Target",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target.value_DV_INTERVAL_DV_COUNT_",
        "path": "Goal.data.Target.Target.value_DV_INTERVAL_DV_COUNT_",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_INTERVAL_DV_COUNT_",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_INTERVAL_DV_QUANTITY_",
        "path": "Goal.data.Target.Target.value_DV_INTERVAL_DV_QUANTITY_",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_INTERVAL_DV_QUANTITY_",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_DURATION",
        "path": "Goal.data.Target.Target.value_DV_DURATION",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_DURATION",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Duration"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_QUANTITY",
        "path": "Goal.data.Target.Target.value_DV_QUANTITY",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_QUANTITY",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_COUNT",
        "path": "Goal.data.Target.Target.value_DV_COUNT",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_COUNT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_PROPORTION",
        "path": "Goal.data.Target.Target.value_DV_PROPORTION",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_PROPORTION",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target.value_DV_TEXT",
        "path": "Goal.data.Target.Target.value_DV_TEXT",
        "short": "Target",
        "definition": "The intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_description",
        "path": "Goal.data.Target.Target_description",
        "short": "Target description",
        "definition": "Narrative description about the intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_description.value",
        "path": "Goal.data.Target.Target_description.value",
        "short": "Target description",
        "definition": "Narrative description about the intended target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_path",
        "path": "Goal.data.Target.Target_path",
        "short": "Target path",
        "definition": "The archetype and path to the node for target data.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_path",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_path.value",
        "path": "Goal.data.Target.Target_path.value",
        "short": "Target path",
        "definition": "The archetype and path to the node for target data.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_path.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_proposed_date",
        "path": "Goal.data.Target.Target_proposed_date",
        "short": "Target proposed date",
        "definition": "The desired or proposed date for achieving the target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_proposed_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_proposed_date.value",
        "path": "Goal.data.Target.Target_proposed_date.value",
        "short": "Target proposed date",
        "definition": "The desired or proposed date for achieving the target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_proposed_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_end_date",
        "path": "Goal.data.Target.Target_end_date",
        "short": "Target end date",
        "definition": "The actual date that the target was achieved or abandoned.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_end_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_end_date.value",
        "path": "Goal.data.Target.Target_end_date.value",
        "short": "Target end date",
        "definition": "The actual date that the target was achieved or abandoned.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_end_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_outcome",
        "path": "Goal.data.Target.Target_outcome",
        "short": "Target outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_outcome",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_outcome.value_DV_TEXT",
        "path": "Goal.data.Target.Target_outcome.value_DV_TEXT",
        "short": "Target outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_outcome.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_outcome.value_DV_CODED_TEXT",
        "path": "Goal.data.Target.Target_outcome.value_DV_CODED_TEXT",
        "short": "Target outcome",
        "definition": "Single word, phrase or brief description which represents the outcome actually achieved for the target.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_outcome.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Goal.data.Target.Target_comment",
        "path": "Goal.data.Target.Target_comment",
        "short": "Target comment",
        "definition": "Additional narrative about the target not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Goal.data.Target.Target_comment.value",
        "path": "Goal.data.Target.Target_comment.value",
        "short": "Target comment",
        "definition": "Additional narrative about the target not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Goal.data.Target.Target_comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}