EHDS Logical Information Models
0.1.0 - ci-build

EHDS Logical Information Models, published by Xt-EHR. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/Xt-EHR/xt-ehr-common/tree/stakeholder-consultation-D6-2 and changes regularly. See the Directory of published versions

## Logical Model: EHDSInpatientEncounter - XML Profile

Draft as of 2025-05-26

XML representation of the EHDSInpatientEncounter logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSInpatientEncounter"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSInpatientEncounter</b></p><a name="EHDSInpatientEncounter"> </a><a name="hcEHDSInpatientEncounter"> </a><a name="EHDSInpatientEncounter-en-US"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter" title="C.23 - EHDS refined base model for Inpatient encounter">EHDSInpatientEncounter</a><a name="EHDSInpatientEncounter"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-EHDSEncounter.html">EHDSEncounter</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><br/>Elements defined in Ancestors:<a href="StructureDefinition-EHDSEncounter.html" title="Encounter identifier (Business identifiers assigned to this encounter).">identifier</a>, <a href="StructureDefinition-EHDSEncounter.html" title="Indicates the urgency of the encounter.">priority</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The type of the encounter whether inpatient or short stay encounter.">encounterType</a>, <a href="StructureDefinition-EHDSEncounter.html" title="A narrative description of the encounter course.">encounterNote</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The patient related to this encounter.">patient</a>, <a href="StructureDefinition-EHDSEncounter.html" title="Episode(s) of care that this encounter should be recorded against">episodeOfCare</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The request that initiated this encounter">basedOn</a>, <a href="StructureDefinition-EHDSEncounter.html" title="Another Encounter this encounter is part of">partOf</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The organization (facility) responsible for this encounter">serviceProvider</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The appointment that scheduled this encounter">appointment</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The actual start and end time of the encounter">actualPeriod</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The planned start date/time (or admission date) of the encounter">plannedStartDate</a>, <a href="StructureDefinition-EHDSEncounter.html" title="The planned end date/time (or discharge date) of the encounter">plannedEndDate</a>, <a href="StructureDefinition-EHDSEncounter.html" title="Details about the admission to a healthcare service">admission</a>, <a href="StructureDefinition-EHDSEncounter.html" title="Discharge details">discharge</a>, <a href="StructureDefinition-EHDSEncounter.html" title="List of locations where the patient has been.">location</a><br/>Inpatient encounter model<br/><span style="font-weight:bold">Instances of this logical model can be the target of a Reference</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.priority" title="Admission urgency, either emergency or planned">priority</a><a name="EHDSInpatientEncounter.priority"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">C.30.3 - Priority</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.actualPeriod">actualPeriod</a><a name="EHDSInpatientEncounter.actualPeriod"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#Period">Period</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">C.30.11 - Actual period</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.admission">admission</a><a name="EHDSInpatientEncounter.admission"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Base</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">C.30.14 - Admission</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.discharge">discharge</a><a name="EHDSInpatientEncounter.discharge"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Base</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">C.30.15 - Discharge</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.location">location</a><a name="EHDSInpatientEncounter.location"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSInpatientEncounter-definitions.html#EHDSInpatientEncounter.location.organizationPart" title="Organization or organization part (hospital department) where the patient was present.">organizationPart</a><a name="EHDSInpatientEncounter.location.organizationPart"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="StructureDefinition-EHDSLocation.html">EHDSLocation</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">C.30.16.2 - Organization part</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <url
           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSInpatientEncounter"/>
      <version value="0.1.0"/>
      <name value="EHDSInpatientEncounter"/>
      <title value="Inpatient encounter model"/>
      <status value="draft"/>
      <date value="2025-05-26T10:09:34+00:00"/>
      <publisher value="Xt-EHR"/>
      <contact>
        <name value="Xt-EHR"/>
        <telecom>
          <system value="url"/>
          <value value="http://Xt-EHR.eu"/>
        </telecom>
      </contact>
      <description
                   value="C.23 - EHDS refined base model for Inpatient encounter"/>
      <fhirVersion value="5.0.0"/>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSInpatientEncounter"/>
      <baseDefinition
                      value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEncounter"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.1.0"/>
        </extension>
        <element id="EHDSInpatientEncounter">
          <path value="EHDSInpatientEncounter"/>
          <short value="Inpatient encounter model"/>
          <definition
                      value="C.23 - EHDS refined base model for Inpatient encounter"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="EHDSInpatientEncounter.identifier">
          <path value="EHDSInpatientEncounter.identifier"/>
          <short value="C.30.1 - Identifier"/>
          <definition
                      value="Encounter identifier (Business identifiers assigned to this encounter)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.priority">
          <path value="EHDSInpatientEncounter.priority"/>
          <short value="C.30.3 - Priority"/>
          <definition value="Admission urgency, either emergency or planned"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.priority"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="hl7:v3-xEncounterAdmissionUrgency"/>
          </binding>
        </element>
        <element id="EHDSInpatientEncounter.encounterType">
          <path value="EHDSInpatientEncounter.encounterType"/>
          <short value="C.30.2 - Encounter type"/>
          <definition
                      value="The type of the encounter whether inpatient or short stay encounter."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.encounterType"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="hl7v3:ActEncounterCode"/>
          </binding>
        </element>
        <element id="EHDSInpatientEncounter.encounterNote">
          <path value="EHDSInpatientEncounter.encounterNote"/>
          <short value="C.30.4 - Encounter note"/>
          <definition value="A narrative description of the encounter course."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.encounterNote"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.patient">
          <path value="EHDSInpatientEncounter.patient"/>
          <short value="C.30.5 - Patient"/>
          <definition value="The patient related to this encounter."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.patient"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPatient"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.episodeOfCare">
          <path value="EHDSInpatientEncounter.episodeOfCare"/>
          <short value="C.30.6 - Episode of care"/>
          <definition
                      value="Episode(s) of care that this encounter should be recorded against"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.episodeOfCare"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEpisodeOfCare"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.basedOn">
          <path value="EHDSInpatientEncounter.basedOn"/>
          <short value="C.30.7 - Based on"/>
          <definition value="The request that initiated this encounter"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.basedOn"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCarePlan"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSServiceRequest"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.partOf">
          <path value="EHDSInpatientEncounter.partOf"/>
          <short value="C.30.8 - Part of"/>
          <definition value="Another Encounter this encounter is part of"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.partOf"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEncounter"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.serviceProvider">
          <path value="EHDSInpatientEncounter.serviceProvider"/>
          <short value="C.30.9 - Service provider"/>
          <definition
                      value="The organization (facility) responsible for this encounter"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.serviceProvider"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSOrganization"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.appointment">
          <path value="EHDSInpatientEncounter.appointment"/>
          <short value="C.30.10 - Appointment"/>
          <definition value="The appointment that scheduled this encounter"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.appointment"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSAppointment"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.actualPeriod">
          <path value="EHDSInpatientEncounter.actualPeriod"/>
          <short value="C.30.11 - Actual period"/>
          <definition value="The actual start and end time of the encounter"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.actualPeriod"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.plannedStartDate">
          <path value="EHDSInpatientEncounter.plannedStartDate"/>
          <short value="C.30.12 - Planned start date"/>
          <definition
                      value="The planned start date/time (or admission date) of the encounter"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.plannedStartDate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.plannedEndDate">
          <path value="EHDSInpatientEncounter.plannedEndDate"/>
          <short value="C.30.13 - Planned end date"/>
          <definition
                      value="The planned end date/time (or discharge date) of the encounter"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.plannedEndDate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission">
          <path value="EHDSInpatientEncounter.admission"/>
          <short value="C.30.14 - Admission"/>
          <definition
                      value="Details about the admission to a healthcare service"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission.admitter">
          <path value="EHDSInpatientEncounter.admission.admitter"/>
          <short value="C.30.14.1 - Admitter"/>
          <definition value="Admitting Healthcare Professional"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission.admitter"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission.admitSource">
          <path value="EHDSInpatientEncounter.admission.admitSource"/>
          <short value="C.30.14.2 - Admit Source"/>
          <definition
                      value="From where the patient was admitted (e.g. physician referral, transfer)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission.admitSource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="hl7:admit-source"/>
          </binding>
        </element>
        <element id="EHDSInpatientEncounter.admission.referringProfessional">
          <path value="EHDSInpatientEncounter.admission.referringProfessional"/>
          <short value="C.30.14.3 - Referring professional"/>
          <definition value="Referring Healthcare Professional"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission.referringProfessional"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission.admissionReason">
          <path value="EHDSInpatientEncounter.admission.admissionReason"/>
          <short value="C.30.14.4 - Admission reason"/>
          <definition
                      value="Reason or reasons for admission, e.g. Problem, procedure or finding."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.admission.admissionReason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCondition"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSProcedure"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSObservation"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission.admissionReasonComment">
          <path value="EHDSInpatientEncounter.admission.admissionReasonComment"/>
          <short value="C.30.14.5 - Admission reason comment"/>
          <definition value="Explanation of the reason for the encounter."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission.admissionReasonComment"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.admission.admissionLegalStatus">
          <path value="EHDSInpatientEncounter.admission.admissionLegalStatus"/>
          <short value="C.30.14.6 - Admission legal status"/>
          <definition
                      value="Legal status/situation at admission. The legal status indicates the basis on which the patient is staying in a healthcare organisation. This can be either voluntary or involuntary, however the legal status is always determined by a court. A patient can also receive healthcare based on a forensic status. (voluntary, involuntary, admission by legal authority)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.admission.admissionLegalStatus"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="SNOMED CT"/>
          </binding>
        </element>
        <element id="EHDSInpatientEncounter.discharge">
          <path value="EHDSInpatientEncounter.discharge"/>
          <short value="C.30.15 - Discharge"/>
          <definition value="Discharge details"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.discharge"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.discharge.destinationType">
          <path value="EHDSInpatientEncounter.discharge.destinationType"/>
          <short value="C.30.15.1 - Destination type"/>
          <definition
                      value="Type of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.discharge.destinationType"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="hl7.discharge-disposition"/>
          </binding>
        </element>
        <element id="EHDSInpatientEncounter.discharge.destinationLocation">
          <path value="EHDSInpatientEncounter.discharge.destinationLocation"/>
          <short value="C.30.15.2 - Destination location"/>
          <definition
                      value="The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.discharge.destinationLocation"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSOrganization"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSLocation"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.location">
          <path value="EHDSInpatientEncounter.location"/>
          <short value="C.30.16 - Location"/>
          <definition value="List of locations where the patient has been."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEncounter.location"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.location.period">
          <path value="EHDSInpatientEncounter.location.period"/>
          <short value="C.30.16.1 - Period"/>
          <definition
                      value="Time period during which the patient was present at the location"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.location.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSInpatientEncounter.location.organizationPart">
          <path value="EHDSInpatientEncounter.location.organizationPart"/>
          <short value="C.30.16.2 - Organization part"/>
          <definition
                      value="Organization or organization part (hospital department) where the patient was present."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEncounter.location.organizationPart"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSLocation"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSInpatientEncounter">
          <path value="EHDSInpatientEncounter"/>
          <short value="Inpatient encounter model"/>
          <definition
                      value="C.23 - EHDS refined base model for Inpatient encounter"/>
        </element>
        <element id="EHDSInpatientEncounter.priority">
          <path value="EHDSInpatientEncounter.priority"/>
          <definition value="Admission urgency, either emergency or planned"/>
        </element>
        <element id="EHDSInpatientEncounter.actualPeriod">
          <path value="EHDSInpatientEncounter.actualPeriod"/>
          <min value="1"/>
        </element>
        <element id="EHDSInpatientEncounter.admission">
          <path value="EHDSInpatientEncounter.admission"/>
          <min value="1"/>
        </element>
        <element id="EHDSInpatientEncounter.discharge">
          <path value="EHDSInpatientEncounter.discharge"/>
          <min value="1"/>
        </element>
        <element id="EHDSInpatientEncounter.location.organizationPart">
          <path value="EHDSInpatientEncounter.location.organizationPart"/>
          <definition
                      value="Organization or organization part (hospital department) where the patient was present."/>
        </element>
      </differential>
    </StructureDefinition>