{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Episodeofcare-institution-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-episodeofcare-institution-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-ADMIN_ENTRY.episode_institution.v0"
    }
  ],
  "version": "0",
  "name": "Episodeofcare-institution",
  "title": "Episode of care - institution",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Administrative details about a period of admitted patient care between a formal or statistical admission and a formal or statistical separation, characterised by only one care type of care from a healthcare institution.",
  "purpose": "To record administrative details about a period of admitted patient care between a formal or statistical admission and a formal or statistical separation, characterised by only one care type of care from a healthcare institution.",
  "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": "Episode_of_care___institution",
        "path": "Episode_of_care___institution",
        "short": "Episode of care - institution",
        "definition": "Administrative details about a period of admitted patient care between a formal or statistical admission and a formal or statistical separation, characterised by only one care type of care from a healthcare institution.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data",
        "path": "Episode_of_care___institution.data",
        "short": "Item tree",
        "definition": "@ internal @",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Episode_ID",
        "path": "Episode_of_care___institution.data.Episode_ID",
        "short": "Episode ID",
        "definition": "An identifier for the episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Episode_ID",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Episode_ID.value",
        "path": "Episode_of_care___institution.data.Episode_ID.value",
        "short": "Episode ID",
        "definition": "An identifier for the episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Episode_ID.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Admission_date",
        "path": "Episode_of_care___institution.data.Admission_date",
        "short": "Admission date",
        "definition": "The date and/or time of the formal or statistical admission to the institution.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Admission_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Admission_date.value",
        "path": "Episode_of_care___institution.data.Admission_date.value",
        "short": "Admission date",
        "definition": "The date and/or time of the formal or statistical admission to the institution.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Admission_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Reason_for_admission",
        "path": "Episode_of_care___institution.data.Reason_for_admission",
        "short": "Reason for admission",
        "definition": "The reason why the individual was admitted for an episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Reason_for_admission",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Reason_for_admission.value",
        "path": "Episode_of_care___institution.data.Reason_for_admission.value",
        "short": "Reason for admission",
        "definition": "The reason why the individual was admitted for an episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Reason_for_admission.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Admission_category",
        "path": "Episode_of_care___institution.data.Admission_category",
        "short": "Admission category",
        "definition": "The type of admission.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Admission_category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Admission_category.value",
        "path": "Episode_of_care___institution.data.Admission_category.value",
        "short": "Admission category",
        "definition": "The type of admission.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Admission_category.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Source_category",
        "path": "Episode_of_care___institution.data.Source_category",
        "short": "Source category",
        "definition": "The type of residence where the individual resided prior to admission.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Source_category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Source_category.value",
        "path": "Episode_of_care___institution.data.Source_category.value",
        "short": "Source category",
        "definition": "The type of residence where the individual resided prior to admission.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Source_category.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Source",
        "path": "Episode_of_care___institution.data.Source",
        "short": "Source",
        "definition": "The organisation or address for the individual prior to the admission.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Source",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Referring_clinician",
        "path": "Episode_of_care___institution.data.Referring_clinician",
        "short": "Referring clinician",
        "definition": "Details about the clinicians responsible for referring the individual from the Source.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Referring_clinician",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Medical_record_number",
        "path": "Episode_of_care___institution.data.Medical_record_number",
        "short": "Medical record number",
        "definition": "Identification of the medical record number.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Medical_record_number",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Medical_record_number.value_DV_IDENTIFIER",
        "path": "Episode_of_care___institution.data.Medical_record_number.value_DV_IDENTIFIER",
        "short": "Medical record number",
        "definition": "Identification of the medical record number.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Medical_record_number.value_DV_IDENTIFIER",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Medical_record_number.value_DV_TEXT",
        "path": "Episode_of_care___institution.data.Medical_record_number.value_DV_TEXT",
        "short": "Medical record number",
        "definition": "Identification of the medical record number.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Medical_record_number.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Health_insurance_category",
        "path": "Episode_of_care___institution.data.Health_insurance_category",
        "short": "Health insurance category",
        "definition": "The type of health insurance applicable for the episode.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Health_insurance_category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Health_insurance_category.value",
        "path": "Episode_of_care___institution.data.Health_insurance_category.value",
        "short": "Health insurance category",
        "definition": "The type of health insurance applicable for the episode.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Health_insurance_category.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Attending_unit",
        "path": "Episode_of_care___institution.data.Attending_unit",
        "short": "Attending unit",
        "definition": "The clinical service unit assigned for care of the individual.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Attending_unit",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Attending_unit.value",
        "path": "Episode_of_care___institution.data.Attending_unit.value",
        "short": "Attending unit",
        "definition": "The clinical service unit assigned for care of the individual.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Attending_unit.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Attending_clinicians",
        "path": "Episode_of_care___institution.data.Attending_clinicians",
        "short": "Attending clinicians",
        "definition": "Details about the consultant and attending clinicians responsible for care during the episode.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Attending_clinicians",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location",
        "path": "Episode_of_care___institution.data.Physical_location",
        "short": "Physical location",
        "definition": "The physical location of the individual within the institution during the episode of care.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_onset",
        "path": "Episode_of_care___institution.data.Physical_location.Location_onset",
        "short": "Location onset",
        "definition": "The date the individual was moved to the internal institution location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_onset",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_onset.value",
        "path": "Episode_of_care___institution.data.Physical_location.Location_onset.value",
        "short": "Location onset",
        "definition": "The date the individual was moved to the internal institution location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_onset.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_category",
        "path": "Episode_of_care___institution.data.Physical_location.Location_category",
        "short": "Location category",
        "definition": "The type of location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_category.value",
        "path": "Episode_of_care___institution.data.Physical_location.Location_category.value",
        "short": "Location category",
        "definition": "The type of location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_category.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location",
        "path": "Episode_of_care___institution.data.Physical_location.Location",
        "short": "Location",
        "definition": "An organisation, physical address or structured address describing where the individual was located during the episode of care.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Ward",
        "path": "Episode_of_care___institution.data.Physical_location.Ward",
        "short": "Ward",
        "definition": "The name of the Ward within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Ward",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Ward.value",
        "path": "Episode_of_care___institution.data.Physical_location.Ward.value",
        "short": "Ward",
        "definition": "The name of the Ward within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Ward.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Room",
        "path": "Episode_of_care___institution.data.Physical_location.Room",
        "short": "Room",
        "definition": "The name of the Room within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Room",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Room.value",
        "path": "Episode_of_care___institution.data.Physical_location.Room.value",
        "short": "Room",
        "definition": "The name of the Room within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Room.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Bed",
        "path": "Episode_of_care___institution.data.Physical_location.Bed",
        "short": "Bed",
        "definition": "The name of the Bed within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Bed",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Bed.value",
        "path": "Episode_of_care___institution.data.Physical_location.Bed.value",
        "short": "Bed",
        "definition": "The name of the Bed within the institution where the individual was located.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Bed.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_end",
        "path": "Episode_of_care___institution.data.Physical_location.Location_end",
        "short": "Location end",
        "definition": "The date the individual was moved from the internal institution location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_end",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Physical_location.Location_end.value",
        "path": "Episode_of_care___institution.data.Physical_location.Location_end.value",
        "short": "Location end",
        "definition": "The date the individual was moved from the internal institution location.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Physical_location.Location_end.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Separation_date",
        "path": "Episode_of_care___institution.data.Separation_date",
        "short": "Separation date",
        "definition": "The date and/or time of the formal or statistical end of the admission to the institution.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Separation_date",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Separation_date.value",
        "path": "Episode_of_care___institution.data.Separation_date.value",
        "short": "Separation date",
        "definition": "The date and/or time of the formal or statistical end of the admission to the institution.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Separation_date.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Outcome",
        "path": "Episode_of_care___institution.data.Outcome",
        "short": "Outcome",
        "definition": "Outcome for the individual at the end of the episode of care.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Outcome",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Outcome.value",
        "path": "Episode_of_care___institution.data.Outcome.value",
        "short": "Outcome",
        "definition": "Outcome for the individual at the end of the episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Outcome.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Destination_category",
        "path": "Episode_of_care___institution.data.Destination_category",
        "short": "Destination category",
        "definition": "The type of residence where the individual resided after the episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Destination_category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Destination_category.value",
        "path": "Episode_of_care___institution.data.Destination_category.value",
        "short": "Destination category",
        "definition": "The type of residence where the individual resided after the episode of care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Destination_category.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Destination",
        "path": "Episode_of_care___institution.data.Destination",
        "short": "Destination",
        "definition": "The organisation or address for the individual after the admission.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Destination",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Additional_details",
        "path": "Episode_of_care___institution.data.Additional_details",
        "short": "Additional details",
        "definition": "Additional structured details about the episode of care within an institution.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Episode_of_care___institution.data.Additional_details",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Episode_of_care___institution.data.Comment",
        "path": "Episode_of_care___institution.data.Comment",
        "short": "Comment",
        "definition": "Additional narrative about the episode, not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Comment",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Episode_of_care___institution.data.Comment.value",
        "path": "Episode_of_care___institution.data.Comment.value",
        "short": "Comment",
        "definition": "Additional narrative about the episode, not captured in other fields.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Episode_of_care___institution.data.Comment.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}