R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example Questionnaire/3141 (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

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

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

[a fhir:Questionnaire ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "3141"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      \n      <pre>\n            1.Comorbidity?\n              1.1 Cardial Comorbidity\n                1.1.1 Angina?\n                1.1.2 MI?\n              1.2 Vascular Comorbidity?\n              ...\n            Histopathology\n              Abdominal\n                pT category?\n              ...\n          </pre>\n    \n    </div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/Questionnaire/3141"^^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.2" ]
  ] ) ; # 
  fhir:name [ fhir:v "CancerQualityForumQuestionnaire2012"] ; # 
  fhir:title [ fhir:v "Cancer Quality Forum Questionnaire 2012"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:subjectType ( [ fhir:v "Patient"] ) ; # 
  fhir:date [ fhir:v "2012-01"^^xsd:gYearMonth] ; # 
  fhir:description [ fhir:v "Cancer Quality Forum Questionnaire 2012"] ; # 
  fhir:item ( [
     fhir:linkId [ fhir:v "1" ] ;
     fhir:code ( [
       fhir:system [ fhir:v "http://example.org/system/code/sections"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "COMORBIDITY" ]
     ] ) ;
     fhir:type [ fhir:v "group" ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "1.1" ] ;
       fhir:code ( [
         fhir:system [ fhir:v "http://example.org/system/code/questions"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "COMORB" ]
       ] ) ;
       fhir:prefix [ fhir:v "1" ] ;
       fhir:type [ fhir:v "coding" ] ;
       fhir:answerValueSet [
         fhir:v "http://hl7.org/fhir/ValueSet/yesnodontknow"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>
       ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "1.1.1" ] ;
         fhir:code ( [
           fhir:system [ fhir:v "http://example.org/system/code/sections"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "CARDIAL" ]
         ] ) ;
         fhir:type [ fhir:v "group" ] ;
         fhir:enableWhen ( [
           fhir:question [ fhir:v "1.1" ] ;
           fhir:operator [ fhir:v "=" ] ;
           fhir:answer [
             a fhir:Coding ;
             fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0136"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "Y" ]
           ]
         ] ) ;
         fhir:item ( [
           fhir:linkId [ fhir:v "1.1.1.1" ] ;
           fhir:code ( [
             fhir:system [ fhir:v "http://example.org/system/code/questions"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "COMORBCAR" ]
           ] ) ;
           fhir:prefix [ fhir:v "1.1" ] ;
           fhir:type [ fhir:v "coding" ] ;
           fhir:answerValueSet [
             fhir:v "http://hl7.org/fhir/ValueSet/yesnodontknow"^^xsd:anyURI ;
             fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>
           ] ;
           fhir:item ( [
             fhir:linkId [ fhir:v "1.1.1.1.1" ] ;
             fhir:code ( [
               fhir:system [ fhir:v "http://example.org/system/code/questions"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "COMCAR00" ] ;
               fhir:display [ fhir:v "Angina Pectoris" ]
             ] [
               a sct:194828000 ;
               fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "194828000" ] ;
               fhir:display [ fhir:v "Angina (disorder)" ]
             ] ) ;
             fhir:prefix [ fhir:v "1.1.1" ] ;
             fhir:type [ fhir:v "coding" ] ;
             fhir:answerValueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/yesnodontknow"^^xsd:anyURI ;
               fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>
             ]
           ] [
             fhir:linkId [ fhir:v "1.1.1.1.2" ] ;
             fhir:code ( [
               a sct:22298006 ;
               fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
               fhir:code [ fhir:v "22298006" ] ;
               fhir:display [ fhir:v "Myocardial infarction (disorder)" ]
             ] ) ;
             fhir:prefix [ fhir:v "1.1.2" ] ;
             fhir:type [ fhir:v "coding" ] ;
             fhir:answerValueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/yesnodontknow"^^xsd:anyURI ;
               fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>
             ]
           ] )
         ] [
           fhir:linkId [ fhir:v "1.1.1.2" ] ;
           fhir:code ( [
             fhir:system [ fhir:v "http://example.org/system/code/questions"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "COMORBVAS" ]
           ] ) ;
           fhir:prefix [ fhir:v "1.2" ] ;
           fhir:type [ fhir:v "coding" ] ;
           fhir:answerValueSet [
             fhir:v "http://hl7.org/fhir/ValueSet/yesnodontknow"^^xsd:anyURI ;
             fhir:link <http://hl7.org/fhir/ValueSet/yesnodontknow>
           ]
         ] )
       ] )
     ] )
  ] [
     fhir:linkId [ fhir:v "2" ] ;
     fhir:code ( [
       fhir:system [ fhir:v "http://example.org/system/code/sections"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "HISTOPATHOLOGY" ]
     ] ) ;
     fhir:type [ fhir:v "group" ] ;
     fhir:item ( [
       fhir:linkId [ fhir:v "2.1" ] ;
       fhir:code ( [
         fhir:system [ fhir:v "http://example.org/system/code/sections"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "ABDOMINAL" ]
       ] ) ;
       fhir:type [ fhir:v "group" ] ;
       fhir:item ( [
         fhir:linkId [ fhir:v "2.1.2" ] ;
         fhir:code ( [
           fhir:system [ fhir:v "http://example.org/system/code/questions"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "STADPT" ] ;
           fhir:display [ fhir:v "pT category" ]
         ] ) ;
         fhir:type [ fhir:v "coding" ]
       ] )
     ] )
  ] )] . # 

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


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.