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: EHDSMedicationStatement - XML Profile

Draft as of 2025-05-26

XML representation of the EHDSMedicationStatement logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSMedicationStatement"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSMedicationStatement</b></p><a name="EHDSMedicationStatement"> </a><a name="hcEHDSMedicationStatement"> </a><a name="EHDSMedicationStatement-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-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement" title="C.39 - EHDS refined base model for Medication statement">EHDSMedicationStatement</a><a name="EHDSMedicationStatement"> </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="http://hl7.org/fhir/R5/types.html#Base">Base</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Medication statement 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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.identifier" title="Identifiers associated with this Medication Statement">identifier</a><a name="EHDSMedicationStatement.identifier"> </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">0..*</td><td style="vertical-align: top; text-align : 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 : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.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 : 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-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.medication" title="Medication that has been taken, altered, newly prescribed or discontinued.">medication</a><a name="EHDSMedicationStatement.medication"> </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..1</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="http://hl7.org/fhir/R5/references.html">Reference</a>(<a href="StructureDefinition-EHDSMedication.html">Medicinal product model</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.2 - Medication</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_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.patient" title="Who is/was taking the medication.">patient</a><a name="EHDSMedicationStatement.patient"> </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..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; 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 : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.3 - Patient</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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.encounter" title="Encounter associated with MedicationStatement.">encounter</a><a name="EHDSMedicationStatement.encounter"> </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">0..1</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">C.39.4 - Encounter</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_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.periodOfTreatment" title="The date/time or interval when the medication is/was/will be taken.">periodOfTreatment</a><a name="EHDSMedicationStatement.periodOfTreatment"> </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">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; 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 : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.5 - Period of treatment</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_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.medicationReason" title="The reason why the medication is or was prescribed or used. It provides a link to the Past or current health condition(s) or problem(s) that the patient has had or has and for which this medication was prescribed.">medicationReason</a><a name="EHDSMedicationStatement.medicationReason"> </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">0..*</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="http://hl7.org/fhir/R5/references.html">Reference</a>(<a href="StructureDefinition-EHDSCondition.html">Condition model</a> | <a href="StructureDefinition-EHDSObservation.html">Observation model</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.6 - Medication 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 : 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-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.reasonForChange" title="Reason for change of medication">reasonForChange</a><a name="EHDSMedicationStatement.reasonForChange"> </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">0..1</td><td style="vertical-align: top; text-align : 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 : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.7 - Reason for change</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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.dosage" title="Details of how medication is/was taken or should be taken.">dosage</a><a name="EHDSMedicationStatement.dosage"> </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">0..*</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-EHDSDosage.html">EHDSDosage</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.8 - Dosage<br/></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_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.note" title="Further information about the usage">note</a><a name="EHDSMedicationStatement.note"> </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">0..*</td><td style="vertical-align: top; text-align : 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 : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.9 - Note<br/></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_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: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationStatement-definitions.html#EHDSMedicationStatement.daysSupplied" title="Number of days for which the patient was provided with the drug. Supply is intended to either hand over the medicine or write out a prescription. A 0 value indicates that the patient has not been provided with the drug (e.g. if the patient has a sufficient supply of the drug)">daysSupplied</a><a name="EHDSMedicationStatement.daysSupplied"> </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">0..1</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="http://hl7.org/fhir/R5/datatypes.html#Quantity">Quantity</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">C.39.10 - Days supplied</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/EHDSMedicationStatement"/>
      <version value="0.1.0"/>
      <name value="EHDSMedicationStatement"/>
      <title value="Medication statement 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.39 - EHDS refined base model for Medication statement"/>
      <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/EHDSMedicationStatement"/>
      <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="EHDSMedicationStatement">
          <path value="EHDSMedicationStatement"/>
          <short value="Medication statement model"/>
          <definition
                      value="C.39 - EHDS refined base model for Medication statement"/>
          <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="EHDSMedicationStatement.identifier">
          <path value="EHDSMedicationStatement.identifier"/>
          <short value="C.39.1 - Identifier"/>
          <definition
                      value="Identifiers associated with this Medication Statement"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatement.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.medication">
          <path value="EHDSMedicationStatement.medication"/>
          <short value="C.39.2 - Medication"/>
          <definition
                      value="Medication that has been taken, altered, newly prescribed or discontinued."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.medication"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSMedication"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.patient">
          <path value="EHDSMedicationStatement.patient"/>
          <short value="C.39.3 - Patient"/>
          <definition value="Who is/was taking the medication."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.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>
        <element id="EHDSMedicationStatement.encounter">
          <path value="EHDSMedicationStatement.encounter"/>
          <short value="C.39.4 - Encounter"/>
          <definition value="Encounter associated with MedicationStatement."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.encounter"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEncounter"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.periodOfTreatment">
          <path value="EHDSMedicationStatement.periodOfTreatment"/>
          <short value="C.39.5 - Period of treatment"/>
          <definition
                      value="The date/time or interval when the medication is/was/will be taken."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.periodOfTreatment"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.medicationReason">
          <path value="EHDSMedicationStatement.medicationReason"/>
          <short value="C.39.6 - Medication reason"/>
          <definition
                      value="The reason why the medication is or was prescribed or used. It provides a link to the Past or current health condition(s) or problem(s) that the patient has had or has and for which this medication was prescribed."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatement.medicationReason"/>
            <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/EHDSObservation"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.reasonForChange">
          <path value="EHDSMedicationStatement.reasonForChange"/>
          <short value="C.39.7 - Reason for change"/>
          <definition value="Reason for change of medication"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.reasonForChange"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.dosage">
          <path value="EHDSMedicationStatement.dosage"/>
          <short value="C.39.8 - Dosage"/>
          <definition
                      value="Details of how medication is/was taken or should be taken."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatement.dosage"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDosage"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.note">
          <path value="EHDSMedicationStatement.note"/>
          <short value="C.39.9 - Note"/>
          <definition value="Further information about the usage"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationStatement.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.daysSupplied">
          <path value="EHDSMedicationStatement.daysSupplied"/>
          <short value="C.39.10 - Days supplied"/>
          <definition
                      value="Number of days for which the patient was provided with the drug. Supply is intended to either hand over the medicine or write out a prescription. A 0 value indicates that the patient has not been provided with the drug (e.g. if the patient has a sufficient supply of the drug)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationStatement.daysSupplied"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSMedicationStatement">
          <path value="EHDSMedicationStatement"/>
          <short value="Medication statement model"/>
          <definition
                      value="C.39 - EHDS refined base model for Medication statement"/>
        </element>
        <element id="EHDSMedicationStatement.identifier">
          <path value="EHDSMedicationStatement.identifier"/>
          <short value="C.39.1 - Identifier"/>
          <definition
                      value="Identifiers associated with this Medication Statement"/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.medication">
          <path value="EHDSMedicationStatement.medication"/>
          <short value="C.39.2 - Medication"/>
          <definition
                      value="Medication that has been taken, altered, newly prescribed or discontinued."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSMedication"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.patient">
          <path value="EHDSMedicationStatement.patient"/>
          <short value="C.39.3 - Patient"/>
          <definition value="Who is/was taking the medication."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPatient"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.encounter">
          <path value="EHDSMedicationStatement.encounter"/>
          <short value="C.39.4 - Encounter"/>
          <definition value="Encounter associated with MedicationStatement."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code
                  value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSEncounter"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.periodOfTreatment">
          <path value="EHDSMedicationStatement.periodOfTreatment"/>
          <short value="C.39.5 - Period of treatment"/>
          <definition
                      value="The date/time or interval when the medication is/was/will be taken."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.medicationReason">
          <path value="EHDSMedicationStatement.medicationReason"/>
          <short value="C.39.6 - Medication reason"/>
          <definition
                      value="The reason why the medication is or was prescribed or used. It provides a link to the Past or current health condition(s) or problem(s) that the patient has had or has and for which this medication was prescribed."/>
          <min value="0"/>
          <max value="*"/>
          <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/EHDSObservation"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.reasonForChange">
          <path value="EHDSMedicationStatement.reasonForChange"/>
          <short value="C.39.7 - Reason for change"/>
          <definition value="Reason for change of medication"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.dosage">
          <path value="EHDSMedicationStatement.dosage"/>
          <short value="C.39.8 - Dosage"/>
          <definition
                      value="Details of how medication is/was taken or should be taken."/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code
                  value="https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDosage"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.note">
          <path value="EHDSMedicationStatement.note"/>
          <short value="C.39.9 - Note"/>
          <definition value="Further information about the usage"/>
          <min value="0"/>
          <max value="*"/>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSMedicationStatement.daysSupplied">
          <path value="EHDSMedicationStatement.daysSupplied"/>
          <short value="C.39.10 - Days supplied"/>
          <definition
                      value="Number of days for which the patient was provided with the drug. Supply is intended to either hand over the medicine or write out a prescription. A 0 value indicates that the patient has not been provided with the drug (e.g. if the patient has a sufficient supply of the drug)"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>