@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.dha.go.ke/kps/CodeSystem/kpsg-referral-codes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "kpsg-referral-codes"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem kpsg-referral-codes</b></p><a name=\"kpsg-referral-codes\"> </a><a name=\"hckpsg-referral-codes\"> </a><p>This case-sensitive code system <code>https://shr.tiberbuapps.com/fhir/CodeSystem/kpsg-referral-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\">referral-in<a name=\"kpsg-referral-codes-referral-in\"> </a></td><td>In</td><td>The client has been received into the care of this facility</td></tr><tr><td style=\"white-space:nowrap\">referral-out<a name=\"kpsg-referral-codes-referral-out\"> </a></td><td>Out</td><td>The client has been referred out to another facility</td></tr><tr><td style=\"white-space:nowrap\">emergency-referral<a name=\"kpsg-referral-codes-emergency-referral\"> </a></td><td>Emergency Referral</td><td>The client requires urgent emergency care</td></tr><tr><td style=\"white-space:nowrap\">adverse-drug-reaction<a name=\"kpsg-referral-codes-adverse-drug-reaction\"> </a></td><td>Management of Adverse Drug Reactions</td><td>Referral due to adverse drug reaction requiring specialist management</td></tr><tr><td style=\"white-space:nowrap\">medication-unavailable<a name=\"kpsg-referral-codes-medication-unavailable\"> </a></td><td>Medication Not Available</td><td>Medication required by the client is not available at this facility</td></tr><tr><td style=\"white-space:nowrap\">client-wish<a name=\"kpsg-referral-codes-client-wish\"> </a></td><td>Client's Wish</td><td>The client has expressed a preference to be seen at another facility</td></tr><tr><td style=\"white-space:nowrap\">other-general-services<a name=\"kpsg-referral-codes-other-general-services\"> </a></td><td>Referral for Other General Services</td><td>Referral to access general services not available at the current facility</td></tr><tr><td style=\"white-space:nowrap\">community<a name=\"kpsg-referral-codes-community\"> </a></td><td>Community</td><td>The client was referred from the community level (e.g., CHW)</td></tr><tr><td style=\"white-space:nowrap\">health-provider<a name=\"kpsg-referral-codes-health-provider\"> </a></td><td>Health Provider</td><td>The client was referred from another health provider or facility</td></tr><tr><td style=\"white-space:nowrap\">self-referral<a name=\"kpsg-referral-codes-self-referral\"> </a></td><td>Self</td><td>The client self-referred without a formal referral from a health worker</td></tr><tr><td style=\"white-space:nowrap\">sms<a name=\"kpsg-referral-codes-sms\"> </a></td><td>Text Message / SMS</td><td>Client prefers to be contacted via SMS</td></tr><tr><td style=\"white-space:nowrap\">voice-call<a name=\"kpsg-referral-codes-voice-call\"> </a></td><td>Voice Call</td><td>Client prefers to be contacted via phone call</td></tr><tr><td style=\"white-space:nowrap\">email-comm<a name=\"kpsg-referral-codes-email-comm\"> </a></td><td>Email</td><td>Client prefers to be contacted via email</td></tr><tr><td style=\"white-space:nowrap\">no-communication<a name=\"kpsg-referral-codes-no-communication\"> </a></td><td>Communication Consent Declined</td><td>Client has declined consent for communications</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "https://shr.tiberbuapps.com/fhir/CodeSystem/kpsg-referral-codes"^^xsd:anyURI ;
     fhir:l <https://shr.tiberbuapps.com/fhir/CodeSystem/kpsg-referral-codes>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "KPSGReferralCodesCS"] ; # 
  fhir:title [ fhir:v "KPS.G Referral Data Elements"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2026-05-11T04:59:51+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Digital Health Agency of Kenya"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Digital Health Agency of Kenya" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.dha.go.ke" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "interoperability@dha.go.ke" ]
     ] )
  ] [
     fhir:name [ fhir:v "Digital Health Agency of Kenya – Interoperability Team" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "interoperability@dha.go.ke" ] ;
       fhir:use [ fhir:v "work" ]
     ] [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.dha.go.ke" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "CodeSystem representing referral-related data elements under the Kenya Patient Summary (KPS.G)."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "KE" ] ;
       fhir:display [ fhir:v "Kenya" ]
     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "Copyright © 2024+ Digital Health Agency of Kenya. This content is licensed under Creative Commons Zero v1.0 Universal (CC0 1.0). No rights reserved.\n"] ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:count [ fhir:v "14"^^xsd:nonNegativeInteger] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "referral-in" ] ;
     fhir:display [ fhir:v "In" ] ;
     fhir:definition [ fhir:v "The client has been received into the care of this facility" ]
  ] [
     fhir:code [ fhir:v "referral-out" ] ;
     fhir:display [ fhir:v "Out" ] ;
     fhir:definition [ fhir:v "The client has been referred out to another facility" ]
  ] [
     fhir:code [ fhir:v "emergency-referral" ] ;
     fhir:display [ fhir:v "Emergency Referral" ] ;
     fhir:definition [ fhir:v "The client requires urgent emergency care" ]
  ] [
     fhir:code [ fhir:v "adverse-drug-reaction" ] ;
     fhir:display [ fhir:v "Management of Adverse Drug Reactions" ] ;
     fhir:definition [ fhir:v "Referral due to adverse drug reaction requiring specialist management" ]
  ] [
     fhir:code [ fhir:v "medication-unavailable" ] ;
     fhir:display [ fhir:v "Medication Not Available" ] ;
     fhir:definition [ fhir:v "Medication required by the client is not available at this facility" ]
  ] [
     fhir:code [ fhir:v "client-wish" ] ;
     fhir:display [ fhir:v "Client's Wish" ] ;
     fhir:definition [ fhir:v "The client has expressed a preference to be seen at another facility" ]
  ] [
     fhir:code [ fhir:v "other-general-services" ] ;
     fhir:display [ fhir:v "Referral for Other General Services" ] ;
     fhir:definition [ fhir:v "Referral to access general services not available at the current facility" ]
  ] [
     fhir:code [ fhir:v "community" ] ;
     fhir:display [ fhir:v "Community" ] ;
     fhir:definition [ fhir:v "The client was referred from the community level (e.g., CHW)" ]
  ] [
     fhir:code [ fhir:v "health-provider" ] ;
     fhir:display [ fhir:v "Health Provider" ] ;
     fhir:definition [ fhir:v "The client was referred from another health provider or facility" ]
  ] [
     fhir:code [ fhir:v "self-referral" ] ;
     fhir:display [ fhir:v "Self" ] ;
     fhir:definition [ fhir:v "The client self-referred without a formal referral from a health worker" ]
  ] [
     fhir:code [ fhir:v "sms" ] ;
     fhir:display [ fhir:v "Text Message / SMS" ] ;
     fhir:definition [ fhir:v "Client prefers to be contacted via SMS" ]
  ] [
     fhir:code [ fhir:v "voice-call" ] ;
     fhir:display [ fhir:v "Voice Call" ] ;
     fhir:definition [ fhir:v "Client prefers to be contacted via phone call" ]
  ] [
     fhir:code [ fhir:v "email-comm" ] ;
     fhir:display [ fhir:v "Email" ] ;
     fhir:definition [ fhir:v "Client prefers to be contacted via email" ]
  ] [
     fhir:code [ fhir:v "no-communication" ] ;
     fhir:display [ fhir:v "Communication Consent Declined" ] ;
     fhir:definition [ fhir:v "Client has declined consent for communications" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

