Foundation
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v5.0.0:
R5
-
STU
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Responsible Owner: FHIR Infrastructure Work Group | Standards Status : Informative | Compartments : Device , Encounter , Patient , Practitioner , RelatedPerson |
ShEx statement for questionnaireresponse
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <uri.shex> IMPORT <code.shex> IMPORT <date.shex> IMPORT <time.shex># ShEx Version 2.2 IMPORT <Uri.shex> IMPORT <Code.shex> IMPORT <Date.shex> IMPORT <Time.shex> IMPORT <Group.shex> IMPORT <Device.shex>IMPORT <string.shex>IMPORT <String.shex> IMPORT <Coding.shex> IMPORT <Patient.shex>IMPORT <boolean.shex> IMPORT <decimal.shex> IMPORT <integer.shex>IMPORT <Boolean.shex> IMPORT <Decimal.shex> IMPORT <Integer.shex> IMPORT <Resource.shex>IMPORT <dateTime.shex>IMPORT <DateTime.shex> IMPORT <CarePlan.shex>IMPORT <canonical.shex>IMPORT <Canonical.shex> IMPORT <Reference.shex> IMPORT <Encounter.shex> IMPORT <Procedure.shex> IMPORT <Identifier.shex> IMPORT <Attachment.shex> IMPORT <Observation.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <SimpleQuantity.shex> IMPORT <ServiceRequest.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> start=@<QuestionnaireResponse> AND {fhir:nodeRole [fhir:treeRoot]} # A structured set of questions and their answers <QuestionnaireResponse> EXTENDS @<DomainResource> CLOSED {a [fhir:QuestionnaireResponse]?; fhir:nodeRole [fhir:treeRoot]?;a [fhir:QuestionnaireResponse]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Business identifier for this set # of answers fhir:basedOn @<OneOrMore_Reference_CarePlan_OR_ServiceRequest>?; # Request fulfilled by this # QuestionnaireResponse fhir:partOf @<OneOrMore_Reference_Observation_OR_Procedure>?; # Part of referenced eventfhir:questionnaire @<canonical>; # Canonical URL of Questionnairefhir:questionnaire @<Canonical>; # Canonical URL of Questionnaire # being answeredfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:questionnaire-answers-status}; # in-progress | completed | amended # | entered-in-error | stoppedfhir:subject @<Reference> AND {fhir:linkfhir:subject @<Reference> AND {fhir:l @<Resource> ? }?; # The subject of the questionsfhir:encounter @<Reference> AND {fhir:linkfhir:encounter @<Reference> AND {fhir:l @<Encounter> ? }?; # Encounter the questionnaire # response is part offhir:authored @<dateTime>?; # Date the answers were gathered fhir:author @<Reference> AND {fhir:linkfhir:authored @<DateTime>?; # Date the answers were gathered fhir:author @<Reference> AND {fhir:l @<Device> OR @<Group> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # The individual or device that # received and recorded the answersfhir:source @<Reference> AND {fhir:linkfhir:source @<Reference> AND {fhir:l @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # The individual or device that # answered the questions fhir:item @<OneOrMore_QuestionnaireResponse.item>?; # Groups and questions } # Groups and questions <QuestionnaireResponse.item> EXTENDS @<BackboneElement> CLOSED {fhir:linkId @<string>; # Pointer to specific item fromfhir:linkId @<String>; # Pointer to specific item from # Questionnairefhir:definition @<uri>?; # ElementDefinition - details forfhir:definition @<OneOrMore_Uri>?; # ElementDefinition - details for # the itemfhir:text @<string>?; # Name for group or question textfhir:text @<String>?; # Name for group or question text fhir:answer @<OneOrMore_QuestionnaireResponse.item.answer>?; # The response(s) to the question fhir:item @<OneOrMore_QuestionnaireResponse.item>?; # Child items of group item } # The response(s) to the question <QuestionnaireResponse.item.answer> EXTENDS @<BackboneElement> CLOSED {fhir:value @<boolean> OR @<decimal> OR @<integer> OR @<date> OR @<dateTime> OR @<time> OR @<string> OR @<uri> ORfhir:value @<Boolean> OR @<Decimal> OR @<Integer> OR @<Date> OR @<DateTime> OR @<Time> OR @<String> OR @<Uri> OR @<Attachment> OR @<Coding> OR @<SimpleQuantity> OR(@<Reference> AND {fhir:link @<Resource> }) ; # Single-valued answer to the(@<Reference> AND {fhir:l @<Resource> }) ; # Single-valued answer to the # question fhir:item @<OneOrMore_QuestionnaireResponse.item>?; # Child items of question } # Child items of group item <QuestionnaireResponse.item.itemnull> CLOSED { } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_Reference_CarePlan_OR_ServiceRequest> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<CarePlan> OR @<ServiceRequest> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_ServiceRequest> } <OneOrMore_Reference_Observation_OR_Procedure> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Observation> OR @<Procedure> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Observation_OR_Procedure> } <OneOrMore_QuestionnaireResponse.item> CLOSED { rdf:first @<QuestionnaireResponse.item> ; rdf:rest [rdf:nil] OR @<OneOrMore_QuestionnaireResponse.item> } <OneOrMore_Uri> CLOSED { rdf:first @<Uri> ; rdf:rest [rdf:nil] OR @<OneOrMore_Uri> } <OneOrMore_QuestionnaireResponse.item.answer> CLOSED { rdf:first @<QuestionnaireResponse.item.answer> ; rdf:rest [rdf:nil] OR @<OneOrMore_QuestionnaireResponse.item.answer> } #---------------------- Value Sets ------------------------ # Lifecycle status of the questionnaire response. fhirvs:questionnaire-answers-status ["in-progress" "completed" "amended" "entered-in-error" "stopped"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R5
hl7.fhir.core#5.0.0
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Sun,
Mar
26,
2023
15:25+1100.
Mon,
Nov
10,
2025
15:23+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R4B
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change