This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R4B
R4
Extension-variable.xml
Example
QuestionnaireResponse/f201
(XML)
Raw
XML
(
canonical
form
+
also
see
XML
Format
Specification
)
Variable
Real-world
lifelines
questionnaire
response
(fictively
taken
from
the
patient)
(id
=
"f201")
<?xml version="1.0" encoding="UTF-8"?>
Variable specifying a logic to generate a variable for use in subsequent logic. The name
of the variable will be added to FHIRPath's context when processing descendants of the
element that contains this extension.
Variable specifying a logic to generate a variable for use in subsequent logic. The name
of the variable will be added to FHIRPath's context when processing descendants of the
element that contains this extension.
Ordering of variable extension declarations is significant as variables declared in one
repetition of this extension might be used in subsequent extension repetitions.
Unique id for the element within a resource (for internal references). This may be any
string value that does not contain spaces.
The definition may point directly to a computable or human-readable definition of the
extensibility codes, or it may be a logical URI as declared in some other specification.
The definition SHALL be a URI for the Structure Definition defining the extension.
Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://
hl7.org/fhir/extensibility.html) for a list).
Variable specifying a logic to generate a variable for use in subsequent logic. The name
of the variable will be added to FHIRPath's context when processing descendants of the
element that contains this extension.
Ordering of variable extension declarations is significant as variables declared in one
repetition of this extension might be used in subsequent extension repetitions.
<QuestionnaireResponse xmlns="http://hl7.org/fhir">
<id value="f201"/>
<questionnaire>
<extension url="http://hl7.org/fhir/StructureDefinition/display">
<valueString value="Lifelines"/>
</extension>
</questionnaire>
<status value="completed"/>
<subject>
<reference value="Patient/f201"/>
<display value="Roel"/>
</subject>
<authored value="2013-06-18T00:00:00+01:00"/>
<author>
<reference value="Practitioner/f201"/>
</author>
<source>
<reference value="Practitioner/f201"/>
</source>
<item>
<linkId value="1"/>
<text value="Do you have allergies?"/>
<answer>
<valueBoolean value="true"/>
</answer>
</item>
<item>
<linkId value="2"/>
<text value="General questions"/>
<item>
<linkId value="2.1"/>
<text value="What is your gender?"/>
<answer>
<valueString value="Male"/>
</answer>
</item>
<item>
<linkId value="2.2"/>
<text value="What is your date of birth?"/>
<answer>
<valueDate value="1960-03-13"/>
</answer>
</item>
<item>
<linkId value="2.3"/>
<text value="What is your country of birth?"/>
<answer>
<valueString value="The Netherlands"/>
</answer>
</item>
<item>
<linkId value="2.4"/>
<text value="What is your marital status?"/>
<answer>
<valueString value="married"/>
</answer>
</item>
</item>
<item>
<linkId value="3"/>
<text value="Intoxications"/>
<item>
<linkId value="3.1"/>
<text value="Do you smoke?"/>
<answer>
<valueBoolean value="false"/>
</answer>
</item>
<item>
<linkId value="3.2"/>
<text value="Do you drink alchohol?"/>
<answer>
<valueBoolean value="false"/>
</answer>
</item>
</item>
</
StructureDefinition
QuestionnaireResponse
>
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.