@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/Medication/example-medication-azithromycin> a fhir:Medication ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-medication-azithromycin"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/erx/StructureDefinition/ke-medication>
     ], [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication" ;
       fhir:index 1 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Azithromycin 500 mg Film-Coated Tablet</b></p><p>Kenya MOH Generic Product: GE10015. Active ingredient: Azithromycin (AC10746), 500 mg per tablet. Formulation: Tablet, Film-Coated (DF10594). Batch: LOT2025KNH001, expires 2027-06-30.</p></div>"
  ] ;
  fhir:Medication.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://ilm-hie.dha.go.ke/fhir/NamingSystem/medication-identifier" ] ;
     fhir:Identifier.value [ fhir:value "KE-MED-AZI-500" ]
  ] ;
  fhir:Medication.code [
     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:Medication.status [ fhir:value "active"] ;
  fhir:Medication.form [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/formulation-cs" ] ;
       fhir:Coding.code [ fhir:value "DF10594" ] ;
       fhir:Coding.display [ fhir:value "Tablet, Film-Coated" ]
     ]
  ] ;
  fhir:Medication.ingredient [
     fhir:index 0 ;
     fhir:Medication.ingredient.itemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/active-components-cs" ] ;
         fhir:Coding.code [ fhir:value "AC10746" ] ;
         fhir:Coding.display [ fhir:value "Azithromycin" ]
       ]
     ] ;
     fhir:Medication.ingredient.strength [
       fhir:Ratio.numerator [
         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" ]
       ] ;
       fhir:Ratio.denominator [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablet" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "1" ]
       ]
     ]
  ] ;
  fhir:Medication.batch [
     fhir:Medication.batch.lotNumber [ fhir:value "LOT2025KNH001" ] ;
     fhir:Medication.batch.expirationDate [ fhir:value "2027-06-30"^^xsd:date ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/Medication/example-medication-azithromycin.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

