@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://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsd-treatment-codes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "kpsd-treatment-codes"] ;
  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: CodeSystem kpsd-treatment-codes</b></p><a name=\"kpsd-treatment-codes\"> </a><a name=\"hckpsd-treatment-codes\"> </a><p>This case-sensitive code system <code>https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsd-treatment-codes</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.1<a name=\"kpsd-treatment-codes-KPS.46D.46DE.461\"> </a></td><td>Medication Reason</td><td>Clinical reason for prescribing or using the medication (linked to a health condition)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.2<a name=\"kpsd-treatment-codes-KPS.46D.46DE.462\"> </a></td><td>Intended Use</td><td>Purpose such as prevention, treatment, diagnostic, anaesthesia, or equipment care</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.3<a name=\"kpsd-treatment-codes-KPS.46D.46DE.463\"> </a></td><td>Medication Name/Code</td><td>Medication administered or intended for administration</td></tr><tr><td style=\"white-space:nowrap\">medicationStatus<a name=\"kpsd-treatment-codes-medicationStatus\"> </a></td><td>Medication Status</td><td>Availability status of the medication</td></tr><tr><td style=\"white-space:nowrap\">medicationStatusActive<a name=\"kpsd-treatment-codes-medicationStatusActive\"> </a></td><td>Active</td><td>The medication is currently in use</td></tr><tr><td style=\"white-space:nowrap\">medicationStatusInactive<a name=\"kpsd-treatment-codes-medicationStatusInactive\"> </a></td><td>Inactive</td><td>The medication is not currently in use</td></tr><tr><td style=\"white-space:nowrap\">medicationStatusError<a name=\"kpsd-treatment-codes-medicationStatusError\"> </a></td><td>Entered in Error</td><td>The medication was recorded by mistake</td></tr><tr><td style=\"white-space:nowrap\">medicationForm<a name=\"kpsd-treatment-codes-medicationForm\"> </a></td><td>Medication Form</td><td>Form of the medication (e.g., tablet, capsule, powder)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.3.4<a name=\"kpsd-treatment-codes-KPS.46D.46DE.463.464\"> </a></td><td>Tablet</td><td>Solid dose form intended for oral administration.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.3.5<a name=\"kpsd-treatment-codes-KPS.46D.46DE.463.465\"> </a></td><td>Capsule</td><td>Oral dosage form in a gelatin shell.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.3.6<a name=\"kpsd-treatment-codes-KPS.46D.46DE.463.466\"> </a></td><td>Liquid</td><td>Oral or injectable solution/suspension dosage form.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.3.7<a name=\"kpsd-treatment-codes-KPS.46D.46DE.463.467\"> </a></td><td>Powder</td><td>Dry substance that can be reconstituted or used directly.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464\"> </a></td><td>Active Ingredient List</td><td>Substance(s) that produce therapeutic effect (e.g., paracetamol)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4.1<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464.461\"> </a></td><td>Paracetamol</td><td>Common analgesic and antipyretic agent.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4.2<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464.462\"> </a></td><td>Amoxicillin</td><td>Broad-spectrum beta-lactam antibiotic.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4.3<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464.463\"> </a></td><td>Metronidazole</td><td>Antibiotic and antiprotozoal medication.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4.4<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464.464\"> </a></td><td>Ibuprofen</td><td>NSAID used for pain relief, fever, and inflammation.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.4.5<a name=\"kpsd-treatment-codes-KPS.46D.46DE.464.465\"> </a></td><td>Artemether + Lumefantrine</td><td>Antimalarial combination therapy.</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.5<a name=\"kpsd-treatment-codes-KPS.46D.46DE.465\"> </a></td><td>Strength</td><td>Dosage strength of active ingredient (e.g., 500mg/tablet)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.7<a name=\"kpsd-treatment-codes-KPS.46D.46DE.467\"> </a></td><td>Dosage Regimen</td><td>Dosing schedule: amount, frequency, duration (e.g., 1 tablet every 24h for 10 days)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.8<a name=\"kpsd-treatment-codes-KPS.46D.46DE.468\"> </a></td><td>Route of Administration</td><td>Pathway for administering the product (e.g., oral, intravenous)</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.9<a name=\"kpsd-treatment-codes-KPS.46D.46DE.469\"> </a></td><td>Date of Onset of Treatment</td><td>Start date for prescribed medication use</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.10<a name=\"kpsd-treatment-codes-KPS.46D.46DE.4610\"> </a></td><td>Plan of Care</td><td>Narrative of therapeutic plans including diet, exercise, surgery, goals, and follow-ups</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.11<a name=\"kpsd-treatment-codes-KPS.46D.46DE.4611\"> </a></td><td>External Reference</td><td>Link to guidelines such as CPGs, emergency protocols, or other clinically relevant references</td></tr><tr><td style=\"white-space:nowrap\">KPS.D.DE.12<a name=\"kpsd-treatment-codes-KPS.46D.46DE.4612\"> </a></td><td>Related With</td><td>Indicates which Patient Summary entries this information relates to (e.g., link to a rare disease entry)</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsd-treatment-codes"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "KPSDTreatmentCodesCS"] ;
  fhir:CodeSystem.title [ fhir:value "KPS.D Treatment Data Elements"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.date [ fhir:value "2026-07-20T11:03:05+00:00"^^xsd:dateTime] ;
  fhir:CodeSystem.publisher [ fhir:value "Digital Health Agency (DHA), Kenya"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Digital Health Agency (DHA), Kenya" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://dha.go.ke" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@dha.go.ke" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:ContactDetail.name [ fhir:value "Digital Health Agency Kenya – FHIR Team" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@dha.go.ke" ] ;
       fhir:ContactPoint.use [ fhir:value "work" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://dha.go.ke" ] ;
       fhir:ContactPoint.use [ fhir:value "work" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "CodeSystem representing treatment and medication-related data elements under the Kenya Patient Summary (KPS.D)."] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "KE" ] ;
       fhir:Coding.display [ fhir:value "Kenya" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "25"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medication Reason" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Clinical reason for prescribing or using the medication (linked to a health condition)" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Intended Use" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Purpose such as prevention, treatment, diagnostic, anaesthesia, or equipment care" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medication Name/Code" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Medication administered or intended for administration" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "medicationStatus" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medication Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Availability status of the medication" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "medicationStatusActive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Active" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The medication is currently in use" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "medicationStatusInactive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Inactive" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The medication is not currently in use" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "medicationStatusError" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Entered in Error" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The medication was recorded by mistake" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "medicationForm" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medication Form" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Form of the medication (e.g., tablet, capsule, powder)" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.3.4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Tablet" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Solid dose form intended for oral administration." ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.3.5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Capsule" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Oral dosage form in a gelatin shell." ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.3.6" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Liquid" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Oral or injectable solution/suspension dosage form." ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.3.7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Powder" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Dry substance that can be reconstituted or used directly." ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Active Ingredient List" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Substance(s) that produce therapeutic effect (e.g., paracetamol)" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4.1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Paracetamol" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Common analgesic and antipyretic agent." ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4.2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Amoxicillin" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Broad-spectrum beta-lactam antibiotic." ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4.3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Metronidazole" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Antibiotic and antiprotozoal medication." ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4.4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Ibuprofen" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "NSAID used for pain relief, fever, and inflammation." ]
  ], [
     fhir:index 17 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.4.5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Artemether + Lumefantrine" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Antimalarial combination therapy." ]
  ], [
     fhir:index 18 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Strength" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Dosage strength of active ingredient (e.g., 500mg/tablet)" ]
  ], [
     fhir:index 19 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Dosage Regimen" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Dosing schedule: amount, frequency, duration (e.g., 1 tablet every 24h for 10 days)" ]
  ], [
     fhir:index 20 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.8" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Route of Administration" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Pathway for administering the product (e.g., oral, intravenous)" ]
  ], [
     fhir:index 21 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.9" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Date of Onset of Treatment" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Start date for prescribed medication use" ]
  ], [
     fhir:index 22 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.10" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Plan of Care" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Narrative of therapeutic plans including diet, exercise, surgery, goals, and follow-ups" ]
  ], [
     fhir:index 23 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.11" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "External Reference" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Link to guidelines such as CPGs, emergency protocols, or other clinically relevant references" ]
  ], [
     fhir:index 24 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.D.DE.12" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Related With" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Indicates which Patient Summary entries this information relates to (e.g., link to a rare disease entry)" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsd-treatment-codes.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

