@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationRequest/example-medicationrequest-invalid> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-medicationrequest-invalid"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-request" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-request>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest example-medicationrequest-invalid</b></p><a name=\"example-medicationrequest-invalid\"> </a><a name=\"hcexample-medicationrequest-invalid\"> </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: <code>https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-request</code></p></div><p><b>identifier</b>: <a href=\"NamingSystem-ns-prescription-identifier.html\" title=\"System-generated prescription number that uniquely identifies a MedicationRequest across all dispensing points. Format: RX-{YYYY}-{SITE}-{SEQ}.\">KenyaPrescriptionIdentifier</a>/RX-INVALID-001</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medicationrequest-category outpatient}\">Outpatient</span></p><p><b>medication</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/icd-10 J06.9}\">Acute upper respiratory infection</span></p><p><b>subject</b>: <a href=\"Patient-example-patient-amina.html\">Amina Hassan (official) Female, DoB: 1988-04-15 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#29834765)</a></p><p><b>authoredOn</b>: 2025-06-15</p><p><b>requester</b>: <a href=\"Practitioner-example-practitioner-njoroge.html\">Practitioner Sarah Njoroge (official)</a></p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Once per 1 day</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral route</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>500 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span></td></tr></table></blockquote></div>"
  ] ;
  fhir:MedicationRequest.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://ilm-hie.dha.go.ke/fhir/NamingSystem/prescription-identifier" ] ;
     fhir:Identifier.value [ fhir:value "RX-INVALID-001" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/medicationrequest-category" ] ;
       fhir:Coding.code [ fhir:value "outpatient" ] ;
       fhir:Coding.display [ fhir:value "Outpatient" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/sid/icd-10" ] ;
       fhir:Coding.code [ fhir:value "J06.9" ] ;
       fhir:Coding.display [ fhir:value "Acute upper respiratory infection" ]
     ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:MedicationRequest.authoredOn [ fhir:value "2025-06-15"^^xsd:date] ;
  fhir:MedicationRequest.requester [
     fhir:link <https://fhir.dha.go.ke/erx/Practitioner/example-practitioner-njoroge> ;
     fhir:Reference.reference [ fhir:value "Practitioner/example-practitioner-njoroge" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "d" ]
       ]
     ] ;
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:26643006 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "26643006" ] ;
         fhir:Coding.display [ fhir:value "Oral route" ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "500"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "mg" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "mg" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationRequest/example-medicationrequest-invalid.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

