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 QuestionnaireResponse - 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:QuestionnaireResponse ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "HIEQuestionnaireResponse-example"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://nshr.dha.go.ke/fhir/StructureDefinition/hie-questionnaireresponse"^^xsd:anyURI ;
fhir:l <https://nshr.dha.go.ke/fhir/StructureDefinition/hie-questionnaireresponse>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>QuestionnaireResponse Summary</b></p><p>Source questionnaire: Questionnaire/qn-001. Status completed. Authored by Dr. John Clinician for Jane Patient during Encounter/enc-001.</p><table><thead><tr><th align=\"left\">Section</th><th align=\"left\">Content</th></tr></thead><tbody><tr><td>Identifiers</td><td>CR-QR-2025-0001 (http://example.org/qr)</td></tr><tr><td>Subject</td><td>Jane Patient (Patient/p-001)</td></tr><tr><td>Encounter</td><td>Ambulatory encounter (Encounter/enc-001)</td></tr><tr><td>Authored</td><td>2025-11-18T10:30:00+03:00</td></tr><tr><td>Author</td><td>Dr. John Clinician (HIEPractitioner/pr-001)</td></tr><tr><td>Based On</td><td>Neurology consult (ServiceRequest/sr-001)</td></tr><tr><td>Part Of</td><td>Outpatient procedure (Procedure/proc-001)</td></tr></tbody></table><p><b>Key Answers</b></p><ul><li>Chief complaint: Headache for two days</li><li>Onset date: 2025-11-16</li><li>Severity: Moderate</li><li>Associated symptoms: Nausea, Photophobia</li><li>Vitals: BP 120/80 mmHg, HR 72 bpm</li><li>Consent given: true</li><li>Clinician notes: No focal deficits. Advise hydration and rest.</li></ul></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/qr"^^xsd:anyURI ;
fhir:l <http://example.org/qr>     ] ;
fhir:value [ fhir:v "CR-QR-2025-0001" ]
  ] ; # 
  fhir:basedOn ( [
fhir:l fhir:ServiceRequest/sr-001 ;
fhir:reference [ fhir:v "ServiceRequest/sr-001" ] ;
fhir:display [ fhir:v "Neurology consult" ]
  ] ) ; # 
  fhir:partOf ( [
fhir:l fhir:Procedure/proc-001 ;
fhir:reference [ fhir:v "Procedure/proc-001" ] ;
fhir:display [ fhir:v "Outpatient procedure" ]
  ] ) ; # 
  fhir:questionnaire [
fhir:v "Questionnaire/qn-001"^^xsd:anyURI ;
fhir:l fhir:Questionnaire/qn-001
  ] ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:subject [
fhir:l fhir:Patient/p-001 ;
fhir:reference [ fhir:v "Patient/p-001" ] ;
fhir:display [ fhir:v "Jane Patient" ]
  ] ; # 
  fhir:encounter [
fhir:l fhir:Encounter/enc-001 ;
fhir:reference [ fhir:v "Encounter/enc-001" ] ;
fhir:display [ fhir:v "Ambulatory encounter" ]
  ] ; # 
  fhir:authored [ fhir:v "2025-11-18T10:30:00+03:00"^^xsd:dateTime] ; # 
  fhir:author [
fhir:l fhir:HIEPractitioner/pr-001 ;
fhir:reference [ fhir:v "HIEPractitioner/pr-001" ] ;
fhir:display [ fhir:v "Dr. John Clinician" ]
  ] ; # 
  fhir:source [
fhir:l fhir:Patient/p-001 ;
fhir:reference [ fhir:v "Patient/p-001" ] ;
fhir:display [ fhir:v "Jane Patient" ]
  ] ; # 
  fhir:item ( [
fhir:linkId [ fhir:v "q1" ] ;
fhir:text [ fhir:v "Chief complaint" ] ;
    ( fhir:answer [
fhir:value [
a fhir:String ;
fhir:v "Headache for two days"       ]     ] )
  ] [
fhir:linkId [ fhir:v "q2" ] ;
fhir:text [ fhir:v "Onset date" ] ;
    ( fhir:answer [
fhir:value [
a fhir:Date ;
fhir:v "2025-11-16"^^xsd:date       ]     ] )
  ] [
fhir:linkId [ fhir:v "q3" ] ;
fhir:text [ fhir:v "Severity" ] ;
    ( fhir:answer [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://example.org/vs/severity"^^xsd:anyURI ;
fhir:l <http://example.org/vs/severity>         ] ;
fhir:code [ fhir:v "moderate" ] ;
fhir:display [ fhir:v "Moderate" ]       ]     ] )
  ] [
fhir:linkId [ fhir:v "q4" ] ;
fhir:text [ fhir:v "Associated symptoms" ] ;
    ( fhir:answer [
fhir:value [
a fhir:Coding, sct:422587007 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>         ] ;
fhir:code [ fhir:v "422587007" ] ;
fhir:display [ fhir:v "Nausea" ]       ]     ] [
fhir:value [
a fhir:Coding, sct:89711000119106 ;
fhir:system [
fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
fhir:l <http://snomed.info/sct>         ] ;
fhir:code [ fhir:v "89711000119106" ] ;
fhir:display [ fhir:v "Photophobia" ]       ]     ] )
  ] [
fhir:linkId [ fhir:v "grp-vitals" ] ;
fhir:text [ fhir:v "Vitals" ] ;
    ( fhir:item [
fhir:linkId [ fhir:v "bp" ] ;
fhir:text [ fhir:v "Blood pressure" ] ;
      ( fhir:answer [
fhir:value [
a fhir:String ;
fhir:v "120/80 mmHg"         ]       ] )     ] [
fhir:linkId [ fhir:v "hr" ] ;
fhir:text [ fhir:v "Heart rate" ] ;
      ( fhir:answer [
fhir:value [
a fhir:Integer ;
fhir:v 72         ]       ] )     ] )
  ] [
fhir:linkId [ fhir:v "q5" ] ;
fhir:text [ fhir:v "Consent given" ] ;
    ( fhir:answer [
fhir:value [
a fhir:Boolean ;
fhir:v true       ]     ] )
  ] [
fhir:linkId [ fhir:v "q6" ] ;
fhir:text [ fhir:v "Clinician notes" ] ;
    ( fhir:answer [
fhir:value [
a fhir:String ;
fhir:v "No focal deficits. Advise hydration and rest."       ]     ] )
  ] ) . #