SIL HIE Implementation Guide
0.1.0 - sil-hie-active

SIL HIE Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/hie-fhir-ig-profile/ and changes regularly. See the Directory of published versions

: Example HIE Appointment - TTL Representation

Raw ttl | Download


@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "HIEAppointment-example"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://nshr.dha.go.ke/fhir/StructureDefinition/hie-appointment"^^xsd:anyURI ;
fhir:l <https://nshr.dha.go.ke/fhir/StructureDefinition/hie-appointment>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Appointment</b></p><p>Booked outpatient consultation for headache. Duration 30 minutes. Patient and clinician confirmed. Linked to the originating service request and clinical condition.</p><table><thead><tr><th align=\"left\">Field</th><th align=\"left\">Value</th></tr></thead><tbody><tr><td>Status</td><td>booked</td></tr><tr><td>Start</td><td>2025-11-20T09:00:00+03:00</td></tr><tr><td>End</td><td>2025-11-20T09:30:00+03:00</td></tr><tr><td>Minutes</td><td>30</td></tr><tr><td>Service Category</td><td>Ambulatory care</td></tr><tr><td>Service Type</td><td>General practice consult</td></tr><tr><td>Reason</td><td>Headache (SNOMED 25064002)</td></tr><tr><td>Subject</td><td>Jane Patient (Patient/p-001)</td></tr><tr><td>Performer</td><td>Dr. John Clinician (HIEPractitioner/pr-001)</td></tr><tr><td>Location</td><td>Outpatient Room 3 (Location/loc-OPD)</td></tr></tbody></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
fhir:use [ fhir:v "official" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>         ] ;
fhir:code [ fhir:v "ACSN" ] ;
fhir:display [ fhir:v "Accession ID" ]       ] )     ] ;
fhir:system [
fhir:v "http://example.org/appointments"^^xsd:anyURI ;
fhir:l <http://example.org/appointments>     ] ;
fhir:value [ fhir:v "APT-2025-0001" ]
  ] ) ; # 
  fhir:status [ fhir:v "booked"] ; # 
  fhir:serviceCategory ( [
    ( fhir:coding [
fhir:system [
fhir:v "http://example.org/fhir/CodeSystem/service-category"^^xsd:anyURI ;
fhir:l <http://example.org/fhir/CodeSystem/service-category>       ] ;
fhir:code [ fhir:v "AMB" ] ;
fhir:display [ fhir:v "Ambulatory care" ]     ] )
  ] ) ; # 
  fhir:serviceType ( [
    ( fhir:coding [
fhir:system [
fhir:v "http://example.org/fhir/CodeSystem/service-type"^^xsd:anyURI ;
fhir:l <http://example.org/fhir/CodeSystem/service-type>       ] ;
fhir:code [ fhir:v "GP" ] ;
fhir:display [ fhir:v "General practice consult" ]     ] )
  ] ) ; # 
  fhir:specialty ( [
    ( fhir:coding [
a sct:394814009 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>       ] ;
fhir:code [ fhir:v "394814009" ] ;
fhir:display [ fhir:v "General practice" ]     ] )
  ] ) ; # 
  fhir:appointmentType [
    ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/v2-0276"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/v2-0276>       ] ;
fhir:code [ fhir:v "ROUTINE" ] ;
fhir:display [ fhir:v "Routine" ]     ] )
  ] ; # 
  fhir:reasonCode ( [
    ( fhir:coding [
a sct:25064002 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>       ] ;
fhir:code [ fhir:v "25064002" ] ;
fhir:display [ fhir:v "Headache" ]     ] )
  ] ) ; # 
  fhir:reasonReference ( [
fhir:l fhir:Condition/cond-001 ;
fhir:reference [ fhir:v "Condition/cond-001" ] ;
fhir:display [ fhir:v "Acute headache" ]
  ] ) ; # 
  fhir:priority [ fhir:v "5"^^xsd:nonNegativeInteger] ; # 
  fhir:description [ fhir:v "Outpatient consultation with GP for headache evaluation"] ; # 
  fhir:start [ fhir:v "2025-11-20T09:00:00+03:00"^^xsd:dateTime] ; # 
  fhir:end [ fhir:v "2025-11-20T09:30:00+03:00"^^xsd:dateTime] ; # 
  fhir:minutesDuration [ fhir:v "30"^^xsd:positiveInteger] ; # 
  fhir:slot ( [
fhir:l fhir:Slot/slot-001 ;
fhir:reference [ fhir:v "Slot/slot-001" ] ;
fhir:display [ fhir:v "Clinic slot 9:00–9:30 AM" ]
  ] ) ; # 
  fhir:created [ fhir:v "2025-11-18T14:05:00+03:00"^^xsd:dateTime] ; # 
  fhir:basedOn ( [
fhir:l fhir:ServiceRequest/sr-001 ;
fhir:reference [ fhir:v "ServiceRequest/sr-001" ] ;
fhir:display [ fhir:v "Consultation request" ]
  ] ) ; # 
  fhir:participant ( [
    ( fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/participant-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/participant-type>         ] ;
fhir:code [ fhir:v "SBJ" ] ;
fhir:display [ fhir:v "subject" ]       ] )     ] ) ;
fhir:actor [
fhir:l fhir:Patient/p-001 ;
fhir:reference [ fhir:v "Patient/p-001" ] ;
fhir:display [ fhir:v "Jane Patient" ]     ] ;
fhir:status [ fhir:v "accepted" ]
  ] [
    ( fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/participant-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/participant-type>         ] ;
fhir:code [ fhir:v "PPRF" ] ;
fhir:display [ fhir:v "primary performer" ]       ] )     ] ) ;
fhir:actor [
fhir:l fhir:HIEPractitioner/pr-001 ;
fhir:reference [ fhir:v "HIEPractitioner/pr-001" ] ;
fhir:display [ fhir:v "Dr. John Clinician" ]     ] ;
fhir:status [ fhir:v "accepted" ]
  ] [
    ( fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/participant-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/participant-type>         ] ;
fhir:code [ fhir:v "LOC" ] ;
fhir:display [ fhir:v "location" ]       ] )     ] ) ;
fhir:actor [
fhir:l fhir:Location/loc-OPD ;
fhir:reference [ fhir:v "Location/loc-OPD" ] ;
fhir:display [ fhir:v "Outpatient Room 3" ]     ] ;
fhir:status [ fhir:v "accepted" ]
  ] [
    ( fhir:type [
      ( fhir:coding [
fhir:system [
fhir:v "http://terminology.hl7.org/CodeSystem/participant-type"^^xsd:anyURI ;
fhir:l <http://terminology.hl7.org/CodeSystem/participant-type>         ] ;
fhir:code [ fhir:v "PART" ] ;
fhir:display [ fhir:v "participation" ]       ] )     ] ) ;
fhir:actor [
fhir:l fhir:HealthcareService/hs-gp ;
fhir:reference [ fhir:v "HealthcareService/hs-gp" ] ;
fhir:display [ fhir:v "General Practice Service" ]     ] ;
fhir:status [ fhir:v "accepted" ]
  ] ) . #