Kenya ePrescription FHIR Implementation Guide
0.1.0 - ci-build Kenya flag

Kenya ePrescription FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: MedicationRequest – Extensions: Digital Signature, Refill, Controlled Substance, Insurance Auth - XML Representation

Raw xml | Download


<MedicationRequest xmlns="http://hl7.org/fhir">
  <id value="example-medicationrequest-with-extensions"/>
  <meta>
    <profile
             value="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/ke-medication-request"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Prescription RX-2025-EXT-00001 – Extension Demonstration</b></p><p>Metformin 500 mg twice daily for James Otieno, prescribed by Dr. Sarah Njoroge. Demonstrates: digital signature, refill authorization (3 refills), controlled substance schedule (not controlled), and SHA insurance pre-authorization SHA-2025-AUTH-001234 valid 15 Jun–15 Sep 2025.</p></div>
  </text>
  <extension
             url="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/prescription-digital-signature">
    <extension url="signatureType">
      <valueCoding>
        <system value="urn:iso-astm:E1762-95:2013"/>
        <code value="1.2.840.10065.1.12.1.1"/>
        <display value="Author's Signature"/>
      </valueCoding>
    </extension>
    <extension url="signatureValue">
      <valueBase64Binary value="U0lHTkFUVVJFX1BMQUNFSE9MREVS"/>
    </extension>
    <extension url="signedBy">
      <valueReference>🔗 
        <reference value="Practitioner/example-practitioner-njoroge"/>
      </valueReference>
    </extension>
    <extension url="signedOn">
      <valueInstant value="2025-06-15T09:30:00+03:00"/>
    </extension>
  </extension>
  <extension
             url="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/refill-authorization">
    <extension url="authorizedRefills">
      <valueUnsignedInt value="3"/>
    </extension>
    <extension url="remainingRefills">
      <valueUnsignedInt value="3"/>
    </extension>
    <extension url="earliestRefillDate">
      <valueDate value="2025-07-15"/>
    </extension>
  </extension>
  <extension
             url="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/controlled-substance-schedule">
    <extension url="isControlled">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension
             url="https://nshr-uat.sha.go.ke/fhir/StructureDefinition/insurance-pre-authorization">
    <extension url="authorizationNumber">
      <valueString value="SHA-2025-AUTH-001234"/>
    </extension>
    <extension url="insurerName">
      <valueString value="Social Health Authority (SHA)"/>
    </extension>
    <extension url="validFrom">
      <valueDate value="2025-06-15"/>
    </extension>
    <extension url="validTo">
      <valueDate value="2025-09-15"/>
    </extension>
  </extension>
  <identifier>
    <system
            value="https://ilm-hie.dha.go.ke/fhir/NamingSystem/prescription-identifier"/>
    <value value="RX-2025-EXT-00001"/>
  </identifier>
  <status value="active"/>
  <intent value="order"/>
  <category>
    <coding>
      <system
              value="http://terminology.hl7.org/CodeSystem/medicationrequest-category"/>
      <code value="outpatient"/>
      <display value="Outpatient"/>
    </coding>
  </category>
  <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>
  </medicationCodeableConcept>
  <subject>🔗 
    <reference value="Patient/example-patient-otieno"/>
  </subject>
  <authoredOn value="2025-06-15"/>
  <requester>🔗 
    <reference value="Practitioner/example-practitioner-njoroge"/>
  </requester>
  <dosageInstruction>
    <text value="Take 1 tablet (500 mg) by mouth twice daily with meals"/>
    <timing>
      <repeat>
        <frequency value="2"/>
        <period value="1"/>
        <periodUnit value="d"/>
      </repeat>
    </timing>
    <route>
      <coding>
        <system
                value="https://nshr-uat.sha.go.ke/fhir/CodeSystem/route-of-administration-cs"/>
        <code value="RT10025"/>
        <display value="Oral"/>
      </coding>
    </route>
    <doseAndRate>
      <doseQuantity>
        <value value="500"/>
        <unit value="mg"/>
        <system value="http://unitsofmeasure.org"/>
        <code value="mg"/>
      </doseQuantity>
    </doseAndRate>
  </dosageInstruction>
  <dispenseRequest>
    <numberOfRepeatsAllowed value="3"/>
    <quantity>
      <value value="60"/>
      <unit value="tablet"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="1"/>
    </quantity>
  </dispenseRequest>
  <substitution>
    <allowedCodeableConcept>
      <coding>
        <system
                value="http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution"/>
        <code value="G"/>
        <display value="equivalent generic composition"/>
      </coding>
    </allowedCodeableConcept>
  </substitution>
</MedicationRequest>