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-1 and changes regularly. See the Directory of published versions

## Logical Model: EHDSEpisodeOfCare - XML Profile

Draft as of 2025-07-08

XML representation of the EHDSEpisodeOfCare logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSEpisodeOfCare"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSEpisodeOfCare</b></p><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 : var(--ig-left,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 : var(--ig-left,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 : var(--ig-left,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="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; 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 : var(--ig-left,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 : var(--ig-left,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-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare" title="C.29 - EHDS refined base model for Episode of care">EHDSEpisodeOfCare</a><a name="EHDSEpisodeOfCare"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,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 : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/types.html#Base">Base</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Episode of care 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 : var(--ig-left,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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.identifier" title="Episode of care identifier (Business identifiers assigned to this episode of care).">identifier</a><a name="EHDSEpisodeOfCare.identifier"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.1 - Identifier<br/></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,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_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.type" title="A classification of the type of episode of care; e.g. specialist referral, disease management.">type</a><a name="EHDSEpisodeOfCare.type"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.2 - Type<br/></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,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_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.reasonText" title="The medical reasons that are expected to be addressed during the episode of care - text.">reasonText</a><a name="EHDSEpisodeOfCare.reasonText"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.3 - Reason text</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,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_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.reason" title="The list of medical reasons that are expected to be addressed during the episode of care - coded.">reason</a><a name="EHDSEpisodeOfCare.reason"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">CodeableReference</a>(<a href="StructureDefinition-EHDSCondition.html">Condition model</a> | <a href="StructureDefinition-EHDSProcedure.html">Procedure model</a> | <a href="StructureDefinition-EHDSObservation.html">Observation model</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.4 - Reason<br/></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.diagnosis" title="The list of medical conditions that were addressed during the episode of care">diagnosis</a><a name="EHDSEpisodeOfCare.diagnosis"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Base</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.5 - Diagnosis<br/></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.diagnosis.description" title="The medical condition that was addressed during the episode of care - text.">description</a><a name="EHDSEpisodeOfCare.diagnosis.description"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.5.1 - Description</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.diagnosis.condition" title="The medical condition that was addressed during the episode of care">condition</a><a name="EHDSEpisodeOfCare.diagnosis.condition"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">CodeableReference</a>(<a href="StructureDefinition-EHDSCondition.html">Condition model</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.5.2 - Condition</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.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_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSEpisodeOfCare-definitions.html#EHDSEpisodeOfCare.patient" title="The patient who is the focus of this episode of care">patient</a><a name="EHDSEpisodeOfCare.patient"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/references.html">Reference</a>(<a href="StructureDefinition-EHDSPatient.html">Patient model</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.30.6 - Patient</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>
      <url
           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEpisodeOfCare"/>
      <version value="0.1.0"/>
      <name value="EHDSEpisodeOfCare"/>
      <title value="Episode of care model"/>
      <status value="draft"/>
      <date value="2025-07-08T13:43:56+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.29 - EHDS refined base model for Episode of care"/>
      <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/EHDSEpisodeOfCare"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="5.0.0"/>
        </extension>
        <element id="EHDSEpisodeOfCare">
          <path value="EHDSEpisodeOfCare"/>
          <short value="Episode of care model"/>
          <definition value="C.29 - EHDS refined base model for Episode of care"/>
          <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="EHDSEpisodeOfCare.identifier">
          <path value="EHDSEpisodeOfCare.identifier"/>
          <short value="C.30.1 - Identifier"/>
          <definition
                      value="Episode of care identifier (Business identifiers assigned to this episode of care)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEpisodeOfCare.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.type">
          <path value="EHDSEpisodeOfCare.type"/>
          <short value="C.30.2 - Type"/>
          <definition
                      value="A classification of the type of episode of care; e.g. specialist referral, disease management."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEpisodeOfCare.type"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.reasonText">
          <path value="EHDSEpisodeOfCare.reasonText"/>
          <short value="C.30.3 - Reason text"/>
          <definition
                      value="The medical reasons that are expected to be addressed during the episode of care - text."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEpisodeOfCare.reasonText"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.reason">
          <path value="EHDSEpisodeOfCare.reason"/>
          <short value="C.30.4 - Reason"/>
          <definition
                      value="The list of medical reasons that are expected to be addressed during the episode of care - coded."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEpisodeOfCare.reason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <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="EHDSEpisodeOfCare.diagnosis">
          <path value="EHDSEpisodeOfCare.diagnosis"/>
          <short value="C.30.5 - Diagnosis"/>
          <definition
                      value="The list of medical conditions that were addressed during the episode of care"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSEpisodeOfCare.diagnosis"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.diagnosis.description">
          <path value="EHDSEpisodeOfCare.diagnosis.description"/>
          <short value="C.30.5.1 - Description"/>
          <definition
                      value="The medical condition that was addressed during the episode of care - text."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEpisodeOfCare.diagnosis.description"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.diagnosis.condition">
          <path value="EHDSEpisodeOfCare.diagnosis.condition"/>
          <short value="C.30.5.2 - Condition"/>
          <definition
                      value="The medical condition that was addressed during the episode of care"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSEpisodeOfCare.diagnosis.condition"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCondition"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.patient">
          <path value="EHDSEpisodeOfCare.patient"/>
          <short value="C.30.6 - Patient"/>
          <definition
                      value="The patient who is the focus of this episode of care"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSEpisodeOfCare.patient"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPatient"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSEpisodeOfCare">
          <path value="EHDSEpisodeOfCare"/>
          <short value="Episode of care model"/>
          <definition value="C.29 - EHDS refined base model for Episode of care"/>
        </element>
        <element id="EHDSEpisodeOfCare.identifier">
          <path value="EHDSEpisodeOfCare.identifier"/>
          <short value="C.30.1 - Identifier"/>
          <definition
                      value="Episode of care identifier (Business identifiers assigned to this episode of care)."/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.type">
          <path value="EHDSEpisodeOfCare.type"/>
          <short value="C.30.2 - Type"/>
          <definition
                      value="A classification of the type of episode of care; e.g. specialist referral, disease management."/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.reasonText">
          <path value="EHDSEpisodeOfCare.reasonText"/>
          <short value="C.30.3 - Reason text"/>
          <definition
                      value="The medical reasons that are expected to be addressed during the episode of care - text."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.reason">
          <path value="EHDSEpisodeOfCare.reason"/>
          <short value="C.30.4 - Reason"/>
          <definition
                      value="The list of medical reasons that are expected to be addressed during the episode of care - coded."/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="CodeableReference"/>
            <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="EHDSEpisodeOfCare.diagnosis">
          <path value="EHDSEpisodeOfCare.diagnosis"/>
          <short value="C.30.5 - Diagnosis"/>
          <definition
                      value="The list of medical conditions that were addressed during the episode of care"/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.diagnosis.description">
          <path value="EHDSEpisodeOfCare.diagnosis.description"/>
          <short value="C.30.5.1 - Description"/>
          <definition
                      value="The medical condition that was addressed during the episode of care - text."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.diagnosis.condition">
          <path value="EHDSEpisodeOfCare.diagnosis.condition"/>
          <short value="C.30.5.2 - Condition"/>
          <definition
                      value="The medical condition that was addressed during the episode of care"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCondition"/>
          </type>
        </element>
        <element id="EHDSEpisodeOfCare.patient">
          <path value="EHDSEpisodeOfCare.patient"/>
          <short value="C.30.6 - Patient"/>
          <definition
                      value="The patient who is the focus of this episode of care"/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPatient"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>