{
  "resourceType" : "MedicationDispense",
  "id" : "example-medicationdispense-with-notification",
  "meta" : {
    "profile" : ["https://nshr-uat.sha.go.ke/fhir/StructureDefinition/ke-medication-dispense"]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<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>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "notificationSent",
      "valueBoolean" : true
    },
    {
      "url" : "notificationChannel",
      "valueCodeableConcept" : {
        "text" : "SMS"
      }
    },
    {
      "url" : "notifiedOn",
      "valueDateTime" : "2025-06-15T10:35:00+03:00"
    }],
    "url" : "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/dispense-notification"
  }],
  "identifier" : [{
    "system" : "https://ilm-hie.dha.go.ke/fhir/NamingSystem/dispense-identifier",
    "value" : "DISP-2025-EXT-00001"
  }],
  "status" : "completed",
  "medicationCodeableConcept" : {
    "coding" : [{
      "system" : "https://nshr-uat.sha.go.ke/fhir/CodeSystem/generic-products-cs",
      "code" : "GE10002",
      "display" : "Metformin 500 mg Oral Tablet"
    }],
    "text" : "Metformin 500 mg Oral Tablet"
  },
  "subject" : {
    "reference" : "Patient/example-patient-otieno"
  },
  "context" : {
    "reference" : "Encounter/example-encounter-otieno-inpatient"
  },
  "performer" : [{
    "actor" : {
      "reference" : "Organization/example-organization-knh"
    }
  }],
  "location" : {
    "reference" : "Location/example-location-knh-pharmacy"
  },
  "authorizingPrescription" : [{
    "reference" : "MedicationRequest/example-medicationrequest-with-extensions"
  }],
  "type" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "FF",
      "display" : "First Fill"
    }]
  },
  "quantity" : {
    "value" : 60,
    "unit" : "tablet",
    "system" : "http://unitsofmeasure.org",
    "code" : "1"
  },
  "daysSupply" : {
    "value" : 30,
    "unit" : "day",
    "system" : "http://unitsofmeasure.org",
    "code" : "d"
  },
  "whenHandedOver" : "2025-06-15T10:35:00+03:00",
  "substitution" : {
    "wasSubstituted" : false
  }
}