@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/kpsb-clinical-consultation-codes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "kpsb-clinical-consultation-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 kpsb-clinical-consultation-codes</b></p><a name=\"kpsb-clinical-consultation-codes\"> </a><a name=\"hckpsb-clinical-consultation-codes\"> </a><p>This case-sensitive code system <code>https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsb-clinical-consultation-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.B.DE.1<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.461\"> </a></td><td>Agent or Allergen</td><td>Substance to which the patient has a hypersensitivity (drug, food, chemical, etc.)</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.2<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.462\"> </a></td><td>Allergy Description</td><td>Narrative description of the allergy or intolerance</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.3<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.463\"> </a></td><td>Type of Propensity</td><td>Describes if this is an allergy, intolerance, or unknown</td></tr><tr><td style=\"white-space:nowrap\">allergy<a name=\"kpsb-clinical-consultation-codes-allergy\"> </a></td><td>Allergy</td><td>Hypersensitive reaction(s) to a substance (Type I or similar)</td></tr><tr><td style=\"white-space:nowrap\">intolerance<a name=\"kpsb-clinical-consultation-codes-intolerance\"> </a></td><td>Intolerance</td><td>Adverse reactions not judged to be allergy-like</td></tr><tr><td style=\"white-space:nowrap\">unknownPropensity<a name=\"kpsb-clinical-consultation-codes-unknownPropensity\"> </a></td><td>Unknown</td><td>Cannot determine if allergy or intolerance</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.4<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.464\"> </a></td><td>Allergy Manifestation</td><td>Description of clinical signs like angioedema or anaphylaxis</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.5<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.465\"> </a></td><td>Severity</td><td>Severity of the reaction</td></tr><tr><td style=\"white-space:nowrap\">severe<a name=\"kpsb-clinical-consultation-codes-severe\"> </a></td><td>Severe</td><td>Causes severe physiological effects</td></tr><tr><td style=\"white-space:nowrap\">moderate<a name=\"kpsb-clinical-consultation-codes-moderate\"> </a></td><td>Moderate</td><td>Causes moderate physiological effects</td></tr><tr><td style=\"white-space:nowrap\">mild<a name=\"kpsb-clinical-consultation-codes-mild\"> </a></td><td>Mild</td><td>Causes mild physiological effects</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.6<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.466\"> </a></td><td>Criticality</td><td>Potential for life-threatening adverse reactions</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.7<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.467\"> </a></td><td>Onset Date</td><td>Date when allergy was observed</td></tr><tr><td style=\"white-space:nowrap\">onsetAge<a name=\"kpsb-clinical-consultation-codes-onsetAge\"> </a></td><td>Onset Age</td><td>Age of patient when allergy began</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.8<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.468\"> </a></td><td>End Date</td><td>Date when allergy was resolved</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.9<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.469\"> </a></td><td>Allergy Status</td><td>Current allergy status</td></tr><tr><td style=\"white-space:nowrap\">active<a name=\"kpsb-clinical-consultation-codes-active\"> </a></td><td>Active</td><td>Currently at risk</td></tr><tr><td style=\"white-space:nowrap\">inactive<a name=\"kpsb-clinical-consultation-codes-inactive\"> </a></td><td>Inactive</td><td>No longer at risk</td></tr><tr><td style=\"white-space:nowrap\">resolved<a name=\"kpsb-clinical-consultation-codes-resolved\"> </a></td><td>Resolved</td><td>Clinically resolved by testing or re-exposure</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.10<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4610\"> </a></td><td>Allergy Certainty</td><td>Certainty of allergy assertion</td></tr><tr><td style=\"white-space:nowrap\">confirmedAllergy<a name=\"kpsb-clinical-consultation-codes-confirmedAllergy\"> </a></td><td>Confirmed</td><td>High certainty, e.g., test confirmed</td></tr><tr><td style=\"white-space:nowrap\">unconfirmedAllergy<a name=\"kpsb-clinical-consultation-codes-unconfirmedAllergy\"> </a></td><td>Unconfirmed</td><td>Low certainty</td></tr><tr><td style=\"white-space:nowrap\">refutedAllergy<a name=\"kpsb-clinical-consultation-codes-refutedAllergy\"> </a></td><td>Refuted</td><td>Disproven through clinical review</td></tr><tr><td style=\"white-space:nowrap\">enteredInError<a name=\"kpsb-clinical-consultation-codes-enteredInError\"> </a></td><td>Entered in Error</td><td>Mistakenly entered record</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.11<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4611\"> </a></td><td>Healthcare Alert Description</td><td>Narrative for any critical medical alert</td></tr><tr><td style=\"white-space:nowrap\">alertCode<a name=\"kpsb-clinical-consultation-codes-alertCode\"> </a></td><td>Alert Code</td><td>Code to represent the alert</td></tr><tr><td style=\"white-space:nowrap\">lowPriority<a name=\"kpsb-clinical-consultation-codes-lowPriority\"> </a></td><td>Low Priority</td><td>Low clinical importance</td></tr><tr><td style=\"white-space:nowrap\">mediumPriority<a name=\"kpsb-clinical-consultation-codes-mediumPriority\"> </a></td><td>Medium Priority</td><td>Moderate clinical importance</td></tr><tr><td style=\"white-space:nowrap\">highPriority<a name=\"kpsb-clinical-consultation-codes-highPriority\"> </a></td><td>High Priority</td><td>High clinical importance</td></tr><tr><td style=\"white-space:nowrap\">alertStatusActive<a name=\"kpsb-clinical-consultation-codes-alertStatusActive\"> </a></td><td>Active</td><td>Currently applicable alert</td></tr><tr><td style=\"white-space:nowrap\">alertStatusInactive<a name=\"kpsb-clinical-consultation-codes-alertStatusInactive\"> </a></td><td>Inactive</td><td>Alert no longer applies</td></tr><tr><td style=\"white-space:nowrap\">alertStatusError<a name=\"kpsb-clinical-consultation-codes-alertStatusError\"> </a></td><td>Entered in Error</td><td>Invalid alert entry</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.12<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4612\"> </a></td><td>Problem Description</td><td>Previously resolved, inactive, or closed problems</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.13<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4613\"> </a></td><td>Problem Onset Date</td><td>Date when problem started</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.14<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4614\"> </a></td><td>Problem End Date</td><td>Resolution date of problem</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.15<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4615\"> </a></td><td>Resolution Circumstances</td><td>Narrative for how the problem was resolved</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.16<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4616\"> </a></td><td>Medical History</td><td>Anamnesis and relevant narrative</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.17<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4617\"> </a></td><td>Problem/Condition</td><td>Currently relevant conditions</td></tr><tr><td style=\"white-space:nowrap\">clinicalStatusActive<a name=\"kpsb-clinical-consultation-codes-clinicalStatusActive\"> </a></td><td>Active</td><td>Currently experiencing symptoms</td></tr><tr><td style=\"white-space:nowrap\">clinicalStatusRecurrence<a name=\"kpsb-clinical-consultation-codes-clinicalStatusRecurrence\"> </a></td><td>Recurrence</td><td>Reappearance of a previously resolved condition</td></tr><tr><td style=\"white-space:nowrap\">clinicalStatusRelapse<a name=\"kpsb-clinical-consultation-codes-clinicalStatusRelapse\"> </a></td><td>Relapse</td><td>Return of condition after improvement</td></tr><tr><td style=\"white-space:nowrap\">confirmed<a name=\"kpsb-clinical-consultation-codes-confirmed\"> </a></td><td>Confirmed</td><td>Sufficient evidence</td></tr><tr><td style=\"white-space:nowrap\">unconfirmed<a name=\"kpsb-clinical-consultation-codes-unconfirmed\"> </a></td><td>Unconfirmed</td><td>Insufficient evidence</td></tr><tr><td style=\"white-space:nowrap\">differential<a name=\"kpsb-clinical-consultation-codes-differential\"> </a></td><td>Differential</td><td>Possible diagnoses</td></tr><tr><td style=\"white-space:nowrap\">conditionCategoryEncounter<a name=\"kpsb-clinical-consultation-codes-conditionCategoryEncounter\"> </a></td><td>Encounter Diagnosis</td><td>Diagnosed during an encounter</td></tr><tr><td style=\"white-space:nowrap\">conditionCategoryProblem<a name=\"kpsb-clinical-consultation-codes-conditionCategoryProblem\"> </a></td><td>Problem List Item</td><td>Ongoing/chronic condition</td></tr><tr><td style=\"white-space:nowrap\">conditionSeveritySevere<a name=\"kpsb-clinical-consultation-codes-conditionSeveritySevere\"> </a></td><td>Severe</td><td>Significantly limits function</td></tr><tr><td style=\"white-space:nowrap\">conditionSeverityModerate<a name=\"kpsb-clinical-consultation-codes-conditionSeverityModerate\"> </a></td><td>Moderate</td><td>Notable impact on daily life</td></tr><tr><td style=\"white-space:nowrap\">conditionSeverityMild<a name=\"kpsb-clinical-consultation-codes-conditionSeverityMild\"> </a></td><td>Mild</td><td>Minimal impact</td></tr><tr><td style=\"white-space:nowrap\">bodySite<a name=\"kpsb-clinical-consultation-codes-bodySite\"> </a></td><td>Body Site</td><td>Anatomical location</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.18<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4618\"> </a></td><td>Current Condition Onset Date</td><td>Date of condition onset</td></tr><tr><td style=\"white-space:nowrap\">onsetAgeCondition<a name=\"kpsb-clinical-consultation-codes-onsetAgeCondition\"> </a></td><td>Onset Age</td><td>Age at onset of condition</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.19<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4619\"> </a></td><td>Diagnosis Assertion Status</td><td>Certainty of diagnosis</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.20<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4620\"> </a></td><td>Social History Observation</td><td>Health-relevant lifestyle observations</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.21<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4621\"> </a></td><td>Social History Reference Date Range</td><td>Time span of the observation</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.22<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4622\"> </a></td><td>Pregnancy Status</td><td>Pregnancy state of a woman</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.23<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4623\"> </a></td><td>Pregnant</td><td>Confirmed pregnancy</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.24<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4624\"> </a></td><td>Not Pregnant</td><td>Not currently pregnant</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.25<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4625\"> </a></td><td>Possible/Unknown Pregnancy</td><td>Pregnancy unknown</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.26<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4626\"> </a></td><td>Observation Date</td><td>Date of pregnancy state observation</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.27<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4627\"> </a></td><td>Expected Delivery Date</td><td>Due date of the pregnancy</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.28<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4628\"> </a></td><td>Previous Pregnancies Status</td><td>Whether the woman had previous pregnancies</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.29<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4629\"> </a></td><td>Yes</td><td>Previous pregnancies confirmed</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.30<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4630\"> </a></td><td>No</td><td>No previous pregnancies</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.31<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4631\"> </a></td><td>Unknown</td><td>Status unknown</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.32<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4632\"> </a></td><td>Outcome Date</td><td>Date of pregnancy outcome</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.33<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4633\"> </a></td><td>Outcome</td><td>Outcome of the pregnancy</td></tr><tr><td style=\"white-space:nowrap\">liveBirth<a name=\"kpsb-clinical-consultation-codes-liveBirth\"> </a></td><td>Live</td><td>Live birth</td></tr><tr><td style=\"white-space:nowrap\">preterm<a name=\"kpsb-clinical-consultation-codes-preterm\"> </a></td><td>Pre-term</td><td>Born before 37 weeks</td></tr><tr><td style=\"white-space:nowrap\">term<a name=\"kpsb-clinical-consultation-codes-term\"> </a></td><td>Term</td><td>Born at 37–42 weeks</td></tr><tr><td style=\"white-space:nowrap\">postterm<a name=\"kpsb-clinical-consultation-codes-postterm\"> </a></td><td>Post Term</td><td>≥42 weeks</td></tr><tr><td style=\"white-space:nowrap\">stillLiving<a name=\"kpsb-clinical-consultation-codes-stillLiving\"> </a></td><td>Still Living</td><td>Baby is currently alive</td></tr><tr><td style=\"white-space:nowrap\">inducedAbortion<a name=\"kpsb-clinical-consultation-codes-inducedAbortion\"> </a></td><td>Induced Abortion</td><td>Medically terminated</td></tr><tr><td style=\"white-space:nowrap\">spontaneousAbortion<a name=\"kpsb-clinical-consultation-codes-spontaneousAbortion\"> </a></td><td>Spontaneous Abortion</td><td>Miscarriage</td></tr><tr><td style=\"white-space:nowrap\">ectopicPregnancy<a name=\"kpsb-clinical-consultation-codes-ectopicPregnancy\"> </a></td><td>Ectopic Pregnancy</td><td>Pregnancy outside the uterus</td></tr><tr><td style=\"white-space:nowrap\">molarPregnancy<a name=\"kpsb-clinical-consultation-codes-molarPregnancy\"> </a></td><td>Molar Pregnancy</td><td>Gestational trophoblastic disease</td></tr><tr><td style=\"white-space:nowrap\">stillbirth<a name=\"kpsb-clinical-consultation-codes-stillbirth\"> </a></td><td>Still-birth</td><td>Loss ≥20 weeks</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.34<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4634\"> </a></td><td>Number of Children</td><td>Children in the specific pregnancy</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.35<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4635\"> </a></td><td>Travel Destination</td><td>Place visited</td></tr><tr><td style=\"white-space:nowrap\">KPS.B.DE.36<a name=\"kpsb-clinical-consultation-codes-KPS.46B.46DE.4636\"> </a></td><td>Travel Period</td><td>Date of entry and departure</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsb-clinical-consultation-codes"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "KPSBClinicalConsultationCodesCS"] ;
  fhir:CodeSystem.title [ fhir:value "KPS.B Clinical Consultation 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 clinical consultation data elements under the Kenya Patient Summary (KPS.B)."] ;
  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 "80"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Agent or Allergen" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Substance to which the patient has a hypersensitivity (drug, food, chemical, etc.)" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Allergy Description" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Narrative description of the allergy or intolerance" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.3" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Type of Propensity" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Describes if this is an allergy, intolerance, or unknown" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "allergy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Allergy" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Hypersensitive reaction(s) to a substance (Type I or similar)" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "intolerance" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Intolerance" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Adverse reactions not judged to be allergy-like" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "unknownPropensity" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unknown" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Cannot determine if allergy or intolerance" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.4" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Allergy Manifestation" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Description of clinical signs like angioedema or anaphylaxis" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.5" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Severity" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Severity of the reaction" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "severe" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Severe" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Causes severe physiological effects" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "moderate" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Moderate" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Causes moderate physiological effects" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "mild" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mild" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Causes mild physiological effects" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.6" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Criticality" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Potential for life-threatening adverse reactions" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Onset Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date when allergy was observed" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "onsetAge" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Onset Age" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Age of patient when allergy began" ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.8" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "End Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date when allergy was resolved" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.9" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Allergy Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Current allergy status" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "active" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Active" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Currently at risk" ]
  ], [
     fhir:index 17 ;
     fhir:CodeSystem.concept.code [ fhir:value "inactive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Inactive" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "No longer at risk" ]
  ], [
     fhir:index 18 ;
     fhir:CodeSystem.concept.code [ fhir:value "resolved" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Resolved" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Clinically resolved by testing or re-exposure" ]
  ], [
     fhir:index 19 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.10" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Allergy Certainty" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Certainty of allergy assertion" ]
  ], [
     fhir:index 20 ;
     fhir:CodeSystem.concept.code [ fhir:value "confirmedAllergy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Confirmed" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "High certainty, e.g., test confirmed" ]
  ], [
     fhir:index 21 ;
     fhir:CodeSystem.concept.code [ fhir:value "unconfirmedAllergy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unconfirmed" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Low certainty" ]
  ], [
     fhir:index 22 ;
     fhir:CodeSystem.concept.code [ fhir:value "refutedAllergy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Refuted" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Disproven through clinical review" ]
  ], [
     fhir:index 23 ;
     fhir:CodeSystem.concept.code [ fhir:value "enteredInError" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Entered in Error" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Mistakenly entered record" ]
  ], [
     fhir:index 24 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.11" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Healthcare Alert Description" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Narrative for any critical medical alert" ]
  ], [
     fhir:index 25 ;
     fhir:CodeSystem.concept.code [ fhir:value "alertCode" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Alert Code" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Code to represent the alert" ]
  ], [
     fhir:index 26 ;
     fhir:CodeSystem.concept.code [ fhir:value "lowPriority" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Low Priority" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Low clinical importance" ]
  ], [
     fhir:index 27 ;
     fhir:CodeSystem.concept.code [ fhir:value "mediumPriority" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medium Priority" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Moderate clinical importance" ]
  ], [
     fhir:index 28 ;
     fhir:CodeSystem.concept.code [ fhir:value "highPriority" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "High Priority" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "High clinical importance" ]
  ], [
     fhir:index 29 ;
     fhir:CodeSystem.concept.code [ fhir:value "alertStatusActive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Active" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Currently applicable alert" ]
  ], [
     fhir:index 30 ;
     fhir:CodeSystem.concept.code [ fhir:value "alertStatusInactive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Inactive" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Alert no longer applies" ]
  ], [
     fhir:index 31 ;
     fhir:CodeSystem.concept.code [ fhir:value "alertStatusError" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Entered in Error" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Invalid alert entry" ]
  ], [
     fhir:index 32 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.12" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Problem Description" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Previously resolved, inactive, or closed problems" ]
  ], [
     fhir:index 33 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.13" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Problem Onset Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date when problem started" ]
  ], [
     fhir:index 34 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.14" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Problem End Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Resolution date of problem" ]
  ], [
     fhir:index 35 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.15" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Resolution Circumstances" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Narrative for how the problem was resolved" ]
  ], [
     fhir:index 36 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.16" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medical History" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Anamnesis and relevant narrative" ]
  ], [
     fhir:index 37 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.17" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Problem/Condition" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Currently relevant conditions" ]
  ], [
     fhir:index 38 ;
     fhir:CodeSystem.concept.code [ fhir:value "clinicalStatusActive" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Active" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Currently experiencing symptoms" ]
  ], [
     fhir:index 39 ;
     fhir:CodeSystem.concept.code [ fhir:value "clinicalStatusRecurrence" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Recurrence" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Reappearance of a previously resolved condition" ]
  ], [
     fhir:index 40 ;
     fhir:CodeSystem.concept.code [ fhir:value "clinicalStatusRelapse" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Relapse" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Return of condition after improvement" ]
  ], [
     fhir:index 41 ;
     fhir:CodeSystem.concept.code [ fhir:value "confirmed" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Confirmed" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Sufficient evidence" ]
  ], [
     fhir:index 42 ;
     fhir:CodeSystem.concept.code [ fhir:value "unconfirmed" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unconfirmed" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Insufficient evidence" ]
  ], [
     fhir:index 43 ;
     fhir:CodeSystem.concept.code [ fhir:value "differential" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Differential" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Possible diagnoses" ]
  ], [
     fhir:index 44 ;
     fhir:CodeSystem.concept.code [ fhir:value "conditionCategoryEncounter" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Encounter Diagnosis" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Diagnosed during an encounter" ]
  ], [
     fhir:index 45 ;
     fhir:CodeSystem.concept.code [ fhir:value "conditionCategoryProblem" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Problem List Item" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Ongoing/chronic condition" ]
  ], [
     fhir:index 46 ;
     fhir:CodeSystem.concept.code [ fhir:value "conditionSeveritySevere" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Severe" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Significantly limits function" ]
  ], [
     fhir:index 47 ;
     fhir:CodeSystem.concept.code [ fhir:value "conditionSeverityModerate" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Moderate" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Notable impact on daily life" ]
  ], [
     fhir:index 48 ;
     fhir:CodeSystem.concept.code [ fhir:value "conditionSeverityMild" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mild" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Minimal impact" ]
  ], [
     fhir:index 49 ;
     fhir:CodeSystem.concept.code [ fhir:value "bodySite" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Body Site" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Anatomical location" ]
  ], [
     fhir:index 50 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.18" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Current Condition Onset Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date of condition onset" ]
  ], [
     fhir:index 51 ;
     fhir:CodeSystem.concept.code [ fhir:value "onsetAgeCondition" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Onset Age" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Age at onset of condition" ]
  ], [
     fhir:index 52 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.19" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnosis Assertion Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Certainty of diagnosis" ]
  ], [
     fhir:index 53 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.20" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Social History Observation" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Health-relevant lifestyle observations" ]
  ], [
     fhir:index 54 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.21" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Social History Reference Date Range" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Time span of the observation" ]
  ], [
     fhir:index 55 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.22" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Pregnancy Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Pregnancy state of a woman" ]
  ], [
     fhir:index 56 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.23" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Pregnant" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Confirmed pregnancy" ]
  ], [
     fhir:index 57 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.24" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Not Pregnant" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Not currently pregnant" ]
  ], [
     fhir:index 58 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.25" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Possible/Unknown Pregnancy" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Pregnancy unknown" ]
  ], [
     fhir:index 59 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.26" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Observation Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date of pregnancy state observation" ]
  ], [
     fhir:index 60 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.27" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Expected Delivery Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Due date of the pregnancy" ]
  ], [
     fhir:index 61 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.28" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Previous Pregnancies Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Whether the woman had previous pregnancies" ]
  ], [
     fhir:index 62 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.29" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Yes" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Previous pregnancies confirmed" ]
  ], [
     fhir:index 63 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.30" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "No" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "No previous pregnancies" ]
  ], [
     fhir:index 64 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.31" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unknown" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Status unknown" ]
  ], [
     fhir:index 65 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.32" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Outcome Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date of pregnancy outcome" ]
  ], [
     fhir:index 66 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.33" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Outcome" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Outcome of the pregnancy" ]
  ], [
     fhir:index 67 ;
     fhir:CodeSystem.concept.code [ fhir:value "liveBirth" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Live" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Live birth" ]
  ], [
     fhir:index 68 ;
     fhir:CodeSystem.concept.code [ fhir:value "preterm" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Pre-term" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Born before 37 weeks" ]
  ], [
     fhir:index 69 ;
     fhir:CodeSystem.concept.code [ fhir:value "term" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Term" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Born at 37–42 weeks" ]
  ], [
     fhir:index 70 ;
     fhir:CodeSystem.concept.code [ fhir:value "postterm" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Post Term" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "≥42 weeks" ]
  ], [
     fhir:index 71 ;
     fhir:CodeSystem.concept.code [ fhir:value "stillLiving" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Still Living" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Baby is currently alive" ]
  ], [
     fhir:index 72 ;
     fhir:CodeSystem.concept.code [ fhir:value "inducedAbortion" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Induced Abortion" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Medically terminated" ]
  ], [
     fhir:index 73 ;
     fhir:CodeSystem.concept.code [ fhir:value "spontaneousAbortion" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Spontaneous Abortion" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Miscarriage" ]
  ], [
     fhir:index 74 ;
     fhir:CodeSystem.concept.code [ fhir:value "ectopicPregnancy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Ectopic Pregnancy" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Pregnancy outside the uterus" ]
  ], [
     fhir:index 75 ;
     fhir:CodeSystem.concept.code [ fhir:value "molarPregnancy" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Molar Pregnancy" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Gestational trophoblastic disease" ]
  ], [
     fhir:index 76 ;
     fhir:CodeSystem.concept.code [ fhir:value "stillbirth" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Still-birth" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Loss ≥20 weeks" ]
  ], [
     fhir:index 77 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.34" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Number of Children" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Children in the specific pregnancy" ]
  ], [
     fhir:index 78 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.35" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Travel Destination" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Place visited" ]
  ], [
     fhir:index 79 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.B.DE.36" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Travel Period" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date of entry and departure" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsb-clinical-consultation-codes.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

