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 - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-medicationrequest-with-extensions"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/ke-medication-request"^^xsd:anyURI ;
fhir:link <https://nshr-uat.sha.go.ke/fhir/StructureDefinition/ke-medication-request>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<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>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
    ( fhir:extension [
fhir:url [ fhir:v "signatureType"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ] ;
fhir:code [ fhir:v "1.2.840.10065.1.12.1.1" ] ;
fhir:display [ fhir:v "Author's Signature" ]       ]     ] [
fhir:url [ fhir:v "signatureValue"^^xsd:anyURI ] ;
fhir:value [
a fhir:base64Binary ;
fhir:v "U0lHTkFUVVJFX1BMQUNFSE9MREVS"^^xsd:base64Binary       ]     ] [
fhir:url [ fhir:v "signedBy"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Practitioner/example-practitioner-njoroge" ]       ]     ] [
fhir:url [ fhir:v "signedOn"^^xsd:anyURI ] ;
fhir:value [
a fhir:instant ;
fhir:v "2025-06-15T09:30:00+03:00"^^xsd:dateTime       ]     ] ) ;
fhir:url [ fhir:v "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/prescription-digital-signature"^^xsd:anyURI ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "authorizedRefills"^^xsd:anyURI ] ;
fhir:value [
a fhir:unsignedInt ;
fhir:v "3"^^xsd:nonNegativeInteger       ]     ] [
fhir:url [ fhir:v "remainingRefills"^^xsd:anyURI ] ;
fhir:value [
a fhir:unsignedInt ;
fhir:v "3"^^xsd:nonNegativeInteger       ]     ] [
fhir:url [ fhir:v "earliestRefillDate"^^xsd:anyURI ] ;
fhir:value [
a fhir:date ;
fhir:v "2025-07-15"^^xsd:date       ]     ] ) ;
fhir:url [ fhir:v "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/refill-authorization"^^xsd:anyURI ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "isControlled"^^xsd:anyURI ] ;
fhir:value [
a fhir:boolean ;
fhir:v false       ]     ] ) ;
fhir:url [ fhir:v "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/controlled-substance-schedule"^^xsd:anyURI ]
  ] [
    ( fhir:extension [
fhir:url [ fhir:v "authorizationNumber"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "SHA-2025-AUTH-001234"       ]     ] [
fhir:url [ fhir:v "insurerName"^^xsd:anyURI ] ;
fhir:value [
a fhir:string ;
fhir:v "Social Health Authority (SHA)"       ]     ] [
fhir:url [ fhir:v "validFrom"^^xsd:anyURI ] ;
fhir:value [
a fhir:date ;
fhir:v "2025-06-15"^^xsd:date       ]     ] [
fhir:url [ fhir:v "validTo"^^xsd:anyURI ] ;
fhir:value [
a fhir:date ;
fhir:v "2025-09-15"^^xsd:date       ]     ] ) ;
fhir:url [ fhir:v "https://nshr-uat.sha.go.ke/fhir/StructureDefinition/insurance-pre-authorization"^^xsd:anyURI ]
  ] ) ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "https://ilm-hie.dha.go.ke/fhir/NamingSystem/prescription-identifier"^^xsd:anyURI ] ;
fhir:value [ fhir:v "RX-2025-EXT-00001" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:category ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/medicationrequest-category"^^xsd:anyURI ] ;
fhir:code [ fhir:v "outpatient" ] ;
fhir:display [ fhir:v "Outpatient" ]     ] )
  ] ) ; # 
  fhir:medication [
a fhir:CodeableConcept ;
    ( fhir:coding [
fhir:system [ fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/generic-products-cs"^^xsd:anyURI ] ;
fhir:code [ fhir:v "GE10002" ] ;
fhir:display [ fhir:v "Metformin 500 mg Oral Tablet" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/example-patient-otieno" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2025-06-15"^^xsd:date] ; # 
  fhir:requester [
fhir:reference [ fhir:v "Practitioner/example-practitioner-njoroge" ]
  ] ; # 
  fhir:dosageInstruction ( [
fhir:text [ fhir:v "Take 1 tablet (500 mg) by mouth twice daily with meals" ] ;
fhir:timing [
fhir:repeat [
fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
fhir:period [ fhir:v "1"^^xsd:decimal ] ;
fhir:periodUnit [ fhir:v "d" ]       ]     ] ;
fhir:route [
      ( fhir:coding [
fhir:system [ fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/route-of-administration-cs"^^xsd:anyURI ] ;
fhir:code [ fhir:v "RT10025" ] ;
fhir:display [ fhir:v "Oral" ]       ] )     ] ;
    ( fhir:doseAndRate [
fhir:dose [
a fhir:Quantity ;
fhir:value [ fhir:v "500"^^xsd:decimal ] ;
fhir:unit [ fhir:v "mg" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "mg" ]       ]     ] )
  ] ) ; # 
  fhir:dispenseRequest [
fhir:numberOfRepeatsAllowed [ fhir:v "3"^^xsd:nonNegativeInteger ] ;
fhir:quantity [
fhir:value [ fhir:v "60"^^xsd:decimal ] ;
fhir:unit [ fhir:v "tablet" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "1" ]     ]
  ] ; # 
  fhir:substitution [
fhir:allowed [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution"^^xsd:anyURI ] ;
fhir:code [ fhir:v "G" ] ;
fhir:display [ fhir:v "equivalent generic composition" ]       ] )     ]
  ] . #