Da Vinci - Documentation Templates and Rules
1.0.0 - STU 1

Publication Build: This will be filled in by the publication tooling

## Resource Profile: DTR QuestionnaireResponse - R4

Defining URL: | http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-r4
Version: | 1.0.0
Name: | DTRQuestionnaireResponse
Status: | Draft as of 2020-12-23T03:54:24+00:00
Publisher: | HL7 Clinical Decision Support Work Group
Source Resource: | XML / JSON / Turtle

The official URL for this profile is:

    http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-r4

### Formal Views of Profile Content

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

- Text Summary
- Differential Table
- Snapshot Table
- Snapshot Table (Must Support)
- All

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements
Prohibited: 2 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author

This structure is derived from QuestionnaireResponse

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
basedOn |  | 0..0 |  |
partOf |  | 0..0 |  |
questionnaire |  | 1..1 | canonical(Questionnaire) | Form being answered
subject |  | 1..1 | Reference(Resource) | The subject of the questions
item |  | 1..* | BackboneElement | Groups and questions
questionnaireresponse-author |  | 0..1 | Reference(Patient | RelatedPerson | Device | Practitioner) | Who answered question/group URL: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
id | Σ | 0..1 | string | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..1 | Identifier | Unique id for this set of answers
questionnaire | Σ | 1..1 | canonical(Questionnaire) | Form being answered
status | ?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | Σ | 1..1 | Reference(Resource) | The subject of the questions
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
authored | Σ | 0..1 | dateTime | Date the answers were gathered
author | Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) | Person who received and recorded the answers
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | The person who answered the questions
item | I | 1..* | BackboneElement | Groups and questions
id |  | 0..1 | string | Unique id for inter-element referencing
questionnaireresponse-author |  | 0..1 | Reference(Patient | RelatedPerson | Device | Practitioner) | Who answered question/group URL: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId |  | 1..1 | string | Pointer to specific item from Questionnaire
definition |  | 0..1 | uri | ElementDefinition - details for the item
text |  | 0..1 | string | Name for group or question text
answer |  | 0..* | BackboneElement | The response(s) to the question
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] |  | 0..1 |  | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item |  | 0..* | See item (QuestionnaireResponse) | Nested groups and questions
item |  | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
Documentation for this format

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements
Prohibited: 2 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author

Differential View

This structure is derived from QuestionnaireResponse

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
basedOn |  | 0..0 |  |
partOf |  | 0..0 |  |
questionnaire |  | 1..1 | canonical(Questionnaire) | Form being answered
subject |  | 1..1 | Reference(Resource) | The subject of the questions
item |  | 1..* | BackboneElement | Groups and questions
questionnaireresponse-author |  | 0..1 | Reference(Patient | RelatedPerson | Device | Practitioner) | Who answered question/group URL: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse |  | 0..* | QuestionnaireResponse | A structured set of questions and their answers
id | Σ | 0..1 | string | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages: A human language.
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..1 | Identifier | Unique id for this set of answers
questionnaire | Σ | 1..1 | canonical(Questionnaire) | Form being answered
status | ?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response.
subject | Σ | 1..1 | Reference(Resource) | The subject of the questions
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
authored | Σ | 0..1 | dateTime | Date the answers were gathered
author | Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) | Person who received and recorded the answers
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | The person who answered the questions
item | I | 1..* | BackboneElement | Groups and questions
id |  | 0..1 | string | Unique id for inter-element referencing
questionnaireresponse-author |  | 0..1 | Reference(Patient | RelatedPerson | Device | Practitioner) | Who answered question/group URL: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-author
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
linkId |  | 1..1 | string | Pointer to specific item from Questionnaire
definition |  | 0..1 | uri | ElementDefinition - details for the item
text |  | 0..1 | string | Name for group or question text
answer |  | 0..* | BackboneElement | The response(s) to the question
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value[x] |  | 0..1 |  | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Code indicating the response provided for a question.
valueBoolean |  |  | boolean |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueString |  |  | string |
valueUri |  |  | uri |
valueAttachment |  |  | Attachment |
valueCoding |  |  | Coding |
valueQuantity |  |  | Quantity |
valueReference |  |  | Reference(Resource) |
item |  | 0..* | See item (QuestionnaireResponse) | Nested groups and questions
item |  | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items
Documentation for this format

Other representations of profile: Schematron

#### Terminology Bindings

Path | Conformance | ValueSet
QuestionnaireResponse.language | preferred | CommonLanguages Max Binding: AllLanguages
QuestionnaireResponse.status | required | QuestionnaireResponseStatus
QuestionnaireResponse.item.answer.value[x] | example | QuestionnaireAnswerCodes