Foundation
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
| FHIR Infrastructure Work Group | Maturity Level : N/A | Standards Status : Informative |
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/sct/> .@prefix sct: <http://snomed.info/id/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource -------------------------------------------------------------------[] a fhir:Questionnaire; fhir:Resource.id [ fhir:value "3141"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/Questionnaire/3141"]; fhir:Questionnaire.title [ fhir:value "Cancer Quality Forum Questionnaire 2012"]; 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 "2012-01"]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ]; fhir:Coding.code [ fhir:value "COMORBIDITY" ] ]; fhir:Questionnaire.type [ fhir:value "group" ]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "1.1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ]; fhir:Coding.code [ fhir:value "COMORB" ] ]; fhir:Questionnaire.prefix [ fhir:value "1" ]; fhir:Questionnaire.type [ fhir:value "choice" ]; fhir:Questionnaire.answerValueSet [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "1.1.1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ]; fhir:Coding.code [ fhir:value "CARDIAL" ] ]; fhir:Questionnaire.type [ fhir:value "group" ]; fhir:Questionnaire.enableWhen [ fhir:index 0; fhir:Questionnaire.question [ fhir:value "1.1" ]; fhir:Questionnaire.operator [ fhir:value "=" ]; fhir:Questionnaire.answer [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0136" ]; fhir:Coding.code [ fhir:value "Y" ][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:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "1.1.1.1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ]; fhir:Coding.code [ fhir:value "COMORBCAR" ] ]; fhir:Questionnaire.prefix [ fhir:value "1.1" ]; fhir:Questionnaire.type [ fhir:value "choice" ]; fhir:Questionnaire.answerValueSet [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "1.1.1.1.1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ]; fhir:Coding.code [ fhir:value "COMCAR00" ]; fhir:Coding.display [ fhir:value "Angina Pectoris" ] ], [ fhir:index 1; a sct:194828000; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "194828000" ]; fhir:Coding.display [ fhir:value "Angina (disorder)" ] ]; fhir:Questionnaire.prefix [ fhir:value "1.1.1" ]; fhir:Questionnaire.type [ fhir:value "choice" ]; fhir:Questionnaire.answerValueSet [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ] ], [ fhir:index 1; fhir:Questionnaire.linkId [ fhir:value "1.1.1.1.2" ]; fhir:Questionnaire.code [ fhir:index 0; a sct:22298006; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ]; fhir:Coding.code [ fhir:value "22298006" ]; fhir:Coding.display [ fhir:value "Myocardial infarction (disorder)" ] ]; fhir:Questionnaire.prefix [ fhir:value "1.1.2" ]; fhir:Questionnaire.type [ fhir:value "choice" ]; fhir:Questionnaire.answerValueSet [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ]] ) ; 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:index 1; fhir:Questionnaire.linkId [ fhir:value "1.1.1.2" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ]; fhir:Coding.code [ fhir:value "COMORBVAS" ] ]; fhir:Questionnaire.prefix [ fhir:value "1.2" ]; fhir:Questionnaire.type [ fhir:value "choice" ]; fhir:Questionnaire.answerValueSet [ fhir:value "http://hl7.org/fhir/ValueSet/yesnodontknow" ] ] ] ] ], [ fhir:index 1; fhir:Questionnaire.linkId [ fhir:value "2" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ]; fhir:Coding.code [ fhir:value "HISTOPATHOLOGY" ] ]; fhir:Questionnaire.type [ fhir:value "group" ]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "2.1" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/sections" ]; fhir:Coding.code [ fhir:value "ABDOMINAL" ] ]; fhir:Questionnaire.type [ fhir:value "group" ]; fhir:Questionnaire.item [ fhir:index 0; fhir:Questionnaire.linkId [ fhir:value "2.1.2" ]; fhir:Questionnaire.code [ fhir:index 0; fhir:Coding.system [ fhir:value "http://example.org/system/code/questions" ]; fhir:Coding.code [ fhir:value "STADPT" ]; fhir:Coding.display [ fhir:value "pT category" ] ]; fhir:Questionnaire.type [ fhir:value "choice" ] ] ] ] .] ) ] ) ] ) ] [ 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.
FHIR
®©
HL7.org
2011+.
FHIR
Release
4B
(v4.3.0)
hl7.fhir.r4b.core#4.3.0
R5
hl7.fhir.core#5.0.0
generated
on
Sat,
May
28,
2022
12:57+1000.
Sun,
Mar
26,
2023
15:25+1100.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Glossary
|
QA
Page
|
Compare
to
R4
|
Compare
to
R4B
|
|
Propose
a
change