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

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="example-medicationdispense-with-notification"/>
  <meta>
    <profile value="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/ke-medication-dispense"/>
  </meta>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: MedicationDispense example-medicationdispense-with-notification</b></p><a name="example-medicationdispense-with-notification"> </a><a name="hcexample-medicationdispense-with-notification"> </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-ke-medication-dispense.html">Kenya eRx MedicationDispense</a></p></div><blockquote><p><b>Dispense Notification</b></p><ul><li>notificationSent: true</li><li>notificationChannel: <span title="Codes:">SMS</span></li><li>notifiedOn: 2025-06-15 10:35:00+0300</li></ul></blockquote><p><b>identifier</b>: <a href="NamingSystem-ns-dispense-identifier.html" title="Dispense transaction number generated by the pharmacy management system. Format: DISP-{YYYY}-{SITE}-{SEQ}.">KenyaDispenseIdentifier</a>/DISP-2025-EXT-00001</p><p><b>status</b>: Completed</p><p><b>medication</b>: <span title="Codes:{https://nshr-uat.sha.go.ke/fhir/CodeSystem/generic-products-cs GE10002}">Metformin 500 mg Oral Tablet</span></p><p><b>subject</b>: <a href="Patient-example-patient-otieno.html">James Otieno (official) Male, DoB: 1968-09-20 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#10293847)</a></p><p><b>context</b>: <a href="Encounter-example-encounter-otieno-inpatient.html">Encounter: identifier = https://ilm-hie.dha.go.ke/fhir/NamingSystem/encounter-identifier#KenyaEncounterIdentifier#ENC-2025-IPD-00456; status = in-progress; class = inpatient encounter (ActCode#IMP); serviceType = Cancer Services; priority = Routine; period = 2025-06-10 08:00:00+0300 --&gt; (ongoing)</a></p><h3>Performers</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Actor</b></td></tr><tr><td style="display: none">*</td><td><a href="Organization-example-organization-knh.html">Organization Kenyatta National Hospital</a></td></tr></table><p><b>location</b>: <a href="Location-example-location-knh-pharmacy.html">Location KNH Outpatient Pharmacy</a></p><p><b>authorizingPrescription</b>: <a href="MedicationRequest-example-medicationrequest-with-extensions.html">MedicationRequest: extension = ,,,; identifier = https://ilm-hie.dha.go.ke/fhir/NamingSystem/prescription-identifier#KenyaPrescriptionIdentifier#RX-2025-EXT-00001; status = active; intent = order; category = Outpatient; medication[x] = Metformin 500 mg Oral Tablet; authoredOn = 2025-06-15</a></p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode FF}">First Fill</span></p><p><b>quantity</b>: 60 tablet<span style="background: LightGoldenRodYellow"> (Details: UCUM  code1 = '1')</span></p><p><b>daysSupply</b>: 30 day<span style="background: LightGoldenRodYellow"> (Details: UCUM  coded = 'd')</span></p><p><b>whenHandedOver</b>: 2025-06-15 10:35:00+0300</p><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://nshr-uat.sha.go.ke/fhir/StructureDefinition/dispense-notification">
    <extension url="notificationSent">
      <valueBoolean value="true"/>
    </extension>
    <extension url="notificationChannel">
      <valueCodeableConcept>
        <text value="SMS"/>
      </valueCodeableConcept>
    </extension>
    <extension url="notifiedOn">
      <valueDateTime value="2025-06-15T10:35:00+03:00"/>
    </extension>
  </extension>
  <identifier>
    <system value="https://ilm-hie.dha.go.ke/fhir/NamingSystem/dispense-identifier"/>
    <value value="DISP-2025-EXT-00001"/>
  </identifier>
  <status value="completed"/>
  <medicationCodeableConcept>
    <coding>
      <system value="https://nshr-uat.sha.go.ke/fhir/CodeSystem/generic-products-cs"/>
      <code value="GE10002"/>
      <display value="Metformin 500 mg Oral Tablet"/>
    </coding>
    <text value="Metformin 500 mg Oral Tablet"/>
  </medicationCodeableConcept>
  <subject>
    <reference value="Patient/example-patient-otieno"/>
  </subject>
  <context>
    <reference value="Encounter/example-encounter-otieno-inpatient"/>
  </context>
  <performer>
    <actor>
      <reference value="Organization/example-organization-knh"/>
    </actor>
  </performer>
  <location>
    <reference value="Location/example-location-knh-pharmacy"/>
  </location>
  <authorizingPrescription>
    <reference value="MedicationRequest/example-medicationrequest-with-extensions"/>
  </authorizingPrescription>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="FF"/>
      <display value="First Fill"/>
    </coding>
  </type>
  <quantity>
    <value value="60"/>
    <unit value="tablet"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="1"/>
  </quantity>
  <daysSupply>
    <value value="30"/>
    <unit value="day"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="d"/>
  </daysSupply>
  <whenHandedOver value="2025-06-15T10:35:00+03:00"/>
  <substitution>
    <wasSubstituted value="false"/>
  </substitution>
</MedicationDispense>