{
  "resourceType" : "MedicationDispense",
  "id" : "example-medicationdispense-amina-azithromycin",
  "meta" : {
    "profile" : ["https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication-dispense",
    "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-dispense"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Dispense DISP-2025-OPD-00456</b></p><p>First-fill dispense of Azithromycin 500 mg oral tablet — 3 tablets dispensed at KNH Outpatient Pharmacy against prescription RX-2025-OPD-00789 for Amina Hassan. Dispensed: 15 June 2025. 3-day supply.</p></div>"
  },
  "identifier" : [{
    "system" : "https://ilm-hie.dha.go.ke/fhir/NamingSystem/dispense-identifier",
    "value" : "DISP-2025-OPD-00456"
  }],
  "status" : "completed",
  "medicationCodeableConcept" : {
    "coding" : [{
      "system" : "https://fhir.dha.go.ke/fhir/CodeSystem/generic-products-cs",
      "code" : "GE10015",
      "display" : "Azithromycin 500 mg Oral Tablet"
    }],
    "text" : "Azithromycin 500 mg Oral Tablet"
  },
  "subject" : {
    "reference" : "Patient/example-patient-amina"
  },
  "context" : {
    "reference" : "Encounter/example-encounter-amina-outpatient"
  },
  "performer" : [{
    "actor" : {
      "reference" : "Organization/example-organization-knh"
    }
  }],
  "location" : {
    "reference" : "Location/example-location-knh-pharmacy"
  },
  "authorizingPrescription" : [{
    "reference" : "MedicationRequest/example-medicationrequest-amina-azithromycin"
  }],
  "type" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "FF",
      "display" : "First Fill"
    }]
  },
  "quantity" : {
    "value" : 3,
    "unit" : "tablet",
    "system" : "http://unitsofmeasure.org",
    "code" : "1"
  },
  "daysSupply" : {
    "value" : 3,
    "unit" : "day",
    "system" : "http://unitsofmeasure.org",
    "code" : "d"
  },
  "whenPrepared" : "2025-06-15T10:15:00+03:00",
  "whenHandedOver" : "2025-06-15T10:30:00+03:00",
  "dosageInstruction" : [{
    "text" : "Take 1 tablet (500 mg) by mouth once daily for 3 days",
    "timing" : {
      "repeat" : {
        "frequency" : 1,
        "period" : 1,
        "periodUnit" : "d"
      }
    },
    "route" : {
      "coding" : [{
        "system" : "https://fhir.dha.go.ke/fhir/CodeSystem/route-of-administration-cs",
        "code" : "RT10025",
        "display" : "Oral"
      }]
    }
  }],
  "substitution" : {
    "wasSubstituted" : false
  }
}