Example
ValueSet/all-languages
(Turtle)
This
is
the
narrative
for
the
resource.
See
also
the
XML
,
JSON
or
Turtle
format.
Build
Questionnaire
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"
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"
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
-
canonical
Narrative
A
logical
identifier
(i.e.
'StructureDefinition.identifier'').
The
server
must
know
the
StructureDefinition
or
be
able
to
retrieve
it
from
other
known
repositories.
IN
profile
0..1
string
-
(
token
XML
)
-
The
StructureDefinition
JSON
is
provided
directly
as
part
of
the
request.
Servers
may
choose
not
to
accept
profiles
in
this
fashion
IN
url
0..1
-
canonical
TTL
The
StructureDefinition's
official
URL
(i.e.
'StructureDefinition.url').
The
server
must
know
the
StructureDefinition
or
be
able
to
retrieve
it
from
other
known
repositories.
IN
supportedOnly
0..1
boolean
Raw
Turtle
If
true,
the
questionnaire
will
only
include
those
elements
marked
as
"mustSupport='true'"
in
the
StructureDefinition.
OUT
return
1..1
Questionnaire
(+
also
see
Turtle/RDF
Format
Specification
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.
Definition
for
Value
SetAll
Languages
@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
# - resource -------------------------------------------------------------------
[] a fhir:ValueSet;
fhir:Resource.id [ fhir:value "all-languages"];
fhir:Resource.meta [
fhir:Meta.lastUpdated [ fhir:value "2022-12-14T07:12:54.019+11:00" ];
fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/shareablevalueset" ]
];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ]
];
fhir:DomainResource.extension [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
fhir:Extension.value [ fhir:value "fhir" ]
], [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
fhir:Extension.value [ fhir:value "normative" ]
], [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ];
fhir:Extension.value [ fhir:value "4.0.0" ]
], [
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
fhir:Extension.value [ fhir:value "5" ]
];
fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages"];
fhir:CanonicalResource.identifier [
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.3.21" ]
];
fhir:CanonicalResource.version [ fhir:value "5.0.0-snapshot3"];
fhir:CanonicalResource.name [ fhir:value "AllLanguages"];
fhir:CanonicalResource.title [ fhir:value "All Languages"];
fhir:CanonicalResource.status [ fhir:value "active"];
fhir:CanonicalResource.experimental [ fhir:value "false"];
fhir:CanonicalResource.date [ fhir:value "2022-12-14T07:12:54+11:00"];
fhir:CanonicalResource.publisher [ fhir:value "HL7 International - FHIR-Infrastructure"];
fhir:CanonicalResource.contact [
fhir:ContactDetail.telecom [
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
]
];
fhir:CanonicalResource.description [ fhir:value "This value set includes all possible codes from BCP-47 (http://tools.ietf.org/html/bcp47)"];
fhir:CanonicalResource.jurisdiction [
fhir:CodeableConcept.coding [
fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
fhir:Coding.code [ fhir:value "001" ];
fhir:Coding.display [ fhir:value "World" ]
]
];
fhir:ValueSet.url [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages"];
fhir:ValueSet.identifier [
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.3.21" ]
];
fhir:ValueSet.version [ fhir:value "5.0.0-snapshot3"];
fhir:ValueSet.name [ fhir:value "AllLanguages"];
fhir:ValueSet.title [ fhir:value "All Languages"];
fhir:ValueSet.status [ fhir:value "active"];
fhir:ValueSet.experimental [ fhir:value "false"];
fhir:ValueSet.date [ fhir:value "2022-12-14T07:12:54+11:00"];
fhir:ValueSet.publisher [ fhir:value "HL7 International - FHIR-Infrastructure"];
fhir:ValueSet.contact [
fhir:ContactDetail.telecom [
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
]
];
fhir:ValueSet.description [ fhir:value "This value set includes all possible codes from BCP-47 (http://tools.ietf.org/html/bcp47)"];
fhir:ValueSet.jurisdiction [
fhir:CodeableConcept.coding [
fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
fhir:Coding.code [ fhir:value "001" ];
fhir:Coding.display [ fhir:value "World" ]
]
];
fhir:ValueSet.compose [
fhir:ValueSetComposeComponent.include [
fhir:ConceptSetComponent.system [ fhir:value "urn:ietf:bcp:47" ]
]
] .
# -------------------------------------------------------------------------------------
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.