FHIR Release 3 (STU) CI-Build

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0 . For a full list Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Questionnaire-example-bluebook.ttl

Example Questionnaire/bb (Turtle)

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Ballot Standards Status : Informative Compartments : Not linked to any No defined compartments

Raw Turtle , JSON-LD (+ also see Turtle/RDF Format Specification )

Neonate record from New South Wales, Australia "My Personal Health Record" example

@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://hl7.org/fhir/Questionnaire/bb> a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "bb"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <pre>\n        <b>Birth details - To be completed by health professional</b>\n  Name of child: ____________________________________\n            Sex: __\n            \n  Neonatal Information\n    Birth Weight (kg): ___________\n    Birth Length (cm): ___________\n    Vitamin K given  : __\n             1st dose: ___________\n             2nd dose: ___________\n    Hep B given      : __\n      Date given     : ___________\n    Abnormalities noted at birth:\n      _______________________________________________\n      </pre>\n    </div>"
  ];
  fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/Questionnaire/bb"];
  fhir:Questionnaire.title [ fhir:value "NSW Government My Personal Health Record"];
  fhir:Questionnaire.status [ fhir:value "draft"];
  fhir:Questionnaire.date [ fhir:value "2013-02-19"^^xsd:date];
  fhir:Questionnaire.publisher [ fhir:value "New South Wales Department of Health"];
  fhir:Questionnaire.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "AU" ]

