@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationStatement/example-medicationstatement-amina-azithromycin> a fhir:MedicationStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-medicationstatement-amina-azithromycin"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication-statement" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication-statement>
     ], [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-statement" ;
       fhir:index 1 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-statement>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Medication Statement MEDS-2025-00234</b></p><p>Amina Hassan completed a 3-day course of Azithromycin 500 mg (15–17 June 2025), recorded at KNH outpatient consultation. Status: completed. Asserted: 18 June 2025.</p></div>"
  ] ;
  fhir:MedicationStatement.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://ilm-hie.dha.go.ke/fhir/NamingSystem/medstatement-identifier" ] ;
     fhir:Identifier.value [ fhir:value "MEDS-2025-00234" ]
  ] ;
  fhir:MedicationStatement.status [ fhir:value "completed"] ;
  fhir:MedicationStatement.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/generic-products-cs" ] ;
       fhir:Coding.code [ fhir:value "GE10015" ] ;
       fhir:Coding.display [ fhir:value "Azithromycin 500 mg Oral Tablet" ]
     ]
  ] ;
  fhir:MedicationStatement.subject [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:MedicationStatement.context [
     fhir:link <https://fhir.dha.go.ke/erx/Encounter/example-encounter-amina-outpatient> ;
     fhir:Reference.reference [ fhir:value "Encounter/example-encounter-amina-outpatient" ]
  ] ;
  fhir:MedicationStatement.effectivePeriod [
     fhir:Period.start [ fhir:value "2025-06-15"^^xsd:date ] ;
     fhir:Period.end [ fhir:value "2025-06-17"^^xsd:date ]
  ] ;
  fhir:MedicationStatement.dateAsserted [ fhir:value "2025-06-18"^^xsd:date] ;
  fhir:MedicationStatement.informationSource [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:MedicationStatement.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "Patient confirmed completing the full 3-day course without missing a dose. No adverse effects reported." ]
  ] ;
  fhir:MedicationStatement.dosage [
     fhir:index 0 ;
     fhir:Dosage.text [ fhir:value "1 tablet (500 mg) orally once daily for 3 days" ] ;
     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 ;
         fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/route-of-administration-cs" ] ;
         fhir:Coding.code [ fhir:value "RT10025" ] ;
         fhir:Coding.display [ fhir:value "Oral" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationStatement/example-medicationstatement-amina-azithromycin.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

