Structured Data Capture 2.0 (STU2)

The official URL for this profile is:

http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-questionnaireresponse

This profile sets expectations for use of the QuestionnaireResponse resource within the Structured Data Capture implementation guide. This includes identifying which core elements and extensions must be supported.

For the purposes of this profile, Supported means that clients SHALL be capable of processing the element/extension and use the information to control the display and information capture associated with the QuestionnaireResponse resource. It means that servers SHALL be capable of persisting those elements and returning them in response to requests.

This profile is related to the SDC Questionnaire Profile which defines the characteristic of a form "design". This profile focuses on the constraints appropriate to capturing the "answer(s)" to a pre-defined form.

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements (1 nested mandatory element)
Must-Support: 12 elements

Structures

This structure refers to these other structures:

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse I0..*A structured set of questions and their answers
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..1IdentifierUnique id for this set of answers
... basedOn Σ0..*Reference(ReferralRequest), Reference(CarePlan), Reference(ProcedureRequest)Request fulfilled by this QuestionnaireResponse
... parent Σ0..*Reference(Observation), Reference(Procedure)Part of this action
... questionnaire SΣ1..1Reference(Structured Data Capture Questionnaire Design)Form being answered
... status ?!SΣ1..1codein-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required)
... subject SΣ1..1Reference(Patient)The subject of the questions
... context Σ0..1Reference(Encounter), Reference(EpisodeOfCare)Encounter or Episode during which questionnaire was completed
... authored SΣ1..1dateTimeDate the answers were gathered
... author SΣ0..1Reference(Device), Reference(Practitioner), Reference(Patient), Reference(RelatedPerson)Person who received and recorded the answers
... source Σ0..1Reference(Patient), Reference(Practitioner), Reference(RelatedPerson)The person who answered the questions
... item SI0..*BackboneElementGroups and questions
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringPointer to specific item from Questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... text S0..1stringName for group or question text
.... subject 0..1Reference(Patient)Patient for this answer/group of answers
.... answer SI0..*BackboneElementThe response(s) to the question
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... value[x] S0..1boolean, date, dateTime, time, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference()Single-valued answer to the question
Binding: Questionnaire Answer Codes (example)
..... item 0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested groups and questions
.... item S0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested questionnaire response items

doco Documentation for this format

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements (1 nested mandatory element)
Must-Support: 12 elements

Structures

This structure refers to these other structures:

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse I0..*A structured set of questions and their answers
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..1IdentifierUnique id for this set of answers
... basedOn Σ0..*Reference(ReferralRequest), Reference(CarePlan), Reference(ProcedureRequest)Request fulfilled by this QuestionnaireResponse
... parent Σ0..*Reference(Observation), Reference(Procedure)Part of this action
... questionnaire SΣ1..1Reference(Structured Data Capture Questionnaire Design)Form being answered
... status ?!SΣ1..1codein-progress | completed | amended | entered-in-error | stopped
Binding: QuestionnaireResponseStatus (required)
... subject SΣ1..1Reference(Patient)The subject of the questions
... context Σ0..1Reference(Encounter), Reference(EpisodeOfCare)Encounter or Episode during which questionnaire was completed
... authored SΣ1..1dateTimeDate the answers were gathered
... author SΣ0..1Reference(Device), Reference(Practitioner), Reference(Patient), Reference(RelatedPerson)Person who received and recorded the answers
... source Σ0..1Reference(Patient), Reference(Practitioner), Reference(RelatedPerson)The person who answered the questions
... item SI0..*BackboneElementGroups and questions
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringPointer to specific item from Questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... text S0..1stringName for group or question text
.... subject 0..1Reference(Patient)Patient for this answer/group of answers
.... answer SI0..*BackboneElementThe response(s) to the question
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
..... value[x] S0..1boolean, date, dateTime, time, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference()Single-valued answer to the question
Binding: Questionnaire Answer Codes (example)
..... item 0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested groups and questions
.... item S0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested questionnaire response items

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathNameConformanceValueSet
QuestionnaireResponse.languageCommon LanguagesextensibleCommon Languages
QuestionnaireResponse.statusQuestionnaireResponseStatusrequiredQuestionnaireResponseStatus
QuestionnaireResponse.item.answer.value[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes

Constraints

IdPathDetailsRequirements
dom-2QuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-1QuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain any narrative
: contained.text.empty()
dom-4QuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-3QuestionnaireResponseIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
ele-1QuestionnaireResponse.itemAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
qrs-1QuestionnaireResponse.itemNested item can't be beneath both item and answer
: (answer.exists() and item.exists()).not()
ele-1QuestionnaireResponse.item.answerAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())