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 Questionnaire - TTL Representation

Active as of 2025-11-20

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 xsd: <http://www.w3.org/2001/XMLSchema#> .

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

 a fhir:Questionnaire ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "HIEQuestionnaire-example"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://nshr.dha.go.ke/fhir/StructureDefinition/hie-questionnaire"^^xsd:anyURI ;
fhir:l <https://nshr.dha.go.ke/fhir/StructureDefinition/hie-questionnaire>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Questionnaire Summary</b></p><p>This form captures demographics, symptom screening, and appointment intent. Items are grouped for usability, typed for consistent capture, and use enableWhen for conditional logic.</p><ul><li>Status: active</li><li>Versioned URL: http://example.org/Questionnaire/hie-q-example</li><li>Root groups: Demographics, Symptoms, Visit</li></ul><p><b>Key Behaviors</b></p><ul><li>Unique linkIds across all items</li><li>Group items carry no answers or initial values</li><li>Non-group items define answer options or value sets when appropriate</li><li>Conditional item appears only when gender = female</li></ul></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
fhir:v "http://example.org/Questionnaire/hie-q-example"^^xsd:anyURI ;
fhir:l <http://example.org/Questionnaire/hie-q-example>
  ] ; # 
  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/questionnaires"^^xsd:anyURI ;
fhir:l <http://example.org/questionnaires>     ] ;
fhir:value [ fhir:v "Q-INTAKE-001" ]
  ] ) ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "HIE_Q_Demo_Symptoms_Visit"] ; # 
  fhir:title [ fhir:v "HIE Intake Questionnaire"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:subjectType ( [ fhir:v "Patient"] ) ; # 
  fhir:date [ fhir:v "2025-11-20"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Kathurima Kimathi"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "Kathurima Kimathi" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.linkedin.com/in/kathurima-kimathi/" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "kathurima@savannahinformatics.com" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Intake questionnaire capturing demographics, core symptoms, and visit intent for HIE workflows."] ; # 
  fhir:item ( [
fhir:linkId [ fhir:v "grp-demographics" ] ;
fhir:text [ fhir:v "Demographics" ] ;
fhir:type [ fhir:v "group" ] ;
    ( fhir:item [
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl>         ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/questionnaire-item-control"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/questionnaire-item-control>             ] ;
fhir:code [ fhir:v "text-box" ] ;
fhir:display [ fhir:v "Text box" ]           ] )         ]       ] ) ;
fhir:linkId [ fhir:v "given-name" ] ;
fhir:text [ fhir:v "Given name" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v true ]     ] [
fhir:linkId [ fhir:v "family-name" ] ;
fhir:text [ fhir:v "Family name" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v true ]     ] [
      ( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl>         ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [
fhir:v "http://hl7.org/fhir/questionnaire-item-control"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/questionnaire-item-control>             ] ;
fhir:code [ fhir:v "drop-down" ] ;
fhir:display [ fhir:v "Drop down" ]           ] )         ]       ] ) ;
fhir:linkId [ fhir:v "gender" ] ;
fhir:text [ fhir:v "Gender" ] ;
fhir:type [ fhir:v "choice" ] ;
fhir:required [ fhir:v true ] ;
      ( fhir:answerOption [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>           ] ;
fhir:code [ fhir:v "female" ] ;
fhir:display [ fhir:v "Female" ]         ]       ] [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>           ] ;
fhir:code [ fhir:v "male" ] ;
fhir:display [ fhir:v "Male" ]         ]       ] [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>           ] ;
fhir:code [ fhir:v "other" ] ;
fhir:display [ fhir:v "Other" ]         ]       ] [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>           ] ;
fhir:code [ fhir:v "unknown" ] ;
fhir:display [ fhir:v "Unknown" ]         ]       ] )     ] )
  ] [
fhir:linkId [ fhir:v "grp-symptoms" ] ;
fhir:text [ fhir:v "Symptoms" ] ;
fhir:type [ fhir:v "group" ] ;
    ( fhir:item [
fhir:linkId [ fhir:v "has-headache" ] ;
fhir:text [ fhir:v "Headache present" ] ;
fhir:type [ fhir:v "boolean" ]     ] [
fhir:linkId [ fhir:v "headache-severity" ] ;
fhir:text [ fhir:v "Headache severity" ] ;
fhir:type [ fhir:v "choice" ] ;
      ( fhir:enableWhen [
fhir:question [ fhir:v "has-headache" ] ;
fhir:operator [ fhir:v "=" ] ;
fhir:answer [
a fhir:Boolean ;
fhir:v true         ]       ] ) ;
      ( fhir:answerOption [
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 "mild" ] ;
fhir:display [ fhir:v "Mild" ]         ]       ] [
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: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 "severe" ] ;
fhir:display [ fhir:v "Severe" ]         ]       ] )     ] [
fhir:linkId [ fhir:v "pregnancy-status" ] ;
fhir:text [ fhir:v "Are you currently pregnant?" ] ;
fhir:type [ fhir:v "boolean" ] ;
      ( fhir:enableWhen [
fhir:question [ fhir:v "gender" ] ;
fhir:operator [ fhir:v "=" ] ;
fhir:answer [
a fhir:Coding ;
fhir:system [
fhir:v "http://hl7.org/fhir/administrative-gender"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/administrative-gender>           ] ;
fhir:code [ fhir:v "female" ] ;
fhir:display [ fhir:v "Female" ]         ]       ] )     ] )
  ] [
fhir:linkId [ fhir:v "grp-visit" ] ;
fhir:text [ fhir:v "Visit" ] ;
fhir:type [ fhir:v "group" ] ;
    ( fhir:item [
fhir:linkId [ fhir:v "visit-intent" ] ;
fhir:text [ fhir:v "Reason for visit" ] ;
fhir:type [ fhir:v "choice" ] ;
fhir:required [ fhir:v true ] ;
      ( fhir:answerOption [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://example.org/vs/visit-intent"^^xsd:anyURI ;
fhir:l <http://example.org/vs/visit-intent>           ] ;
fhir:code [ fhir:v "new-consult" ] ;
fhir:display [ fhir:v "New consultation" ]         ]       ] [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://example.org/vs/visit-intent"^^xsd:anyURI ;
fhir:l <http://example.org/vs/visit-intent>           ] ;
fhir:code [ fhir:v "follow-up" ] ;
fhir:display [ fhir:v "Follow up" ]         ]       ] [
fhir:value [
a fhir:Coding ;
fhir:system [
fhir:v "http://example.org/vs/visit-intent"^^xsd:anyURI ;
fhir:l <http://example.org/vs/visit-intent>           ] ;
fhir:code [ fhir:v "procedure" ] ;
fhir:display [ fhir:v "Procedure" ]         ]       ] )     ] [
fhir:linkId [ fhir:v "requested-window" ] ;
fhir:text [ fhir:v "Preferred appointment window" ] ;
fhir:type [ fhir:v "choice" ]     ] [
fhir:linkId [ fhir:v "additional-notes" ] ;
fhir:text [ fhir:v "Additional notes" ] ;
fhir:type [ fhir:v "text" ]     ] )
  ] ) . #