This
page
is
part
of
the
FHIR
Specification
(v3.0.2:
(v4.0.1:
R4
-
Mixed
Normative
and
STU
3).
)
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
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
R4
R3
R2
| FHIR Infrastructure Work Group | Maturity Level : N/A |
|
Compartments : Not linked to any defined compartments |
This
is
the
narrative
for
the
resource.
See
also
the
XML
or
,
JSON
or
Turtle
format.
OPERATION: Build Questionnaire
The official URL for this operation definition is:
http://hl7.org/fhir/OperationDefinition/StructureDefinition-questionnaire
Generates a Questionnaire instance based on a specified StructureDefinition , creating questions for each core element or extension element found in the StructureDefinition .
If
the
operation
is
not
called
at
the
instance
level,
one
of
the
identifier
,
profile
or
url
'in'
parameters
must
be
provided.
If
more
than
one
is
specified,
servers
may
raise
an
error
or
may
resolve
with
the
parameter
of
their
choice.
If
called
at
the
instance
level,
these
parameters
will
be
ignored.
The
response
will
contain
a
Questionnaire
instance
based
on
the
specified
StructureDefinition
and/or
an
OperationOutcome
resource
with
errors
or
warnings.
Nested
groups
are
used
to
handle
complex
structures
and
data
types.
If
the
'supportedOnly'
parameter
is
set
to
true,
only
those
elements
marked
as
"must
support"
"must
support"
will
be
included.
This
operation
is
intended
to
enable
auto-generation
of
simple
interfaces
for
arbitrary
profiles.
The
'questionnaire'
approach
to
data
entry
has
limitations
that
will
make
it
less
optimal
than
custom-defined
interfaces.
However,
this
function
may
be
useful
for
simple
applications
or
for
systems
that
wish
to
support
"non-core"
"non-core"
resources
with
minimal
development
effort.
URL: [base]/StructureDefinition/$questionnaire
URL: [base]/StructureDefinition/[id]/$questionnaire
Parameters
| Use | Name | Cardinality | Type | Binding | Documentation |
| IN | identifier | 0..1 |
|
A
logical
|
|
| IN | profile | 0..1 |
string
( token ) |
The StructureDefinition is provided directly as part of the request. Servers may choose not to accept profiles in this fashion |
|
| IN | url | 0..1 |
|
The
|
|
| IN | supportedOnly | 0..1 | boolean |
If
true,
the
questionnaire
will
only
include
those
elements
marked
as
|
|
| OUT | return | 1..1 | Questionnaire |
The questionnaire form generated based on the StructureDefinition. |
Open Issue : Ideally, extensions should be populated in the generated Questionnaire that will support taking QuestionnaireResponse resources generated from the Questionnaire and turning them back into the appropriate resources.
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.