Release 4B 5

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0: R5 - STU ). The This is the current published version which supercedes in it's permanent home (it will always be available at this version is 5.0.0 . URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R5 R4B R4 R3

Questionnaire-example-bluebook.ttl

Example Questionnaire/bb (Turtle)

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

Raw Turtle (+ 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


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

[] a fhir:Questionnaire;
  fhir:Resource.id [ fhir:value "bb"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  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.experimental [ fhir:value "true"];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.date [ fhir:value "2013-02-19"];
  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" ]
     ]
  ];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.linkId [ fhir:value "birthDetails" ];
     fhir:Questionnaire.text [ fhir:value "Birth details - To be completed by health professional" ];
     fhir:Questionnaire.type [ fhir:value "group" ];
     fhir:Questionnaire.item [
       fhir:index 0;
       fhir:Questionnaire.linkId [ fhir:value "group" ];
       fhir:Questionnaire.type [ fhir:value "group" ];
       fhir:Questionnaire.item [
         fhir:index 0;
         fhir:Questionnaire.linkId [ fhir:value "nameOfChild" ];
         fhir:Questionnaire.text [ fhir:value "Name of child" ];
         fhir:Questionnaire.type [ fhir:value "string" ]
       ], [
         fhir:index 1;
         fhir:Questionnaire.linkId [ fhir:value "sex" ];
         fhir:Questionnaire.text [ fhir:value "Sex" ];
         fhir:Questionnaire.type [ fhir:value "choice" ];
         fhir:Questionnaire.answerOption [
           fhir:index 0;
           fhir:Questionnaire.value [
             fhir:Coding.code [ fhir:value "F" ]
           ]
         ], [
           fhir:index 1;
           fhir:Questionnaire.value [
             fhir:Coding.code [ fhir:value "M" ]

[a fhir:Questionnaire ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "bb"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<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>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/Questionnaire/bb"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     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 "New South Wales Department of Health"] ; # 
  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: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.linkId [ fhir:value "neonatalInformation" ];
       fhir:Questionnaire.text [ fhir:value "Neonatal Information" ];
       fhir:Questionnaire.type [ fhir:value "group" ];
       fhir:Questionnaire.item [
         fhir:index 0;
         fhir:Questionnaire.linkId [ fhir:value "birthWeight" ];
         fhir:Questionnaire.text [ fhir:value "Birth weight (kg)" ];
         fhir:Questionnaire.type [ fhir:value "decimal" ]
       ], [
         fhir:index 1;
         fhir:Questionnaire.linkId [ fhir:value "birthLength" ];
         fhir:Questionnaire.text [ fhir:value "Birth length (cm)" ];
         fhir:Questionnaire.type [ fhir:value "decimal" ]
       ], [
         fhir:index 2;
         fhir:Questionnaire.linkId [ fhir:value "vitaminKgiven" ];
         fhir:Questionnaire.text [ fhir:value "Vitamin K given" ];
         fhir:Questionnaire.type [ fhir:value "choice" ];
         fhir:Questionnaire.answerOption [
           fhir:index 0;
           fhir:Questionnaire.value [
             fhir:Coding.code [ fhir:value "INJECTION" ]

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

           ]
         ], [
           fhir:index 1;
           fhir:Questionnaire.value [
             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.value [
             fhir:Coding.code [ fhir:value "ORAL" ]

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

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

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

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

         ] ) ;
         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 [ fhir:v "true"^^xsd:boolean ]
           ] ) ;
           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.