EHDS Logical Information Models
0.4.0 - draft

EHDS Logical Information Models, published by Xt-EHR. This guide is not an authorized publication; it is the continuous build for version 0.4.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/ and changes regularly. See the Directory of published versions

## Logical Model: EHDSMedicationDispenseObligations - XML Profile

Draft as of 2026-03-03

XML representation of the EHDSMedicationDispenseObligations logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSMedicationDispenseObligations"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSMedicationDispenseObligations</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-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations" title="Obligations for the logical model for medication dispense for dispensing/pharmacy systems (producer) and prescribing systems or prescription repositories(consumer).">EHDSMedicationDispenseObligations</a><a name="EHDSMedicationDispenseObligations"> </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-EHDSMedicationDispense.html">EHDSMedicationDispense</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 dispense model obligations<br/><br/>Elements defined in Ancestors:<a href="StructureDefinition-EHDSDataSet.html" title="Basic metadata for this information">header</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Location of dispense">dispenseLocation</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Identification of the person who received the dispensed medication, especially when it was not the patient. When not present, it is assumed that the patient is the receiver.">receiver[x]</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Identifier of the prescription item the dispense is related to.  [Used for searching]">relatedRequest</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Exact dispensed product. If multiple medications are dispensed together, multiple dispense records should be created.">medication</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Number of dispensed packages if the package size is known, or number of smaller items/units, according to the medication dispensed. A unit is expected.">dispensedQuantity</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Date and time when medication was handed over. When not present, the time of dispensation is assumed to be the time of issuing dispense record.">timeOfDispensation</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Whether substitution was made by the dispenser. Definition of substitution is specific to the jurisdiction.">substitutionOccurred</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Dosage and administration instructions">dosageInstructions</a>, <a href="StructureDefinition-EHDSMedicationDispense.html" title="Additional information or comments">note</a></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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.header">header</a><a name="EHDSMedicationDispenseObligations.header"> </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"/><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"/></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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.header.subject">subject</a><a name="EHDSMedicationDispenseObligations.header.subject"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="StructureDefinition-EHDSPatient.html">EHDSPatient</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"><span style="opacity: 0.5">The person for whom the medication is prescribed. [Used for searching]</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.header.author[x]">author[x]</a><a name="EHDSMedicationDispenseObligations.header.author_x_"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</span></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"><span style="opacity: 0.5">1</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: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="StructureDefinition-EHDSHealthProfessional.html">EHDSHealthProfessional</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5; opacity: 0.5" href="StructureDefinition-EHDSOrganisation.html">EHDSOrganisation</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5; opacity: 0.5" href="StructureDefinition-EHDSDevice.html">EHDSDevice</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"><span style="opacity: 0.5">The actor who issued the dispense record. Responsibility for the dispense should be traceable from this information.</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHOULD</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.header.date">date</a><a name="EHDSMedicationDispenseObligations.header.date"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#dateTime">dateTime</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"><span style="opacity: 0.5">Date and time of issuing the dispense record. [Used for searching]</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHOULD</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.header.status">status</a><a name="EHDSMedicationDispenseObligations.header.status"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</span></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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" 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"><span style="opacity: 0.5">The status of the dispense, e.g. completed, declined, entered-in-error. [Used for searching]</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.relatedRequest">relatedRequest</a><a name="EHDSMedicationDispenseObligations.relatedRequest"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</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"><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 style="opacity: 0.5; opacity: 0.5" 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Identifier of the prescription item the dispense is related to.  [Used for searching]</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.medication">medication</a><a name="EHDSMedicationDispenseObligations.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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</span></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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" 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"><span style="opacity: 0.5">Exact dispensed product. If multiple medications are dispensed together, multiple dispense records should be created.</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.dispensedQuantity">dispensedQuantity</a><a name="EHDSMedicationDispenseObligations.dispensedQuantity"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#Quantity">Quantity</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"><span style="opacity: 0.5">Number of dispensed packages if the package size is known, or number of smaller items/units, according to the medication dispensed. A unit is expected.</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EHDSMedicationDispenseObligations-definitions.html#EHDSMedicationDispenseObligations.dosageInstructions">dosageInstructions</a><a name="EHDSMedicationDispenseObligations.dosageInstructions"> </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"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element has obligations">O</span></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"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="StructureDefinition-EHDSDosage.html">EHDSDosage</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"><span style="opacity: 0.5">Dosage and administration instructions</span><table class="obligation grid"><tr><td style="font-size: 11px"><b>Obligations</b></td><td style="font-size: 11px"><b>Actor</b></td></tr><tr><td style="font-size: 11px"><b>SHOULD</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-able-to-populate" title="Obligation Codes: be able to populate">able-to-populate</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-producer.html">Producer</a></td></tr><tr><td style="font-size: 11px"><b>SHOULD</b>:<a href="http://hl7.org/fhir/extensions/5.2.0/CodeSystem-obligation.html#obligation-process" title="Obligation Codes: process">process</a></td><td style="font-size: 11px; opacity: 0.5;"><a href="ActorDefinition-actor-consumer.html">Consumer</a></td></tr></table></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>
      <url
           value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations"/>
      <version value="0.4.0"/>
      <name value="EHDSMedicationDispenseObligations"/>
      <title value="Medication dispense model obligations"/>
      <status value="draft"/>
      <date value="2026-03-03T22:34:02+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="Obligations for the logical model for medication dispense for dispensing/pharmacy systems (producer) and prescribing systems or prescription repositories(consumer)."/>
      <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/EHDSMedicationDispenseObligations"/>
      <baseDefinition
                      value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispense"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.4.0"/>
        </extension>
        <element id="EHDSMedicationDispenseObligations">
          <path value="EHDSMedicationDispenseObligations"/>
          <short value="Medication dispense model obligations"/>
          <definition
                      value="Obligations for the logical model for medication dispense for dispensing/pharmacy systems (producer) and prescribing systems or prescription repositories(consumer)."/>
          <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="EHDSMedicationDispenseObligations.header">
          <path value="EHDSMedicationDispenseObligations.header"/>
          <short value="Basic metadata for this information"/>
          <definition value="Basic metadata for this information"/>
          <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="EHDSMedicationDispenseObligations.header.subject">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.subject"/>
          <short
                 value="The person for whom the medication is prescribed. [Used for searching]"/>
          <definition
                      value="The person for whom the medication is prescribed. [Used for searching]"/>
          <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="EHDSMedicationDispenseObligations.header.identifier">
          <path value="EHDSMedicationDispenseObligations.header.identifier"/>
          <short
                 value="Business identifier(s) for the dispense record. [Used for searching]"/>
          <definition
                      value="Business identifier(s) for the dispense record. [Used for searching]"/>
          <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="EHDSMedicationDispenseObligations.header.author[x]">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension url="documentation">
              <valueMarkdown
                             value="Systems shall support at least EHDSHealthProfessional data type for the element."/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.author[x]"/>
          <short
                 value="The actor who issued the dispense record. Responsibility for the dispense should be traceable from this information."/>
          <definition
                      value="The actor who issued the dispense record. Responsibility for the dispense should be traceable from this information."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="EHDSDataSet.header.author[x]"/>
            <min value="0"/>
            <max value="*"/>
          </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="EHDSMedicationDispenseObligations.header.date">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.date"/>
          <short
                 value="Date and time of issuing the dispense record. [Used for searching]"/>
          <definition
                      value="Date and time of issuing the dispense record. [Used for searching]"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.date"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.status">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.status"/>
          <short
                 value="The status of the dispense, e.g. completed, declined, entered-in-error. [Used for searching]"/>
          <definition
                      value="The status of the dispense, e.g. completed, declined, entered-in-error. [Used for searching]"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSDataSet.header.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="HL7 MedicationDispense Status Codes"/>
          </binding>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.source">
          <path value="EHDSMedicationDispenseObligations.header.source"/>
          <short
                 value="Source of information (e.g. patient, patient's proxy). Used in case the patient has authored the information or the author has submitted patient-stated information."/>
          <definition
                      value="Source of information (e.g. patient, patient's proxy). Used in case the patient has authored the information or the author has submitted patient-stated information."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="EHDSDataSet.header.source"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.language">
          <path value="EHDSMedicationDispenseObligations.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="EHDSMedicationDispenseObligations.dispenseLocation">
          <path value="EHDSMedicationDispenseObligations.dispenseLocation"/>
          <short value="Location of dispense"/>
          <definition value="Location of dispense"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.dispenseLocation"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSLocation"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.receiver[x]">
          <path value="EHDSMedicationDispenseObligations.receiver[x]"/>
          <short
                 value="Identification of the person who received the dispensed medication, especially when it was not the patient. When not present, it is assumed that the patient is the receiver."/>
          <definition
                      value="Identification of the person who received the dispensed medication, especially when it was not the patient. When not present, it is assumed that the patient is the receiver."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.receiver[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSPatient"/>
          </type>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"/>
          </type>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSRelatedPerson"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.relatedRequest">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.relatedRequest"/>
          <short
                 value="Identifier of the prescription item the dispense is related to.  [Used for searching]"/>
          <definition
                      value="Identifier of the prescription item the dispense is related to.  [Used for searching]"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSMedicationDispense.relatedRequest"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.medication">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.medication"/>
          <short
                 value="Exact dispensed product. If multiple medications are dispensed together, multiple dispense records should be created."/>
          <definition
                      value="Exact dispensed product. If multiple medications are dispensed together, multiple dispense records should be created."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.medication"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedication"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.dispensedQuantity">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.dispensedQuantity"/>
          <short
                 value="Number of dispensed packages if the package size is known, or number of smaller items/units, according to the medication dispensed. A unit is expected."/>
          <definition
                      value="Number of dispensed packages if the package size is known, or number of smaller items/units, according to the medication dispensed. A unit is expected."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.dispensedQuantity"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
          <binding>
            <strength value="preferred"/>
            <description value="UCUM, EDQM Standard Terms"/>
          </binding>
        </element>
        <element id="EHDSMedicationDispenseObligations.timeOfDispensation">
          <path value="EHDSMedicationDispenseObligations.timeOfDispensation"/>
          <short
                 value="Date and time when medication was handed over. When not present, the time of dispensation is assumed to be the time of issuing dispense record."/>
          <definition
                      value="Date and time when medication was handed over. When not present, the time of dispensation is assumed to be the time of issuing dispense record."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.timeOfDispensation"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.substitutionOccurred">
          <path value="EHDSMedicationDispenseObligations.substitutionOccurred"/>
          <short
                 value="Whether substitution was made by the dispenser. Definition of substitution is specific to the jurisdiction."/>
          <definition
                      value="Whether substitution was made by the dispenser. Definition of substitution is specific to the jurisdiction."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.substitutionOccurred"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.dosageInstructions">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
              <valueCanonical
                              value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSMedicationDispenseObligations|0.4.0"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.dosageInstructions"/>
          <short value="Dosage and administration instructions"/>
          <definition value="Dosage and administration instructions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.dosageInstructions"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosage"/>
          </type>
        </element>
        <element id="EHDSMedicationDispenseObligations.note">
          <path value="EHDSMedicationDispenseObligations.note"/>
          <short value="Additional information or comments"/>
          <definition value="Additional information or comments"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSMedicationDispense.note"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSMedicationDispenseObligations">
          <path value="EHDSMedicationDispenseObligations"/>
          <short value="Medication dispense model obligations"/>
          <definition
                      value="Obligations for the logical model for medication dispense for dispensing/pharmacy systems (producer) and prescribing systems or prescription repositories(consumer)."/>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.subject">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.subject"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.author[x]">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
            <extension url="documentation">
              <valueMarkdown
                             value="Systems shall support at least EHDSHealthProfessional data type for the element."/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.author[x]"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.date">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.date"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.header.status">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.header.status"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.relatedRequest">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.relatedRequest"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.medication">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.medication"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.dispensedQuantity">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHALL:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.dispensedQuantity"/>
        </element>
        <element id="EHDSMedicationDispenseObligations.dosageInstructions">
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:able-to-populate"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-producer"/>
            </extension>
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
            <extension url="code">
              <valueCode value="SHOULD:process"/>
            </extension>
            <extension url="actor">
              <valueCanonical
                              value="https://www.xt-ehr.eu/specifications/fhir/actor-consumer"/>
            </extension>
          </extension>
          <path value="EHDSMedicationDispenseObligations.dosageInstructions"/>
        </element>
      </differential>
    </StructureDefinition>