FHIR
Infrastructure
![]() |
Maturity
Level
:
| Trial Use | Use Context : Any |
The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/cqf-questionnaire
A questionnaire with the ability to specify behavior associated with questions or groups of questions
This
profile
was
published
on
Sat,
May
30,
2015
00:00+1000
00:00+0000
as
a
draft
by
Health
Level
Seven,
Inc.
-
CDS
WG.
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work .
This structure is derived from Questionnaire .
This structure is derived from Questionnaire .
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Questionnaire |
A
questionnaire
with
the
ability
to
specify
behavior
associated
with
questions
or
groups
of
questions
| |
![]() ![]() ![]() | 0 .. * | canonical ( Library ) |
A
library
containing
logic
referenced
by
the
questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqf-library | |
![]() |
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() | I | 0..* | Questionnaire |
A
questionnaire
with
the
ability
to
specify
behavior
associated
with
questions
or
groups
of
questions
|
![]() ![]() ![]() | Σ | 0..1 |
| Logical id of this artifact |
![]() ![]() ![]() |
Σ
| 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() |
?!
Σ
| 0..1 | uri | A set of rules under which this content was created |
![]() ![]() ![]() |
| 0..1 | code |
Language
of
the
resource
content
Binding: Common Languages ( preferred ) Max Binding: All Languages : IETF language tag |
![]() ![]() ![]() |
| 0..1 | Narrative | Text summary of the resource, for human interpretation |
![]() ![]() ![]() | 0..* | Resource |
Contained,
inline
Resources
| |
![]() ![]() ![]() |
| 0..* | Extension |
Extension
Slice: Unordered, Open by value:url |
![]() ![]() ![]() |
| 0..* | canonical ( Library ) |
A
library
containing
logic
referenced
by
the
questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqf-library |
![]() ![]() ![]() |
?!
| 0..* | Extension |
Extensions
that
cannot
be
ignored
|
![]() ![]() ![]() |
Σ
| 0..1 | uri | Canonical identifier for this questionnaire, represented as a URI (globally unique) |
![]() ![]() ![]() |
Σ
| 0..* | Identifier |
Additional
identifier
for
the
questionnaire
|
![]() ![]() ![]() |
Σ
| 0..1 | string | Business version of the questionnaire |
![]() ![]() ![]() | Σ I | 0..1 | string | Name for this questionnaire (computer friendly) |
![]() ![]() ![]() |
Σ
| 0..1 | string | Name for this questionnaire (human friendly) |
![]() ![]() ![]() |
| 0..* | canonical ( Questionnaire ) |
Instantiates
protocol
or
definition
|
![]() ![]() ![]() |
?!
Σ
| 1..1 | code |
draft
|
active
|
retired
|
unknown
Binding: PublicationStatus ( required |
![]() ![]() ![]() |
Σ
| 0..1 | boolean | For testing purposes, not real usage |
![]() ![]() ![]() |
Σ
| 0..* | code |
Resource
that
can
be
subject
of
QuestionnaireResponse
Binding: ResourceType ( required |
![]() ![]() ![]() |
Σ
| 0..1 | dateTime | Date last changed |
![]() ![]() ![]() |
Σ
| 0..1 | string | Name of the publisher (organization or individual) |
![]() ![]() ![]() |
Σ
| 0..* | ContactDetail |
Contact
details
for
the
publisher
|
![]() ![]() ![]() |
| 0..1 | markdown | Natural language description of the questionnaire |
![]() ![]() ![]() |
Σ
| 0..* | UsageContext |
The
context
that
the
content
is
intended
to
support
|
![]() ![]() ![]() |
Σ
| 0..* | CodeableConcept |
Intended
jurisdiction
for
questionnaire
(if
applicable)
Binding: Jurisdiction ( extensible |
![]() ![]() ![]() |
| 0..1 | markdown | Why this questionnaire is defined |
![]() ![]() ![]() |
| 0..1 | markdown | Use and/or publishing restrictions |
![]() ![]() ![]() |
| 0..1 | date | When the questionnaire was approved by publisher |
![]() ![]() ![]() |
| 0..1 | date | When the questionnaire was last reviewed |
![]() ![]() ![]() |
Σ
| 0..1 | Period | When the questionnaire is expected to be used |
![]() ![]() ![]() |
Σ
| 0..* | Coding |
Concept
that
represents
the
overall
questionnaire
Binding: Questionnaire Question Codes ( example |
![]() ![]() ![]() | I | 0..* | BackboneElement |
Questions
and
sections
within
the
Questionnaire
|
![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() |
| 1..1 | string | Unique id for item in questionnaire |
![]() ![]() ![]() ![]() |
| 0..1 | uri | ElementDefinition - details for the item |
![]() ![]() ![]() ![]() | I | 0..* | Coding |
Corresponding
concept
for
this
item
in
a
terminology
Binding: Questionnaire Question Codes ( example |
![]() ![]() ![]() ![]() |
| 0..1 | string | E.g. "1(a)", "2.5.3" |
![]() ![]() ![]() ![]() |
| 0..1 | string | Primary text for the item |
![]() ![]() ![]() ![]() |
| 1..1 | code |
group
|
display
|
boolean
|
decimal
|
integer
|
date
|
dateTime
+
Binding: QuestionnaireItemType ( required |
![]() ![]() ![]() ![]() | ?! I | 0..* | BackboneElement |
Only
allow
data
when
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 | string | Question that determines whether item is enabled |
![]() ![]() ![]() ![]() ![]() |
| 1..1 | code |
exists
|
=
|
!=
|
>
|
<
|
>=
|
<=
Binding: QuestionnaireItemOperator ( required |
![]() ![]() ![]() ![]() ![]() | I | 1..1 |
Value
for
question
comparison
based
on
operator
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() | decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() | Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() | I | 0..1 | code |
all
|
any
Binding: EnableWhenBehavior ( required |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Whether the item must be included in data results |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Whether the item may repeat |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Don't allow human editing |
![]() ![]() ![]() ![]() | I | 0..1 | integer | No more than this many characters |
![]() ![]() ![]() ![]() | I | 0..1 | canonical ( ValueSet ) | Valueset containing permitted answers |
![]() ![]() ![]() ![]() | I | 0..* | BackboneElement |
Permitted
answer
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 |
Answer
value
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() ![]() |
| 0..1 | boolean | Whether option is selected by default |
![]() ![]() ![]() ![]() | I | 0..* | BackboneElement |
Initial
value(s)
when
item
is
first
rendered
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 |
Actual
value
for
initializing
the
question
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() | decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | uri | |||
![]() ![]() ![]() ![]() ![]() ![]() | Attachment | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() | Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() | I | 0..* | See item (Questionnaire) |
|
![]() |
<!-- CQF-Questionnaire --><Questionnaire xmlns="http://hl7.org/fhir" > <!-- from Element: extension -->
<</id><id value="[id]"/><!-- 0..1 Logical id of this artifact --> <meta><!--0..1 Meta Metadata about the resource --></meta> <implicitRules value="[uri]"/><!--
0..1 A set of rules under which this content was created --> <language value="[code]"/><!--
0..1 Language of the resource content --> <text><!--
0..1 Narrative Text summary of the resource, for human interpretation --></text>
<</contained><contained><!-- 0..* Resource Contained, inline Resources --></contained> <modifierExtension><!--0..* Extension Extensions that cannot be ignored --></modifierExtension>
<<url value="[uri]"/><!--0..1 Canonical identifier for this questionnaire, represented as a URI (globally unique) --> <identifier><!--
0..* Identifier Additional identifier for the questionnaire --></identifier> <version value="[string]"/><!--
0..1 Business version of the questionnaire --> <name value="[string]"/><!--
0..1 Name for this questionnaire (computer friendly) --> <title value="[string]"/><!--
0..1 Name for this questionnaire (human friendly) --> <derivedFrom value="[canonical]"/><!--
0..* Instantiates protocol or definition --> <status value="[code]"/><!--
1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!--
0..1 For testing purposes, not real usage --> <subjectType value="[code]"/><!--
0..* Resource that can be subject of QuestionnaireResponse --> <date value="[dateTime]"/><!--
0..1 Date last changed --> <publisher value="[string]"/><!--
0..1 Name of the publisher (organization or individual) --> <contact><!--
0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!--
0..1 Natural language description of the questionnaire --> <useContext><!--
0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!--
0..* CodeableConcept Intended jurisdiction for questionnaire (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!--
0..1 Why this questionnaire is defined --> <copyright value="[markdown]"/><!--
0..1 Use and/or publishing restrictions --> <approvalDate value="[date]"/><!--
0..1 When the questionnaire was approved by publisher --> <lastReviewDate value="[date]"/><!--
0..1 When the questionnaire was last reviewed --> <effectivePeriod><!--
0..1 Period When the questionnaire is expected to be used --></effectivePeriod> <code><!--
0..* Coding Concept that represents the overall questionnaire --></code>
<<item>0..* BackboneElement <!--
0..* Questions and sections within the Questionnaire --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <linkId value="[string]"/><!--
1..1 Unique id for item in questionnaire -->
<<a href=cqf-questionnaire-definitions.html#Questionnaire.item.definition class=dict title="This element is a URI that refers to an [ElementDefinition](http://hl7.org/fhir/elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:<definition value="[uri]"/><!--0..1 ElementDefinition - details for the item --> <code><!--
0..* Coding Corresponding concept for this item in a terminology --></code> <prefix value="[string]"/><!--
0..1 E.g. "1(a)", "2.5.3" --> <text value="[string]"/><!--
0..1 Primary text for the item --> <type value="[code]"/><!--
1..1 group | display | boolean | decimal | integer | date | dateTime + -->
<<enableWhen>0..* BackboneElement <!--
0..* Only allow data when --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <question value="[string]"/><!--
1..1 Question that determines whether item is enabled --> <operator value="[code]"/><!--
1..1 exists | = | != | > | < | >= | <= --> <answer[x]><!--
1..1 boolean|decimal|integer| date|dateTime|time|string|Coding|Quantity|Reference(Resource) Value for question comparison based on operator --></answer[x]> </enableWhen> <enableBehavior value="[code]"/><!--
0..1 all | any --> <required value="[boolean]"/><!--
0..1 Whether the item must be included in data results --> <repeats value="[boolean]"/><!--
0..1 Whether the item may repeat --> <readOnly value="[boolean]"/><!--
0..1 Don't allow human editing --> <maxLength value="[integer]"/><!--
0..1 No more than this many characters --> <answerValueSet value="[canonical]"/><!--
0..1 Valueset containing permitted answers -->
<<answerOption>0..* BackboneElement <!--
0..* Permitted answer --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <value[x]><!--
1..1 integer|date|time|string| Coding|Reference(Resource) Answer value --></value[x]> <initialSelected value="[boolean]"/><!--
0..1 Whether option is selected by default --> </answerOption>
<<initial>0..* BackboneElement <!--
0..* Initial value(s) when item is first rendered --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <value[x]><!--
1..1 boolean|decimal|integer|date| dateTime|time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Actual value for initializing the question --></value[x]> </initial>
<</item><item><!-- See http://hl7.org/fhir/StructureDefinition/Questionnaire#Questionnaire.item Nested questionnaire items --></item> </item> </Questionnaire>
{ // CQF-Questionnaire // from Element: extension "meta" : { Meta }, // C?Metadata about the resource "implicitRules" : "<uri>", // C?A set of rules under which this content was created "language" : "<code>", // C?Language of the resource content "text" : { Narrative }, // C?Text summary of the resource, for human interpretation""contained" : [{ Resource }], //Contained, inline Resources "extension" : [ // sliced by value:url in the specified order, Open { // A library containing logic referenced by the questionnaire // C? // from Element: extension } ], "modifierExtension" : [{ Extension }], // C?Extensions that cannot be ignored""url" : "<uri>", // C?Canonical identifier for this questionnaire, represented as a URI (globally unique) "identifier" : [{ Identifier }], // C?Additional identifier for the questionnaire "version" : "<string>", // C?Business version of the questionnaire "name" : "<string>", // C?Name for this questionnaire (computer friendly) "title" : "<string>", // C?Name for this questionnaire (human friendly) "derivedFrom" : ["<canonical>"], // C?Instantiates protocol or definition "status" : "<code>", // C? R! draft | active | retired | unknown "experimental" : <boolean>, // C?For testing purposes, not real usage "subjectType" : ["<code>"], // C?Resource that can be subject of QuestionnaireResponse "date" : "<dateTime>", // C?Date last changed "publisher" : "<string>", // C?Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // C?Contact details for the publisher "description" : "<markdown>", // C?Natural language description of the questionnaire "useContext" : [{ UsageContext }], // C?The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // C?Intended jurisdiction for questionnaire (if applicable) "purpose" : "<markdown>", // C?Why this questionnaire is defined "copyright" : "<markdown>", // C?Use and/or publishing restrictions "approvalDate" : "<date>", // C?When the questionnaire was approved by publisher "lastReviewDate" : "<date>", // C?When the questionnaire was last reviewed "effectivePeriod" : { Period }, // C?When the questionnaire is expected to be used "code" : [{ Coding }], // C?Concept that represents the overall questionnaire""item" : [{ BackboneElement }], // C?Questions and sections within the Questionnaire }
This structure is derived from Questionnaire .
Differential View
This structure is derived from Questionnaire .
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Questionnaire |
A
questionnaire
with
the
ability
to
specify
behavior
associated
with
questions
or
groups
of
questions
| |
![]() ![]() ![]() | 0 .. * | canonical ( Library ) |
A
library
containing
logic
referenced
by
the
questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqf-library | |
![]() |
Snapshot View
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() | I | 0..* | Questionnaire |
A
questionnaire
with
the
ability
to
specify
behavior
associated
with
questions
or
groups
of
questions
|
![]() ![]() ![]() | Σ | 0..1 |
| Logical id of this artifact |
![]() ![]() ![]() |
Σ
| 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() |
?!
Σ
| 0..1 | uri | A set of rules under which this content was created |
![]() ![]() ![]() |
| 0..1 | code |
Language
of
the
resource
content
Binding: Common Languages ( preferred ) Max Binding: All Languages : IETF language tag |
![]() ![]() ![]() |
| 0..1 | Narrative | Text summary of the resource, for human interpretation |
![]() ![]() ![]() | 0..* | Resource |
Contained,
inline
Resources
| |
![]() ![]() ![]() |
| 0..* | Extension |
Extension
Slice: Unordered, Open by value:url |
![]() ![]() ![]() |
| 0..* | canonical ( Library ) |
A
library
containing
logic
referenced
by
the
questionnaire
URL: http://hl7.org/fhir/StructureDefinition/cqf-library |
![]() ![]() ![]() |
?!
| 0..* | Extension |
Extensions
that
cannot
be
ignored
|
![]() ![]() ![]() |
Σ
| 0..1 | uri | Canonical identifier for this questionnaire, represented as a URI (globally unique) |
![]() ![]() ![]() |
Σ
| 0..* | Identifier |
Additional
identifier
for
the
questionnaire
|
![]() ![]() ![]() |
Σ
| 0..1 | string | Business version of the questionnaire |
![]() ![]() ![]() | Σ I | 0..1 | string | Name for this questionnaire (computer friendly) |
![]() ![]() ![]() |
Σ
| 0..1 | string | Name for this questionnaire (human friendly) |
![]() ![]() ![]() |
| 0..* | canonical ( Questionnaire ) |
Instantiates
protocol
or
definition
|
![]() ![]() ![]() |
?!
Σ
| 1..1 | code |
draft
|
active
|
retired
|
unknown
Binding: PublicationStatus ( required |
![]() ![]() ![]() |
Σ
| 0..1 | boolean | For testing purposes, not real usage |
![]() ![]() ![]() |
Σ
| 0..* | code |
Resource
that
can
be
subject
of
QuestionnaireResponse
Binding: ResourceType ( required |
![]() ![]() ![]() |
Σ
| 0..1 | dateTime | Date last changed |
![]() ![]() ![]() |
Σ
| 0..1 | string | Name of the publisher (organization or individual) |
![]() ![]() ![]() |
Σ
| 0..* | ContactDetail |
Contact
details
for
the
publisher
|
![]() ![]() ![]() |
| 0..1 | markdown | Natural language description of the questionnaire |
![]() ![]() ![]() |
Σ
| 0..* | UsageContext |
The
context
that
the
content
is
intended
to
support
|
![]() ![]() ![]() |
Σ
| 0..* | CodeableConcept |
Intended
jurisdiction
for
questionnaire
(if
applicable)
Binding: Jurisdiction ( extensible |
![]() ![]() ![]() |
| 0..1 | markdown | Why this questionnaire is defined |
![]() ![]() ![]() |
| 0..1 | markdown | Use and/or publishing restrictions |
![]() ![]() ![]() |
| 0..1 | date | When the questionnaire was approved by publisher |
![]() ![]() ![]() |
| 0..1 | date | When the questionnaire was last reviewed |
![]() ![]() ![]() |
Σ
| 0..1 | Period | When the questionnaire is expected to be used |
![]() ![]() ![]() |
Σ
| 0..* | Coding |
Concept
that
represents
the
overall
questionnaire
Binding: Questionnaire Question Codes ( example |
![]() ![]() ![]() | I | 0..* | BackboneElement |
Questions
and
sections
within
the
Questionnaire
|
![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() |
| 1..1 | string | Unique id for item in questionnaire |
![]() ![]() ![]() ![]() |
| 0..1 | uri | ElementDefinition - details for the item |
![]() ![]() ![]() ![]() | I | 0..* | Coding |
Corresponding
concept
for
this
item
in
a
terminology
Binding: Questionnaire Question Codes ( example |
![]() ![]() ![]() ![]() |
| 0..1 | string | E.g. "1(a)", "2.5.3" |
![]() ![]() ![]() ![]() |
| 0..1 | string | Primary text for the item |
![]() ![]() ![]() ![]() |
| 1..1 | code |
group
|
display
|
boolean
|
decimal
|
integer
|
date
|
dateTime
+
Binding: QuestionnaireItemType ( required |
![]() ![]() ![]() ![]() | ?! I | 0..* | BackboneElement |
Only
allow
data
when
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 | string | Question that determines whether item is enabled |
![]() ![]() ![]() ![]() ![]() |
| 1..1 | code |
exists
|
=
|
!=
|
>
|
<
|
>=
|
<=
Binding: QuestionnaireItemOperator ( required |
![]() ![]() ![]() ![]() ![]() | I | 1..1 |
Value
for
question
comparison
based
on
operator
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() | decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() | Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() | I | 0..1 | code |
all
|
any
Binding: EnableWhenBehavior ( required |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Whether the item must be included in data results |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Whether the item may repeat |
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Don't allow human editing |
![]() ![]() ![]() ![]() | I | 0..1 | integer | No more than this many characters |
![]() ![]() ![]() ![]() | I | 0..1 | canonical ( ValueSet ) | Valueset containing permitted answers |
![]() ![]() ![]() ![]() | I | 0..* | BackboneElement |
Permitted
answer
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 |
Answer
value
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() ![]() |
| 0..1 | boolean | Whether option is selected by default |
![]() ![]() ![]() ![]() | I | 0..* | BackboneElement |
Initial
value(s)
when
item
is
first
rendered
|
![]() ![]() ![]() ![]() ![]() | 0..1 |
| Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
| 0..* | Extension |
Additional
content
defined
by
implementations
|
![]() ![]() ![]() ![]() ![]() |
?!
Σ
| 0..* | Extension |
Extensions
that
cannot
be
ignored
even
if
unrecognized
|
![]() ![]() ![]() ![]() ![]() |
| 1..1 |
Actual
value
for
initializing
the
question
Binding: Questionnaire Answer Codes ( example | |
![]() ![]() ![]() ![]() ![]() ![]() | boolean | |||
![]() ![]() ![]() ![]() ![]() ![]() | decimal | |||
![]() ![]() ![]() ![]() ![]() ![]() | integer | |||
![]() ![]() ![]() ![]() ![]() ![]() | date | |||
![]() ![]() ![]() ![]() ![]() ![]() | dateTime | |||
![]() ![]() ![]() ![]() ![]() ![]() | time | |||
![]() ![]() ![]() ![]() ![]() ![]() | string | |||
![]() ![]() ![]() ![]() ![]() ![]() | uri | |||
![]() ![]() ![]() ![]() ![]() ![]() | Attachment | |||
![]() ![]() ![]() ![]() ![]() ![]() | Coding | |||
![]() ![]() ![]() ![]() ![]() ![]() | Quantity | |||
![]() ![]() ![]() ![]() ![]() ![]() |
Reference
| |||
![]() ![]() ![]() ![]() | I | 0..* | See item (Questionnaire) |
|
![]() |
XML Template
<!-- CQF-Questionnaire --><Questionnaire xmlns="http://hl7.org/fhir" > <!-- from Element: extension -->
<</id><id value="[id]"/><!-- 0..1 Logical id of this artifact --> <meta><!--0..1 Meta Metadata about the resource --></meta> <implicitRules value="[uri]"/><!--
0..1 A set of rules under which this content was created --> <language value="[code]"/><!--
0..1 Language of the resource content --> <text><!--
0..1 Narrative Text summary of the resource, for human interpretation --></text>
<</contained><contained><!-- 0..* Resource Contained, inline Resources --></contained> <modifierExtension><!--0..* Extension Extensions that cannot be ignored --></modifierExtension>
<<url value="[uri]"/><!--0..1 Canonical identifier for this questionnaire, represented as a URI (globally unique) --> <identifier><!--
0..* Identifier Additional identifier for the questionnaire --></identifier> <version value="[string]"/><!--
0..1 Business version of the questionnaire --> <name value="[string]"/><!--
0..1 Name for this questionnaire (computer friendly) --> <title value="[string]"/><!--
0..1 Name for this questionnaire (human friendly) --> <derivedFrom value="[canonical]"/><!--
0..* Instantiates protocol or definition --> <status value="[code]"/><!--
1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!--
0..1 For testing purposes, not real usage --> <subjectType value="[code]"/><!--
0..* Resource that can be subject of QuestionnaireResponse --> <date value="[dateTime]"/><!--
0..1 Date last changed --> <publisher value="[string]"/><!--
0..1 Name of the publisher (organization or individual) --> <contact><!--
0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!--
0..1 Natural language description of the questionnaire --> <useContext><!--
0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!--
0..* CodeableConcept Intended jurisdiction for questionnaire (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!--
0..1 Why this questionnaire is defined --> <copyright value="[markdown]"/><!--
0..1 Use and/or publishing restrictions --> <approvalDate value="[date]"/><!--
0..1 When the questionnaire was approved by publisher --> <lastReviewDate value="[date]"/><!--
0..1 When the questionnaire was last reviewed --> <effectivePeriod><!--
0..1 Period When the questionnaire is expected to be used --></effectivePeriod> <code><!--
0..* Coding Concept that represents the overall questionnaire --></code>
<<item>0..* BackboneElement <!--
0..* Questions and sections within the Questionnaire --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <linkId value="[string]"/><!--
1..1 Unique id for item in questionnaire -->
<<a href=cqf-questionnaire-definitions.html#Questionnaire.item.definition class=dict title="This element is a URI that refers to an [ElementDefinition](http://hl7.org/fhir/elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:<definition value="[uri]"/><!--0..1 ElementDefinition - details for the item --> <code><!--
0..* Coding Corresponding concept for this item in a terminology --></code> <prefix value="[string]"/><!--
0..1 E.g. "1(a)", "2.5.3" --> <text value="[string]"/><!--
0..1 Primary text for the item --> <type value="[code]"/><!--
1..1 group | display | boolean | decimal | integer | date | dateTime + -->
<<enableWhen>0..* BackboneElement <!--
0..* Only allow data when --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <question value="[string]"/><!--
1..1 Question that determines whether item is enabled --> <operator value="[code]"/><!--
1..1 exists | = | != | > | < | >= | <= --> <answer[x]><!--
1..1 boolean|decimal|integer| date|dateTime|time|string|Coding|Quantity|Reference(Resource) Value for question comparison based on operator --></answer[x]> </enableWhen> <enableBehavior value="[code]"/><!--
0..1 all | any --> <required value="[boolean]"/><!--
0..1 Whether the item must be included in data results --> <repeats value="[boolean]"/><!--
0..1 Whether the item may repeat --> <readOnly value="[boolean]"/><!--
0..1 Don't allow human editing --> <maxLength value="[integer]"/><!--
0..1 No more than this many characters --> <answerValueSet value="[canonical]"/><!--
0..1 Valueset containing permitted answers -->
<<answerOption>0..* BackboneElement <!--
0..* Permitted answer --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <value[x]><!--
1..1 integer|date|time|string| Coding|Reference(Resource) Answer value --></value[x]> <initialSelected value="[boolean]"/><!--
0..1 Whether option is selected by default --> </answerOption>
<<initial>0..* BackboneElement <!--
0..* Initial value(s) when item is first rendered --> <modifierExtension><!--
0..* Extension Extensions that cannot be ignored even if unrecognized --></modifierExtension> <value[x]><!--
1..1 boolean|decimal|integer|date| dateTime|time|string|uri|Attachment|Coding|Quantity|Reference(Resource) Actual value for initializing the question --></value[x]> </initial>
<</item><item><!-- See http://hl7.org/fhir/StructureDefinition/Questionnaire#Questionnaire.item Nested questionnaire items --></item> </item> </Questionnaire>
JSON Template
{ // CQF-Questionnaire // from Element: extension "meta" : { Meta }, // C?Metadata about the resource "implicitRules" : "<uri>", // C?A set of rules under which this content was created "language" : "<code>", // C?Language of the resource content "text" : { Narrative }, // C?Text summary of the resource, for human interpretation""contained" : [{ Resource }], //Contained, inline Resources "extension" : [ // sliced by value:url in the specified order, Open { // A library containing logic referenced by the questionnaire // C? // from Element: extension } ], "modifierExtension" : [{ Extension }], // C?Extensions that cannot be ignored""url" : "<uri>", // C?Canonical identifier for this questionnaire, represented as a URI (globally unique) "identifier" : [{ Identifier }], // C?Additional identifier for the questionnaire "version" : "<string>", // C?Business version of the questionnaire "name" : "<string>", // C?Name for this questionnaire (computer friendly) "title" : "<string>", // C?Name for this questionnaire (human friendly) "derivedFrom" : ["<canonical>"], // C?Instantiates protocol or definition "status" : "<code>", // C? R! draft | active | retired | unknown "experimental" : <boolean>, // C?For testing purposes, not real usage "subjectType" : ["<code>"], // C?Resource that can be subject of QuestionnaireResponse "date" : "<dateTime>", // C?Date last changed "publisher" : "<string>", // C?Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // C?Contact details for the publisher "description" : "<markdown>", // C?Natural language description of the questionnaire "useContext" : [{ UsageContext }], // C?The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // C?Intended jurisdiction for questionnaire (if applicable) "purpose" : "<markdown>", // C?Why this questionnaire is defined "copyright" : "<markdown>", // C?Use and/or publishing restrictions "approvalDate" : "<date>", // C?When the questionnaire was approved by publisher "lastReviewDate" : "<date>", // C?When the questionnaire was last reviewed "effectivePeriod" : { Period }, // C?When the questionnaire is expected to be used "code" : [{ Coding }], // C?Concept that represents the overall questionnaire""item" : [{ BackboneElement }], // C?Questions and sections within the Questionnaire }
Alternate definitions: Master Definition ( XML , JSON ), Schematron
Path | Name | Conformance | ValueSet |
Questionnaire.language | Common Languages | preferred | Common Languages |
Questionnaire.status | PublicationStatus | required | PublicationStatus |
Questionnaire.subjectType | ResourceType | required | ResourceType |
Questionnaire.jurisdiction | Jurisdiction | extensible | Jurisdiction |
Questionnaire.code | Questionnaire Question Codes | example | Questionnaire Question Codes |
Questionnaire.item.code | Questionnaire Question Codes | example | Questionnaire Question Codes |
Questionnaire.item.type | QuestionnaireItemType | required | QuestionnaireItemType |
Questionnaire.item.enableWhen.operator | QuestionnaireItemOperator | required | QuestionnaireItemOperator |
Questionnaire.item.enableWhen.answer[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |
Questionnaire.item.enableBehavior | EnableWhenBehavior | required | EnableWhenBehavior |
Questionnaire.item.answerOption.value[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |
Questionnaire.item.initial.value[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |