{
  "resourceType" : "MedicationRequest",
  "id" : "example-medicationrequest-amina-azithromycin",
  "meta" : {
    "profile" : ["https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication-request",
    "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-request"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Prescription RX-2025-OPD-00789</b></p><p>Azithromycin 500 mg oral tablet — 1 tablet once daily for 3 days. Prescribed by Dr. Sarah Njoroge at KNH for Amina Hassan on 15 June 2025. Dispense: 3 tablets, valid to 15 July 2025. Generic substitution permitted.</p></div>"
  },
  "identifier" : [{
    "system" : "https://ilm-hie.dha.go.ke/fhir/NamingSystem/prescription-identifier",
    "value" : "RX-2025-OPD-00789"
  }],
  "status" : "active",
  "intent" : "order",
  "category" : [{
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
      "code" : "outpatient",
      "display" : "Outpatient"
    }]
  }],
  "priority" : "routine",
  "medicationCodeableConcept" : {
    "coding" : [{
      "system" : "https://fhir.dha.go.ke/fhir/CodeSystem/generic-products-cs",
      "code" : "GE10015",
      "display" : "Azithromycin 500 mg Oral Tablet"
    }]
  },
  "subject" : {
    "reference" : "Patient/example-patient-amina"
  },
  "encounter" : {
    "reference" : "Encounter/example-encounter-amina-outpatient"
  },
  "authoredOn" : "2025-06-15",
  "requester" : {
    "reference" : "Practitioner/example-practitioner-njoroge"
  },
  "dosageInstruction" : [{
    "text" : "Take 1 tablet (500 mg) by mouth once daily for 3 days",
    "timing" : {
      "repeat" : {
        "duration" : 3,
        "durationUnit" : "d",
        "frequency" : 1,
        "period" : 1,
        "periodUnit" : "d"
      }
    },
    "route" : {
      "coding" : [{
        "system" : "https://fhir.dha.go.ke/fhir/CodeSystem/route-of-administration-cs",
        "code" : "RT10025",
        "display" : "Oral"
      }]
    },
    "doseAndRate" : [{
      "doseQuantity" : {
        "value" : 500,
        "unit" : "mg",
        "system" : "http://unitsofmeasure.org",
        "code" : "mg"
      }
    }]
  }],
  "dispenseRequest" : {
    "validityPeriod" : {
      "start" : "2025-06-15",
      "end" : "2025-07-15"
    },
    "numberOfRepeatsAllowed" : 0,
    "quantity" : {
      "value" : 3,
      "unit" : "tablet",
      "system" : "http://unitsofmeasure.org",
      "code" : "1"
    }
  },
  "substitution" : {
    "allowedCodeableConcept" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution",
        "code" : "G",
        "display" : "equivalent generic composition"
      }]
    }
  }
}