@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 -------------------------------------------------------------------

<http://localhost:8085/fhir/ServiceRequest/ServiceRequestKPS> a fhir:ServiceRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ServiceRequestKPS"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://localhost:8085/fhir/StructureDefinition/ke-kps-service-request"^^xsd:anyURI ;
       fhir:l <http://localhost:8085/fhir/StructureDefinition/ke-kps-service-request>
     ] )
  ] ; # 
  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: ServiceRequest ServiceRequestKPS</b></p><a name=\"ServiceRequestKPS\"> </a><a name=\"hcServiceRequestKPS\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ke-kps-service-request.html\">Service Request Profile - KPS (Referral)</a></p></div><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>subject</b>: <a href=\"Patient-PatientKPS.html\">Amina Mohamed  Female, DoB: 1992-03-25 ( http://moh.kenya/identifier/nationalID-no#12345678)</a></p><p><b>occurrence</b>: 2026-05-20 10:30:00+0300</p><p><b>requester</b>: <a href=\"Practitioner-PractitionerKPS.html\">Practitioner Anne Njoroge </a></p><p><b>locationReference</b>: <a href=\"Location-LocationKPS.html\">Location Nairobi Referral Clinic</a></p><p><b>reasonCode</b>: <span title=\"Codes:{https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsg-referral-codes emergency-referral}\">Emergency Referral</span></p><p><b>note</b>: </p><blockquote><div><p>Refer urgently for specialist review</p>\n</div></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:subject [
     fhir:l <http://localhost:8085/fhir/Patient/PatientKPS> ;
     fhir:reference [ fhir:v "Patient/PatientKPS" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2026-05-20T10:30:00+03:00"^^xsd:dateTime
  ] ; # 
  fhir:requester [
     fhir:l <http://localhost:8085/fhir/Practitioner/PractitionerKPS> ;
     fhir:reference [ fhir:v "Practitioner/PractitionerKPS" ]
  ] ; # 
  fhir:locationReference ( [
     fhir:l <http://localhost:8085/fhir/Location/LocationKPS> ;
     fhir:reference [ fhir:v "Location/LocationKPS" ]
  ] ) ; # 
  fhir:reasonCode ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsg-referral-codes"^^xsd:anyURI ;
         fhir:l <https://nshr-uat.sha.go.ke/fhir/CodeSystem/kpsg-referral-codes>
       ] ;
       fhir:code [ fhir:v "emergency-referral" ] ;
       fhir:display [ fhir:v "Emergency Referral" ]
     ] )
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Refer urgently for specialist review" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

