EHDS Logical Information Models
0.2.1 - qa-preview

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

## Logical Model: EHDSMedicationStatementCore - XML Profile

Draft as of 2025-12-03

XML representation of the EHDSMedicationStatementCore logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSMedicationStatementCore"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSMedicationStatementCore</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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" 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-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore" title="Statement about a single medication as part of a medication summary.">EHDSMedicationStatementCore</a><a name="EHDSMedicationStatementCore"> </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="StructureDefinition-EHDSDataSet.html">EHDSDataSet</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">Medication statement model<br/><br/>Elements defined in Ancestors:<a href="StructureDefinition-EHDSDataSet.html" title="Common header for all patient-related data">header</a><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_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore.medication" title="Describes the medicinal product.">medication</a><a name="EHDSMedicationStatementCore.medication"> </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">1..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="StructureDefinition-EHDSMedication.html">EHDSMedication</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">Describes the medicinal product.</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-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore.periodOfUse" title="Period when patient took, is taking or is expected to take the medication. This information may be expressed using start and end date times OR indicating the duration. The first is used to indicate a specified interval (e.g., from March 15th, 2017); the latter for indicating a 'floating' period (e.g., 2 weeks). In case of unbounded period (continuous therapy), the end element will be valued with an exceptional value.">periodOfUse</a><a name="EHDSMedicationStatementCore.periodOfUse"> </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..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#Period">Period</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">Period when patient took, is taking or is expected to take the medication</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-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore.medicationReason" title="Coded reason for the use of the medication (typically diagnosis, or a procedure)">medicationReason</a><a name="EHDSMedicationStatementCore.medicationReason"> </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#CodeableConcept">CodeableConcept</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">Coded reason for the use of the medication (typically diagnosis, or a procedure)<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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore.dosageInstructions" title="Details of how medication is/was taken or should be taken. This includes the number of units per intake and frequency of intake over a specified duration of time. Example: 1 tablet every 24h, for 10 days .">dosageInstructions</a><a name="EHDSMedicationStatementCore.dosageInstructions"> </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..*</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="StructureDefinition-EHDSDosaging.html">EHDSDosaging</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">Details of how medication is/was taken or should be taken<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_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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatementCore-definitions.html#EHDSMedicationStatementCore.intendedUseType" title="The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc.">intendedUseType</a><a name="EHDSMedicationStatementCore.intendedUseType"> </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#CodeableConcept">CodeableConcept</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">The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc.</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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" 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="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationStatementCore"/>
      <version value="0.2.1"/>
      <name value="EHDSMedicationStatementCore"/>
      <title value="Medication statement model"/>
      <status value="draft"/>
      <date value="2025-12-03T08:01:45+00:00"/>
      <publisher value="Xt-EHR"/>
      <contact>
        <name value="Xt-EHR"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.xt-ehr.eu/"/>
        </telecom>
      </contact>
      <description
                   value="Statement about a single medication as part of a medication summary."/>
      <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="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationStatementCore"/>
      <baseDefinition
                      value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDataSet"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.2.1"/>
        </extension>
        <element id="EHDSMedicationStatementCore">
          <path value="EHDSMedicationStatementCore"/>
          <short value="Medication statement model"/>
          <definition
                      value="Statement about a single medication as part of a medication summary."/>
          <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="EHDSMedicationStatementCore.header">
          <path value="EHDSMedicationStatementCore.header"/>
          <short value="Common header for all patient-related data"/>
          <definition value="Common header for all patient-related data"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.subject">
          <path value="EHDSMedicationStatementCore.header.subject"/>
          <short value="Patient/subject information"/>
          <definition value="Patient/subject information"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.subject"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSPatient"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.identifier">
          <path value="EHDSMedicationStatementCore.header.identifier"/>
          <short value="Business identifier for the object"/>
          <definition value="Business identifier for the object"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDataSet.header.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.authorship">
          <path value="EHDSMedicationStatementCore.header.authorship"/>
          <short value="Resource authoring details"/>
          <definition value="Resource authoring details"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="EHDSDataSet.header.authorship"/>
            <min value="1"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.authorship.author[x]">
          <path value="EHDSMedicationStatementCore.header.authorship.author[x]"/>
          <short
                 value="Author(s) by whom the resource was/were authored. Multiple authors could be provided."/>
          <definition
                      value="Author(s) by whom the resource was/were authored. Multiple authors could be provided."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.authorship.author[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"/>
          </type>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"/>
          </type>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDevice"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.authorship.datetime">
          <path value="EHDSMedicationStatementCore.header.authorship.datetime"/>
          <short value="Date and time of authoring/issuing"/>
          <definition value="Date and time of authoring/issuing"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.authorship.datetime"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.lastUpdate">
          <path value="EHDSMedicationStatementCore.header.lastUpdate"/>
          <short
                 value="Date and time of the last update to the resource (may be used for technical corrections)."/>
          <definition
                      value="Date and time of the last update to the resource (may be used for technical corrections)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.lastUpdate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.status">
          <path value="EHDSMedicationStatementCore.header.status"/>
          <short value="Status of the resource or document"/>
          <definition value="Status of the resource or document"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.statusReason[x]">
          <path value="EHDSMedicationStatementCore.header.statusReason[x]"/>
          <short value="Reason for the current status of the resource."/>
          <definition value="Reason for the current status of the resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.statusReason[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.header.language">
          <path value="EHDSMedicationStatementCore.header.language"/>
          <short
                 value="Language in which the resource is written. Language is expressed by the IETF language tag."/>
          <definition
                      value="Language in which the resource is written. Language is expressed by the IETF language tag."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="BCP 47"/>
          </binding>
        </element>
        <element id="EHDSMedicationStatementCore.medication">
          <path value="EHDSMedicationStatementCore.medication"/>
          <short value="Describes the medicinal product."/>
          <definition value="Describes the medicinal product."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatementCore.medication"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedication"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.periodOfUse">
          <path value="EHDSMedicationStatementCore.periodOfUse"/>
          <short
                 value="Period when patient took, is taking or is expected to take the medication"/>
          <definition
                      value="Period when patient took, is taking or is expected to take the medication. This information may be expressed using start and end date times OR indicating the duration. The first is used to indicate a specified interval (e.g., from March 15th, 2017); the latter for indicating a 'floating' period (e.g., 2 weeks). In case of unbounded period (continuous therapy), the end element will be valued with an exceptional value."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatementCore.periodOfUse"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.medicationReason">
          <path value="EHDSMedicationStatementCore.medicationReason"/>
          <short
                 value="Coded reason for the use of the medication (typically diagnosis, or a procedure)"/>
          <definition
                      value="Coded reason for the use of the medication (typically diagnosis, or a procedure)"/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatementCore.medicationReason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.dosageInstructions">
          <path value="EHDSMedicationStatementCore.dosageInstructions"/>
          <short
                 value="Details of how medication is/was taken or should be taken"/>
          <definition
                      value="Details of how medication is/was taken or should be taken. This includes the number of units per intake and frequency of intake over a specified duration of time. Example: 1 tablet every 24h, for 10 days ."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatementCore.dosageInstructions"/>
            <min value="1"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosaging"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.intendedUseType">
          <path value="EHDSMedicationStatementCore.intendedUseType"/>
          <short
                 value="The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc."/>
          <definition
                      value="The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc."/>
          <requirements value="eHN PS Guideline, MyHealth@EU"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatementCore.intendedUseType"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSMedicationStatementCore">
          <path value="EHDSMedicationStatementCore"/>
          <short value="Medication statement model"/>
          <definition
                      value="Statement about a single medication as part of a medication summary."/>
        </element>
        <element id="EHDSMedicationStatementCore.medication">
          <path value="EHDSMedicationStatementCore.medication"/>
          <short value="Describes the medicinal product."/>
          <definition value="Describes the medicinal product."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedication"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.periodOfUse">
          <path value="EHDSMedicationStatementCore.periodOfUse"/>
          <short
                 value="Period when patient took, is taking or is expected to take the medication"/>
          <definition
                      value="Period when patient took, is taking or is expected to take the medication. This information may be expressed using start and end date times OR indicating the duration. The first is used to indicate a specified interval (e.g., from March 15th, 2017); the latter for indicating a 'floating' period (e.g., 2 weeks). In case of unbounded period (continuous therapy), the end element will be valued with an exceptional value."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.medicationReason">
          <path value="EHDSMedicationStatementCore.medicationReason"/>
          <short
                 value="Coded reason for the use of the medication (typically diagnosis, or a procedure)"/>
          <definition
                      value="Coded reason for the use of the medication (typically diagnosis, or a procedure)"/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.dosageInstructions">
          <path value="EHDSMedicationStatementCore.dosageInstructions"/>
          <short
                 value="Details of how medication is/was taken or should be taken"/>
          <definition
                      value="Details of how medication is/was taken or should be taken. This includes the number of units per intake and frequency of intake over a specified duration of time. Example: 1 tablet every 24h, for 10 days ."/>
          <requirements value="eHN PS Guideline, ISO IPS, MyHealth@EU"/>
          <min value="1"/>
          <max value="*"/>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosaging"/>
          </type>
        </element>
        <element id="EHDSMedicationStatementCore.intendedUseType">
          <path value="EHDSMedicationStatementCore.intendedUseType"/>
          <short
                 value="The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc."/>
          <definition
                      value="The type of intended use of the medication, e.g. prophylactic, therapeutic, diagnostic, anesthesia, etc."/>
          <requirements value="eHN PS Guideline, MyHealth@EU"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>