<?xml version="1.0" encoding="UTF-8"?>

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="TRxHubMedicationDispenseExampleCompleted"/>
  <meta>
    <profile value="https://trxhub.mediservice.ch/fhir/StructureDefinition/trxhub-medication-dispense"/>
  </meta>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: MedicationDispense TRxHubMedicationDispenseExampleCompleted</b></p><a name="TRxHubMedicationDispenseExampleCompleted"> </a><a name="hcTRxHubMedicationDispenseExampleCompleted"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-trxhub-medication-dispense.html">TRxHub MedicationDispense</a></p></div><p><b>Shipment Tracking URL</b>: <a href="https://service.post/ekp-web/ui/entry/search/99.00.123456.12345678">https://service.post/ekp-web/ui/entry/search/99.00.123456.12345678</a></p><p><b>status</b>: Completed</p><p><b>medication</b>: <span title="Codes:{urn:oid:2.51.1.3 3818951}">3818951</span></p><p><b>subject</b>: <a href="Patient-TRxHubPatientExample.html">Max Muster (official) Male, DoB: 1985-06-15</a></p><p><b>supportingInformation</b>: <a href="ServiceRequest-TRxHubServiceRequestExampleOrderMedication.html">ServiceRequest Order Medication from prescription</a></p><p><b>authorizingPrescription</b>: <a href="MedicationRequest-TRxHubMedicationRequestExample.html">MedicationRequest: extension = 12345.01; status = active; intent = order; medication[x] = 3818951</a></p><p><b>type</b>: <span title="Codes:{https://trxhub.mediservice.ch/fhir/CodeSystem/trxhub-medication-dispense-type fully-dispensed}">Fully dispensed</span></p><p><b>quantity</b>: 1</p><p><b>whenHandedOver</b>: 2026-05-02 10:15:00+0200</p><p><b>note</b>: </p><blockquote><div><p>Shipped by post</p>
</div></blockquote><h3>Substitutions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>WasSubstituted</b></td></tr><tr><td style="display: none">*</td><td>false</td></tr></table></div>
  </text>
  <extension url="https://trxhub.mediservice.ch/fhir/StructureDefinition/trxhub-shipment-tracking-url">
    <valueUrl value="https://service.post/ekp-web/ui/entry/search/99.00.123456.12345678"/>
  </extension>
  <status value="completed"/>
  <medicationCodeableConcept>
    <coding>
      <system value="urn:oid:2.51.1.3"/>
      <code value="3818951"/>
    </coding>
  </medicationCodeableConcept>
  <subject>
    <reference value="Patient/TRxHubPatientExample"/>
  </subject>
  <supportingInformation>
    <reference value="ServiceRequest/TRxHubServiceRequestExampleOrderMedication"/>
  </supportingInformation>
  <authorizingPrescription>
    <reference value="MedicationRequest/TRxHubMedicationRequestExample"/>
  </authorizingPrescription>
  <type>
    <coding>
      <system value="https://trxhub.mediservice.ch/fhir/CodeSystem/trxhub-medication-dispense-type"/>
      <code value="fully-dispensed"/>
    </coding>
  </type>
  <quantity>
    <value value="1"/>
  </quantity>
  <whenHandedOver value="2026-05-02T10:15:00+02:00"/>
  <note>
    <text value="Shipped by post"/>
  </note>
  <substitution>
    <wasSubstituted value="false"/>
  </substitution>
</MedicationDispense>