@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/kpsc-diagnostics-codes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "kpsc-diagnostics-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 kpsc-diagnostics-codes</b></p><a name=\"kpsc-diagnostics-codes\"> </a><a name=\"hckpsc-diagnostics-codes\"> </a><p>This case-sensitive code system <code>https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsc-diagnostics-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.C.DE.1<a name=\"kpsc-diagnostics-codes-KPS.46C.46DE.461\"> </a></td><td>Request Date</td><td>Date and time when the diagnostic request was made</td></tr><tr><td style=\"white-space:nowrap\">justification<a name=\"kpsc-diagnostics-codes-justification\"> </a></td><td>Justification for Request</td><td>Reason for diagnostics request, including clinical notes</td></tr><tr><td style=\"white-space:nowrap\">KPS.C.DE.2<a name=\"kpsc-diagnostics-codes-KPS.46C.46DE.462\"> </a></td><td>Diagnostics Category</td><td>Discipline or service area performing the diagnostics (e.g., hematology, radiology)</td></tr><tr><td style=\"white-space:nowrap\">diagnosticName<a name=\"kpsc-diagnostics-codes-diagnosticName\"> </a></td><td>Diagnostic Name</td><td>Name or code of the requested diagnostic test/report (e.g., CBC, Lipid Profile)</td></tr><tr><td style=\"white-space:nowrap\">diagnosticStatus<a name=\"kpsc-diagnostics-codes-diagnosticStatus\"> </a></td><td>Diagnostic Status</td><td>Current status of the diagnostic process</td></tr><tr><td style=\"white-space:nowrap\">registered<a name=\"kpsc-diagnostics-codes-registered\"> </a></td><td>Registered</td><td>Report is acknowledged but no results are available yet</td></tr><tr><td style=\"white-space:nowrap\">partial<a name=\"kpsc-diagnostics-codes-partial\"> </a></td><td>Partial</td><td>Initial or unverified results available</td></tr><tr><td style=\"white-space:nowrap\">preliminary<a name=\"kpsc-diagnostics-codes-preliminary\"> </a></td><td>Preliminary</td><td>Some verified results are available</td></tr><tr><td style=\"white-space:nowrap\">final<a name=\"kpsc-diagnostics-codes-final\"> </a></td><td>Final</td><td>Final verified results are available</td></tr><tr><td style=\"white-space:nowrap\">amended<a name=\"kpsc-diagnostics-codes-amended\"> </a></td><td>Amended/Corrected</td><td>Report modified after being final</td></tr><tr><td style=\"white-space:nowrap\">cancelled<a name=\"kpsc-diagnostics-codes-cancelled\"> </a></td><td>Cancelled/Aborted</td><td>Measurement not completed</td></tr><tr><td style=\"white-space:nowrap\">enteredInError<a name=\"kpsc-diagnostics-codes-enteredInError\"> </a></td><td>Entered in Error</td><td>Record was mistakenly created</td></tr><tr><td style=\"white-space:nowrap\">specimen<a name=\"kpsc-diagnostics-codes-specimen\"> </a></td><td>Specimen</td><td>Material collected for analysis (e.g., blood, urine)</td></tr><tr><td style=\"white-space:nowrap\">specimenStatus<a name=\"kpsc-diagnostics-codes-specimenStatus\"> </a></td><td>Specimen Availability Status</td><td>Availability status of specimen</td></tr><tr><td style=\"white-space:nowrap\">specimenAvailable<a name=\"kpsc-diagnostics-codes-specimenAvailable\"> </a></td><td>Available</td><td>Specimen present and usable</td></tr><tr><td style=\"white-space:nowrap\">specimenUnavailable<a name=\"kpsc-diagnostics-codes-specimenUnavailable\"> </a></td><td>Unavailable</td><td>Specimen lost, destroyed or used</td></tr><tr><td style=\"white-space:nowrap\">specimenUnsatisfactory<a name=\"kpsc-diagnostics-codes-specimenUnsatisfactory\"> </a></td><td>Unsatisfactory</td><td>Specimen condition prevents valid analysis</td></tr><tr><td style=\"white-space:nowrap\">imagingType<a name=\"kpsc-diagnostics-codes-imagingType\"> </a></td><td>Imaging Study Type</td><td>Requested imaging modality or study (e.g., XR Lumbar Spine)</td></tr><tr><td style=\"white-space:nowrap\">imagingDate<a name=\"kpsc-diagnostics-codes-imagingDate\"> </a></td><td>Imaging Date</td><td>Date when imaging was conducted</td></tr><tr><td style=\"white-space:nowrap\">bodySite<a name=\"kpsc-diagnostics-codes-bodySite\"> </a></td><td>Body Site</td><td>Anatomical region observed</td></tr><tr><td style=\"white-space:nowrap\">images<a name=\"kpsc-diagnostics-codes-images\"> </a></td><td>Images</td><td>One or more image sets obtained</td></tr><tr><td style=\"white-space:nowrap\">resultsDate<a name=\"kpsc-diagnostics-codes-resultsDate\"> </a></td><td>Results Date</td><td>Date and time when the results were recorded</td></tr><tr><td style=\"white-space:nowrap\">KPS.C.DE.6<a name=\"kpsc-diagnostics-codes-KPS.46C.46DE.466\"> </a></td><td>Diagnostics Performer</td><td>Who performed or authored the diagnostics</td></tr><tr><td style=\"white-space:nowrap\">KPS.C.DE.7<a name=\"kpsc-diagnostics-codes-KPS.46C.46DE.467\"> </a></td><td>Interpreter</td><td>Person validating or interpreting results</td></tr><tr><td style=\"white-space:nowrap\">diagnosticResult<a name=\"kpsc-diagnostics-codes-diagnosticResult\"> </a></td><td>Diagnostic Result</td><td>Outcome of diagnostic analysis (string, boolean, quantity, or code)</td></tr><tr><td style=\"white-space:nowrap\">diagnosticInterpretation<a name=\"kpsc-diagnostics-codes-diagnosticInterpretation\"> </a></td><td>Diagnostic Interpretation</td><td>Assessment such as high, low, or normal</td></tr><tr><td style=\"white-space:nowrap\">clinicalImpression<a name=\"kpsc-diagnostics-codes-clinicalImpression\"> </a></td><td>Clinical Impression</td><td>Working diagnosis or hypothesis based on results</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsc-diagnostics-codes"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "KPSCDiagnosticsCodesCS"] ;
  fhir:CodeSystem.title [ fhir:value "KPS.C Diagnostics 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 diagnostic data elements under the Kenya Patient Summary (KPS.C)."] ;
  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 "27"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.C.DE.1" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Request Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date and time when the diagnostic request was made" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "justification" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Justification for Request" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Reason for diagnostics request, including clinical notes" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.C.DE.2" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostics Category" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Discipline or service area performing the diagnostics (e.g., hematology, radiology)" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "diagnosticName" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostic Name" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Name or code of the requested diagnostic test/report (e.g., CBC, Lipid Profile)" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "diagnosticStatus" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostic Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Current status of the diagnostic process" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "registered" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Registered" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Report is acknowledged but no results are available yet" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "partial" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Partial" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Initial or unverified results available" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "preliminary" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Preliminary" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Some verified results are available" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "final" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Final" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Final verified results are available" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "amended" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Amended/Corrected" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Report modified after being final" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "cancelled" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Cancelled/Aborted" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Measurement not completed" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "enteredInError" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Entered in Error" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Record was mistakenly created" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "specimen" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Specimen" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Material collected for analysis (e.g., blood, urine)" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "specimenStatus" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Specimen Availability Status" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Availability status of specimen" ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "specimenAvailable" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Available" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Specimen present and usable" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "specimenUnavailable" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unavailable" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Specimen lost, destroyed or used" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "specimenUnsatisfactory" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unsatisfactory" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Specimen condition prevents valid analysis" ]
  ], [
     fhir:index 17 ;
     fhir:CodeSystem.concept.code [ fhir:value "imagingType" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Imaging Study Type" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Requested imaging modality or study (e.g., XR Lumbar Spine)" ]
  ], [
     fhir:index 18 ;
     fhir:CodeSystem.concept.code [ fhir:value "imagingDate" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Imaging Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date when imaging was conducted" ]
  ], [
     fhir:index 19 ;
     fhir:CodeSystem.concept.code [ fhir:value "bodySite" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Body Site" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Anatomical region observed" ]
  ], [
     fhir:index 20 ;
     fhir:CodeSystem.concept.code [ fhir:value "images" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Images" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "One or more image sets obtained" ]
  ], [
     fhir:index 21 ;
     fhir:CodeSystem.concept.code [ fhir:value "resultsDate" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Results Date" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Date and time when the results were recorded" ]
  ], [
     fhir:index 22 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.C.DE.6" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostics Performer" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Who performed or authored the diagnostics" ]
  ], [
     fhir:index 23 ;
     fhir:CodeSystem.concept.code [ fhir:value "KPS.C.DE.7" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Interpreter" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Person validating or interpreting results" ]
  ], [
     fhir:index 24 ;
     fhir:CodeSystem.concept.code [ fhir:value "diagnosticResult" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostic Result" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Outcome of diagnostic analysis (string, boolean, quantity, or code)" ]
  ], [
     fhir:index 25 ;
     fhir:CodeSystem.concept.code [ fhir:value "diagnosticInterpretation" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Diagnostic Interpretation" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Assessment such as high, low, or normal" ]
  ], [
     fhir:index 26 ;
     fhir:CodeSystem.concept.code [ fhir:value "clinicalImpression" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Clinical Impression" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Working diagnosis or hypothesis based on results" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsc-diagnostics-codes.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

