@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://nshr-uat.sha.go.ke/fhir/Encounter/example-encounter> a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-encounter"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Placeholder encounter used as a reference target in example instances.</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "finished"] ; # 
  fhir:class [
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
     ] ;
     fhir:code [ fhir:v "AMB" ] ;
     fhir:display [ fhir:v "ambulatory" ]
  ] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/oncology-encounter-type-cs"^^xsd:anyURI ;
         fhir:l <https://nshr-uat.sha.go.ke/fhir/CodeSystem/oncology-encounter-type-cs>
       ] ;
       fhir:code [ fhir:v "TREATMENT-ENCOUNTER" ] ;
       fhir:display [ fhir:v "Treatment Encounter" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <https://nshr-uat.sha.go.ke/fhir/Patient/example-patient> ;
     fhir:reference [ fhir:v "Patient/example-patient" ]
  ] ; # 
  fhir:episodeOfCare ( [
     fhir:l <https://nshr-uat.sha.go.ke/fhir/EpisodeOfCare/example-episode> ;
     fhir:reference [ fhir:v "EpisodeOfCare/example-episode" ]
  ] ) ; # 
  fhir:period [
     fhir:start [ fhir:v "2026-01-15T09:00:00Z"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2026-01-15T13:00:00Z"^^xsd:dateTime ]
  ] ; # 
  fhir:diagnosis ( [
     fhir:condition [
       fhir:l <https://nshr-uat.sha.go.ke/fhir/Condition/example-condition> ;
       fhir:reference [ fhir:v "Condition/example-condition" ]
     ]
  ] ) ; # 
  fhir:location ( [
     fhir:location [
       fhir:l <https://nshr-uat.sha.go.ke/fhir/Location/oncology-day-unit> ;
       fhir:reference [ fhir:v "Location/oncology-day-unit" ]
     ]
  ] ) ; # 
  fhir:serviceProvider [
     fhir:l <https://nshr-uat.sha.go.ke/fhir/Organization/example-organization> ;
     fhir:reference [ fhir:v "Organization/example-organization" ]
  ] . # 

# -------------------------------------------------------------------------------------

