Extensions for Using Data Elements from FHIR STU3 in FHIR R5 - Downloaded Version null See the Directory of published versions
| Official URL: http://hl7.org/fhir/3.0/StructureDefinition/profile-QuestionnaireResponse | Version: 0.1.0 | |||
| Standards status: Trial-use | Maturity Level: 0 | Computable Name: Profile_R3_QuestionnaireResponse_R5 | ||
This cross-version profile allows STU3 QuestionnaireResponse content to be represented via FHIR R5 QuestionnaireResponse resources.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | QuestionnaireResponse(5.0.0) | A structured set of questions and their answers | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
Σ | 1..1 | canonical(Questionnaire) | Canonical URL of Questionnaire being answered |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Questionnaire for use in FHIR R5(0.1.0) | Questionnaire) | STU3: Form being answered additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.questionnaire Constraints: ext-1 | |
![]() ![]() |
?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.status | Base | required | Questionnaire Response Status | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | QuestionnaireResponse | If 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-5 | error | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | QuestionnaireResponse.implicitRules, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.questionnaire, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.status | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | QuestionnaireResponse.modifierExtension, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from QuestionnaireResponse
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | QuestionnaireResponse(5.0.0) | A structured set of questions and their answers | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Meta | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required): The status of a resource narrative. | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..* | Identifier | Business identifier for this set of answers | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Identifier | STU3: Unique id for this set of answers additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.identifier Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: basedOn URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..* | Reference(Observation | Procedure) | Part of referenced event | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Part of this action additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 1..1 | canonical(Questionnaire) | Canonical URL of Questionnaire being answered | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Questionnaire for use in FHIR R5(0.1.0) | Questionnaire) | STU3: Form being answered additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.questionnaire Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | canonical | Primitive value for canonical | |||||
![]() ![]() |
?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. | ||||
![]() ![]() |
Σ | 0..1 | Reference(Resource) | The subject of the questions | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: subject additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter) | Encounter the questionnaire response is part of | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Encounter or Episode during which questionnaire was completed additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date the answers were gathered | ||||
![]() ![]() |
Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) | The individual or device that received and recorded the answers | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Person who received and recorded the answers URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson) | The individual or device that answered the questions | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: The person who answered the questions URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
C | 0..* | BackboneElement | Groups and questions Constraints: qrs-1, qrs-2 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Resource for use in FHIR R5(0.1.0) | Resource) | STU3: The subject this group's answers are about (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.item.subject Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
C | 1..1 | string | Pointer to specific item from Questionnaire | ||||
![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() |
0..1 | string | Name for group or question text | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | The response(s) to the question | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Attachment | STU3: value additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.item.answer.value Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
C | 1..1 | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Binding this is problematic because one value set can't apply to both codes and quantities. | |||||
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: value additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() ![]() |
0..* | See item (QuestionnaireResponse) | Child items of question | |||||
![]() ![]() ![]() |
0..* | See item (QuestionnaireResponse) | Child items of group item | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.meta.security | Base | extensible |
All Security Labels
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.text.status | Base | required | NarrativeStatus | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.basedOn.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.partOf.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.status | Base | required | Questionnaire Response Status | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.subject.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.encounter.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.author.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.source.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | QuestionnaireResponse | If 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-5 | error | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | QuestionnaireResponse.meta, QuestionnaireResponse.meta.extension, QuestionnaireResponse.meta.extension:meta, QuestionnaireResponse.meta.versionId, QuestionnaireResponse.meta.lastUpdated, QuestionnaireResponse.meta.source, QuestionnaireResponse.meta.profile, QuestionnaireResponse.meta.security, QuestionnaireResponse.meta.tag, QuestionnaireResponse.implicitRules, QuestionnaireResponse.language, QuestionnaireResponse.text, QuestionnaireResponse.text.extension, QuestionnaireResponse.text.extension:text, QuestionnaireResponse.text.status, QuestionnaireResponse.text.div, QuestionnaireResponse.extension, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.identifier, QuestionnaireResponse.identifier.extension, QuestionnaireResponse.identifier.extension:identifier, QuestionnaireResponse.identifier.use, QuestionnaireResponse.identifier.type, QuestionnaireResponse.identifier.system, QuestionnaireResponse.identifier.value, QuestionnaireResponse.identifier.period, QuestionnaireResponse.identifier.assigner, QuestionnaireResponse.basedOn, QuestionnaireResponse.basedOn.extension, QuestionnaireResponse.basedOn.extension:basedOn, QuestionnaireResponse.basedOn.reference, QuestionnaireResponse.basedOn.type, QuestionnaireResponse.basedOn.identifier, QuestionnaireResponse.basedOn.display, QuestionnaireResponse.partOf, QuestionnaireResponse.partOf.extension, QuestionnaireResponse.partOf.extension:parent, QuestionnaireResponse.partOf.reference, QuestionnaireResponse.partOf.type, QuestionnaireResponse.partOf.identifier, QuestionnaireResponse.partOf.display, QuestionnaireResponse.questionnaire, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.status, QuestionnaireResponse.subject, QuestionnaireResponse.subject.extension, QuestionnaireResponse.subject.extension:subject, QuestionnaireResponse.subject.reference, QuestionnaireResponse.subject.type, QuestionnaireResponse.subject.identifier, QuestionnaireResponse.subject.display, QuestionnaireResponse.encounter, QuestionnaireResponse.encounter.extension, QuestionnaireResponse.encounter.extension:context, QuestionnaireResponse.encounter.reference, QuestionnaireResponse.encounter.type, QuestionnaireResponse.encounter.identifier, QuestionnaireResponse.encounter.display, QuestionnaireResponse.authored, QuestionnaireResponse.author, QuestionnaireResponse.author.extension, QuestionnaireResponse.author.extension:author, QuestionnaireResponse.author.reference, QuestionnaireResponse.author.type, QuestionnaireResponse.author.identifier, QuestionnaireResponse.author.display, QuestionnaireResponse.source, QuestionnaireResponse.source.extension, QuestionnaireResponse.source.extension:source, QuestionnaireResponse.source.reference, QuestionnaireResponse.source.type, QuestionnaireResponse.source.identifier, QuestionnaireResponse.source.display, QuestionnaireResponse.item, QuestionnaireResponse.item.extension, QuestionnaireResponse.item.extension:subject, QuestionnaireResponse.item.modifierExtension, QuestionnaireResponse.item.linkId, QuestionnaireResponse.item.definition, QuestionnaireResponse.item.text, QuestionnaireResponse.item.answer, QuestionnaireResponse.item.answer.extension, QuestionnaireResponse.item.answer.extension:value, QuestionnaireResponse.item.answer.modifierExtension, QuestionnaireResponse.item.answer.value[x], QuestionnaireResponse.item.answer.value[x].extension, QuestionnaireResponse.item.answer.value[x].extension:alternateReference, QuestionnaireResponse.item.answer.item, QuestionnaireResponse.item.item | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | QuestionnaireResponse.meta.extension, QuestionnaireResponse.meta.extension:meta, QuestionnaireResponse.text.extension, QuestionnaireResponse.text.extension:text, QuestionnaireResponse.extension, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.identifier.extension, QuestionnaireResponse.identifier.extension:identifier, QuestionnaireResponse.basedOn.extension, QuestionnaireResponse.basedOn.extension:basedOn, QuestionnaireResponse.partOf.extension, QuestionnaireResponse.partOf.extension:parent, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.subject.extension, QuestionnaireResponse.subject.extension:subject, QuestionnaireResponse.encounter.extension, QuestionnaireResponse.encounter.extension:context, QuestionnaireResponse.author.extension, QuestionnaireResponse.author.extension:author, QuestionnaireResponse.source.extension, QuestionnaireResponse.source.extension:source, QuestionnaireResponse.item.extension, QuestionnaireResponse.item.extension:subject, QuestionnaireResponse.item.modifierExtension, QuestionnaireResponse.item.answer.extension, QuestionnaireResponse.item.answer.extension:value, QuestionnaireResponse.item.answer.modifierExtension, QuestionnaireResponse.item.answer.value[x].extension, QuestionnaireResponse.item.answer.value[x].extension:alternateReference | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item | Item cannot contain both item and answer |
(answer.exists() and item.exists()).not()
|
| qrs-2 | error | QuestionnaireResponse.item | Repeated answers are combined in the answers array of a single item |
repeat(answer|item).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
|
| txt-1 | error | QuestionnaireResponse.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | QuestionnaireResponse.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from QuestionnaireResponse
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | QuestionnaireResponse(5.0.0) | A structured set of questions and their answers | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
Σ | 1..1 | canonical(Questionnaire) | Canonical URL of Questionnaire being answered |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Questionnaire for use in FHIR R5(0.1.0) | Questionnaire) | STU3: Form being answered additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.questionnaire Constraints: ext-1 | |
![]() ![]() |
?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.status | Base | required | Questionnaire Response Status | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | QuestionnaireResponse | If 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-5 | error | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | QuestionnaireResponse.implicitRules, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.questionnaire, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.status | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | QuestionnaireResponse.modifierExtension, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from QuestionnaireResponse
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | QuestionnaireResponse(5.0.0) | A structured set of questions and their answers | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Meta | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required): The status of a resource narrative. | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..* | Identifier | Business identifier for this set of answers | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Identifier | STU3: Unique id for this set of answers additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.identifier Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: basedOn URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..* | Reference(Observation | Procedure) | Part of referenced event | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Part of this action additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 1..1 | canonical(Questionnaire) | Canonical URL of Questionnaire being answered | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Questionnaire for use in FHIR R5(0.1.0) | Questionnaire) | STU3: Form being answered additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.questionnaire Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | canonical | Primitive value for canonical | |||||
![]() ![]() |
?!Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: QuestionnaireResponseStatus (required): Lifecycle status of the questionnaire response. | ||||
![]() ![]() |
Σ | 0..1 | Reference(Resource) | The subject of the questions | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: subject additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter) | Encounter the questionnaire response is part of | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Encounter or Episode during which questionnaire was completed additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date the answers were gathered | ||||
![]() ![]() |
Σ | 0..1 | Reference(Device | Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) | The individual or device that received and recorded the answers | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: Person who received and recorded the answers URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson) | The individual or device that answered the questions | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: The person who answered the questions URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
C | 0..* | BackboneElement | Groups and questions Constraints: qrs-1, qrs-2 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Cross-version Profile for STU3.Resource for use in FHIR R5(0.1.0) | Resource) | STU3: The subject this group's answers are about (new) URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.item.subject Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
C | 1..1 | string | Pointer to specific item from Questionnaire | ||||
![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() |
0..1 | string | Name for group or question text | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | The response(s) to the question | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Attachment | STU3: value additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-QuestionnaireResponse.item.answer.value Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
C | 1..1 | Single-valued answer to the question Binding: QuestionnaireAnswerCodes (example): Binding this is problematic because one value set can't apply to both codes and quantities. | |||||
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: value additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() ![]() |
0..* | See item (QuestionnaireResponse) | Child items of question | |||||
![]() ![]() ![]() |
0..* | See item (QuestionnaireResponse) | Child items of group item | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| QuestionnaireResponse.meta.security | Base | extensible |
All Security Labels
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.text.status | Base | required | NarrativeStatus | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.basedOn.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.partOf.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.status | Base | required | Questionnaire Response Status | 📍5.0.0 | FHIR Std. |
| QuestionnaireResponse.subject.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.encounter.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.author.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.source.type | Base | extensible |
Resource Types
|
📍5.0.0 | tx.fhir.org |
| QuestionnaireResponse.item.answer.value[x] | Base | example | Questionnaire Answer Codes | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | QuestionnaireResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | QuestionnaireResponse | If 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-5 | error | QuestionnaireResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | QuestionnaireResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | QuestionnaireResponse.meta, QuestionnaireResponse.meta.extension, QuestionnaireResponse.meta.extension:meta, QuestionnaireResponse.meta.versionId, QuestionnaireResponse.meta.lastUpdated, QuestionnaireResponse.meta.source, QuestionnaireResponse.meta.profile, QuestionnaireResponse.meta.security, QuestionnaireResponse.meta.tag, QuestionnaireResponse.implicitRules, QuestionnaireResponse.language, QuestionnaireResponse.text, QuestionnaireResponse.text.extension, QuestionnaireResponse.text.extension:text, QuestionnaireResponse.text.status, QuestionnaireResponse.text.div, QuestionnaireResponse.extension, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.identifier, QuestionnaireResponse.identifier.extension, QuestionnaireResponse.identifier.extension:identifier, QuestionnaireResponse.identifier.use, QuestionnaireResponse.identifier.type, QuestionnaireResponse.identifier.system, QuestionnaireResponse.identifier.value, QuestionnaireResponse.identifier.period, QuestionnaireResponse.identifier.assigner, QuestionnaireResponse.basedOn, QuestionnaireResponse.basedOn.extension, QuestionnaireResponse.basedOn.extension:basedOn, QuestionnaireResponse.basedOn.reference, QuestionnaireResponse.basedOn.type, QuestionnaireResponse.basedOn.identifier, QuestionnaireResponse.basedOn.display, QuestionnaireResponse.partOf, QuestionnaireResponse.partOf.extension, QuestionnaireResponse.partOf.extension:parent, QuestionnaireResponse.partOf.reference, QuestionnaireResponse.partOf.type, QuestionnaireResponse.partOf.identifier, QuestionnaireResponse.partOf.display, QuestionnaireResponse.questionnaire, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.status, QuestionnaireResponse.subject, QuestionnaireResponse.subject.extension, QuestionnaireResponse.subject.extension:subject, QuestionnaireResponse.subject.reference, QuestionnaireResponse.subject.type, QuestionnaireResponse.subject.identifier, QuestionnaireResponse.subject.display, QuestionnaireResponse.encounter, QuestionnaireResponse.encounter.extension, QuestionnaireResponse.encounter.extension:context, QuestionnaireResponse.encounter.reference, QuestionnaireResponse.encounter.type, QuestionnaireResponse.encounter.identifier, QuestionnaireResponse.encounter.display, QuestionnaireResponse.authored, QuestionnaireResponse.author, QuestionnaireResponse.author.extension, QuestionnaireResponse.author.extension:author, QuestionnaireResponse.author.reference, QuestionnaireResponse.author.type, QuestionnaireResponse.author.identifier, QuestionnaireResponse.author.display, QuestionnaireResponse.source, QuestionnaireResponse.source.extension, QuestionnaireResponse.source.extension:source, QuestionnaireResponse.source.reference, QuestionnaireResponse.source.type, QuestionnaireResponse.source.identifier, QuestionnaireResponse.source.display, QuestionnaireResponse.item, QuestionnaireResponse.item.extension, QuestionnaireResponse.item.extension:subject, QuestionnaireResponse.item.modifierExtension, QuestionnaireResponse.item.linkId, QuestionnaireResponse.item.definition, QuestionnaireResponse.item.text, QuestionnaireResponse.item.answer, QuestionnaireResponse.item.answer.extension, QuestionnaireResponse.item.answer.extension:value, QuestionnaireResponse.item.answer.modifierExtension, QuestionnaireResponse.item.answer.value[x], QuestionnaireResponse.item.answer.value[x].extension, QuestionnaireResponse.item.answer.value[x].extension:alternateReference, QuestionnaireResponse.item.answer.item, QuestionnaireResponse.item.item | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | QuestionnaireResponse.meta.extension, QuestionnaireResponse.meta.extension:meta, QuestionnaireResponse.text.extension, QuestionnaireResponse.text.extension:text, QuestionnaireResponse.extension, QuestionnaireResponse.modifierExtension, QuestionnaireResponse.identifier.extension, QuestionnaireResponse.identifier.extension:identifier, QuestionnaireResponse.basedOn.extension, QuestionnaireResponse.basedOn.extension:basedOn, QuestionnaireResponse.partOf.extension, QuestionnaireResponse.partOf.extension:parent, QuestionnaireResponse.questionnaire.extension, QuestionnaireResponse.questionnaire.extension:questionnaire, QuestionnaireResponse.subject.extension, QuestionnaireResponse.subject.extension:subject, QuestionnaireResponse.encounter.extension, QuestionnaireResponse.encounter.extension:context, QuestionnaireResponse.author.extension, QuestionnaireResponse.author.extension:author, QuestionnaireResponse.source.extension, QuestionnaireResponse.source.extension:source, QuestionnaireResponse.item.extension, QuestionnaireResponse.item.extension:subject, QuestionnaireResponse.item.modifierExtension, QuestionnaireResponse.item.answer.extension, QuestionnaireResponse.item.answer.extension:value, QuestionnaireResponse.item.answer.modifierExtension, QuestionnaireResponse.item.answer.value[x].extension, QuestionnaireResponse.item.answer.value[x].extension:alternateReference | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qrs-1 | error | QuestionnaireResponse.item | Item cannot contain both item and answer |
(answer.exists() and item.exists()).not()
|
| qrs-2 | error | QuestionnaireResponse.item | Repeated answers are combined in the answers array of a single item |
repeat(answer|item).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
|
| txt-1 | error | QuestionnaireResponse.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | QuestionnaireResponse.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from QuestionnaireResponse
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Other representations of profile: CSV, Excel, Schematron