<http://hl7.org/fhir/Questionnaire/bb> a fhir:Questionnaire ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "bb"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      \n      <pre>\n        \n        <b>Birth details - To be completed by health professional</b>\n  Name of child: ____________________________________\n            Sex: __\n            \n  Neonatal Information\n    Birth Weight (kg): ___________\n    Birth Length (cm): ___________\n    Vitamin K given  : __\n             1st dose: ___________\n             2nd dose: ___________\n    Hep B given      : __\n      Date given     : ___________\n    Abnormalities noted at birth:\n      _______________________________________________\n      \n      </pre>\n    \n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"

     ]
  ];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.item.linkId [ fhir:value "birthDetails" ];
     fhir:Questionnaire.item.text [ fhir:value "Birth details - To be completed by health professional" ];
     fhir:Questionnaire.item.type [ fhir:value "group" ];
     fhir:Questionnaire.item.item [
       fhir:index 0;
       fhir:Questionnaire.item.linkId [ fhir:value "group" ];
       fhir:Questionnaire.item.type [ fhir:value "group" ];
       fhir:Questionnaire.item.item [
         fhir:index 0;
         fhir:Questionnaire.item.linkId [ fhir:value "nameOfChild" ];
         fhir:Questionnaire.item.text [ fhir:value "Name of child" ];
         fhir:Questionnaire.item.type [ fhir:value "string" ]
       ], [
         fhir:index 1;
         fhir:Questionnaire.item.linkId [ fhir:value "sex" ];
         fhir:Questionnaire.item.text [ fhir:value "Sex" ];
         fhir:Questionnaire.item.type [ fhir:value "choice" ];
         fhir:Questionnaire.item.option [
           fhir:index 0;
           fhir:Questionnaire.item.option.valueCoding [
             fhir:Coding.code [ fhir:value "F" ]
           ]
         ], [
           fhir:index 1;
           fhir:Questionnaire.item.option.valueCoding [
             fhir:Coding.code [ fhir:value "M" ]

  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/Questionnaire/bb"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/Questionnaire/bb>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.20.4" ]
  ] ) ; # 
  fhir:name [ fhir:v "NSWGovernmentMyPersonalHealthRecord"] ; # 
  fhir:title [ fhir:v "NSW Government My Personal Health Record"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:subjectType ( [ fhir:v "Patient"] ) ; # 
  fhir:date [ fhir:v "2013-02-19"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "NSW Government My Personal Health Record"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "AU" ]
     ] )
  ] ) ; # 
  fhir:item ( [
     fhir:linkId [ fhir:v "birthDetails" ] ;
     fhir:text [ fhir:v "Birth details - To be completed by health professional" ] ;
     fhir:type [ fhir:v "group" ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "group" ] ;
       fhir:type [ fhir:v "group" ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "nameOfChild" ] ;
         fhir:text [ fhir:v "Name of child" ] ;
         fhir:type [ fhir:v "string" ]
       ] [
         fhir:linkId [ fhir:v "sex" ] ;
         fhir:text [ fhir:v "Sex" ] ;
         fhir:type [ fhir:v "coding" ] ;
         fhir:answerOption ( [
           fhir:value [
             a fhir:Coding ;
             fhir:code [ fhir:v "F" ]

           ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Questionnaire.item.linkId [ fhir:value "neonatalInformation" ];
       fhir:Questionnaire.item.text [ fhir:value "Neonatal Information" ];
       fhir:Questionnaire.item.type [ fhir:value "group" ];
       fhir:Questionnaire.item.item [
         fhir:index 0;
         fhir:Questionnaire.item.linkId [ fhir:value "birthWeight" ];
         fhir:Questionnaire.item.text [ fhir:value "Birth weight (kg)" ];
         fhir:Questionnaire.item.type [ fhir:value "decimal" ]
       ], [
         fhir:index 1;
         fhir:Questionnaire.item.linkId [ fhir:value "birthLength" ];
         fhir:Questionnaire.item.text [ fhir:value "Birth length (cm)" ];
         fhir:Questionnaire.item.type [ fhir:value "decimal" ]
       ], [
         fhir:index 2;
         fhir:Questionnaire.item.linkId [ fhir:value "vitaminKgiven" ];
         fhir:Questionnaire.item.text [ fhir:value "Vitamin K given" ];
         fhir:Questionnaire.item.type [ fhir:value "choice" ];
         fhir:Questionnaire.item.option [
           fhir:index 0;
           fhir:Questionnaire.item.option.valueCoding [
             fhir:Coding.code [ fhir:value "INJECTION" ]

         ] [
           fhir:value [
             a fhir:Coding ;
             fhir:code [ fhir:v "M" ]

           ]
         ], [
           fhir:index 1;
           fhir:Questionnaire.item.option.valueCoding [
             fhir:Coding.code [ fhir:value "INTRAVENOUS" ]

         ] )
       ] )
     ] [
       fhir:linkId [ fhir:v "neonatalInformation" ] ;
       fhir:text [ fhir:v "Neonatal Information" ] ;
       fhir:type [ fhir:v "group" ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "birthWeight" ] ;
         fhir:text [ fhir:v "Birth weight (kg)" ] ;
         fhir:type [ fhir:v "decimal" ]
       ] [
         fhir:linkId [ fhir:v "birthLength" ] ;
         fhir:text [ fhir:v "Birth length (cm)" ] ;
         fhir:type [ fhir:v "decimal" ]
       ] [
         fhir:linkId [ fhir:v "vitaminKgiven" ] ;
         fhir:text [ fhir:v "Vitamin K given" ] ;
         fhir:type [ fhir:v "coding" ] ;
         fhir:answerOption ( [
           fhir:value [
             a fhir:Coding ;
             fhir:code [ fhir:v "INJECTION" ]

           ]
         ], [
           fhir:index 2;
           fhir:Questionnaire.item.option.valueCoding [
             fhir:Coding.code [ fhir:value "ORAL" ]

         ] [
           fhir:value [
             a fhir:Coding ;
             fhir:code [ fhir:v "INTRAVENOUS" ]

           ]
         ];
         fhir:Questionnaire.item.item [
           fhir:index 0;
           fhir:Questionnaire.item.linkId [ fhir:value "vitaminKgivenDoses" ];
           fhir:Questionnaire.item.type [ fhir:value "group" ];
           fhir:Questionnaire.item.enableWhen [
             fhir:index 0;
             fhir:Questionnaire.item.enableWhen.question [ fhir:value "vitaminKgiven" ];
             fhir:Questionnaire.item.enableWhen.hasAnswer [ fhir:value "true"^^xsd:boolean ]
           ];
           fhir:Questionnaire.item.item [
             fhir:index 0;
             fhir:Questionnaire.item.linkId [ fhir:value "vitaminiKDose1" ];
             fhir:Questionnaire.item.text [ fhir:value "1st dose" ];
             fhir:Questionnaire.item.type [ fhir:value "dateTime" ]
           ], [
             fhir:index 1;
             fhir:Questionnaire.item.linkId [ fhir:value "vitaminiKDose2" ];
             fhir:Questionnaire.item.text [ fhir:value "2nd dose" ];
             fhir:Questionnaire.item.type [ fhir:value "dateTime" ]

         ] [
           fhir:value [
             a fhir:Coding ;
             fhir:code [ fhir:v "ORAL" ]

           ]
         ]
       ], [
         fhir:index 3;
         fhir:Questionnaire.item.linkId [ fhir:value "hepBgiven" ];
         fhir:Questionnaire.item.text [ fhir:value "Hep B given y / n" ];
         fhir:Questionnaire.item.type [ fhir:value "boolean" ];
         fhir:Questionnaire.item.item [
           fhir:index 0;
           fhir:Questionnaire.item.linkId [ fhir:value "hepBgivenDate" ];
           fhir:Questionnaire.item.text [ fhir:value "Date given" ];
           fhir:Questionnaire.item.type [ fhir:value "date" ]
         ]
       ], [
         fhir:index 4;
         fhir:Questionnaire.item.linkId [ fhir:value "abnormalitiesAtBirth" ];
         fhir:Questionnaire.item.text [ fhir:value "Abnormalities noted at birth" ];
         fhir:Questionnaire.item.type [ fhir:value "string" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Questionnaire/bb.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/Questionnaire/bb.ttl> .

         ] ) ;
         fhir:item ( [
           fhir:linkId [ fhir:v "vitaminKgivenDoses" ] ;
           fhir:type [ fhir:v "group" ] ;
           fhir:enableWhen ( [
             fhir:question [ fhir:v "vitaminKgiven" ] ;
             fhir:operator [ fhir:v "exists" ] ;
             fhir:answer [
               a fhir:Boolean ;
               fhir:v true
             ]
           ] ) ;
           fhir:item ( [
             fhir:linkId [ fhir:v "vitaminKDose1" ] ;
             fhir:text [ fhir:v "1st dose" ] ;
             fhir:type [ fhir:v "dateTime" ]
           ] [
             fhir:linkId [ fhir:v "vitaminKDose2" ] ;
             fhir:text [ fhir:v "2nd dose" ] ;
             fhir:type [ fhir:v "dateTime" ]
           ] )
         ] )
       ] [
         fhir:linkId [ fhir:v "hepBgiven" ] ;
         fhir:text [ fhir:v "Hep B given y / n" ] ;
         fhir:type [ fhir:v "boolean" ] ;
         fhir:item ( [
           fhir:linkId [ fhir:v "hepBgivenDate" ] ;
           fhir:text [ fhir:v "Date given" ] ;
           fhir:type [ fhir:v "date" ]
         ] )
       ] [
         fhir:linkId [ fhir:v "abnormalitiesAtBirth" ] ;
         fhir:text [ fhir:v "Abnormalities noted at birth" ] ;
         fhir:type [ fhir:v "string" ]
       ] )
     ] )
  ] ) . # 


# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.