Patsiendi elulõpu tahteavaldus
0.1.0 - trial-use

Patsiendi elulõpu tahteavaldus, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-ahd/ and changes regularly. See the Directory of published versions

Resource Profile: AHD content (QuestionnaireResponse)

Official URL: https://fhir.ee/ahd/StructureDefinition/ahd-content Version: 0.1.0
Draft as of 2026-07-14 Computable Name: AHDQuestionnaireResponse

The actual content of the AHD and the patient's wishes

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
Additional BindingsPurpose
CommonLanguages Starter
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.questionnaire This element is included in summaries. 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status This element is a modifier element. This element is included in summaries. 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.author This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG

Constraints

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 **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.meta
QuestionnaireResponse.meta.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.meta.extension 0..0 Extension
QuestionnaireResponse.meta.source 0..0 Identifies where the resource comes from
QuestionnaireResponse.meta.profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
QuestionnaireResponse.meta.security 0..0 Security Labels applied to this resource
QuestionnaireResponse.meta.tag 0..0 Tags applied to this resource
QuestionnaireResponse.implicitRules 0..0 A set of rules under which this content was created
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
QuestionnaireResponse.contained 0..0 Contained, inline Resources
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.modifierExtension 0..0 Extension
QuestionnaireResponse.identifier 0..0 Business identifier for this set of answers
QuestionnaireResponse.basedOn 0..0 Request fulfilled by this QuestionnaireResponse
QuestionnaireResponse.partOf 0..0 Part of referenced event
QuestionnaireResponse.questionnaire 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.encounter 0..0 Encounter the questionnaire response is part of
QuestionnaireResponse.authored 0..0 Date the answers were gathered
QuestionnaireResponse.author 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
QuestionnaireResponse.source 0..0 The individual or device that answered the questions
QuestionnaireResponse.item
QuestionnaireResponse.item.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.item.extension 0..0 Extension
QuestionnaireResponse.item.modifierExtension 0..0 Extension
QuestionnaireResponse.item.definition 0..0 ElementDefinition - details for the item
QuestionnaireResponse.item.answer
QuestionnaireResponse.item.answer.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.item.answer.extension 0..0 Extension
QuestionnaireResponse.item.answer.modifierExtension 0..0 Extension

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.id This element is included in summaries. 0..1 id Logical id of this artifact
QuestionnaireResponse.meta This element is included in summaries. 0..1 Meta Metadata about the resource
QuestionnaireResponse.meta.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
QuestionnaireResponse.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
QuestionnaireResponse.meta.profile This element is included in summaries. 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
Additional BindingsPurpose
CommonLanguages Starter
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.questionnaire This element is included in summaries. 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status This element is a modifier element. This element is included in summaries. 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.author This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
QuestionnaireResponse.item C 0..* BackboneElement Groups and questions
Constraints: qrs-1, qrs-2
QuestionnaireResponse.item.linkId C 1..1 string Pointer to specific item from Questionnaire
QuestionnaireResponse.item.text 0..1 string Name for group or question text
QuestionnaireResponse.item.answer C 0..* BackboneElement The response(s) to the question
QuestionnaireResponse.item.answer.value[x] 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.
QuestionnaireResponse.item.answer.value[x].valueBoolean boolean
QuestionnaireResponse.item.answer.value[x].valueDecimal decimal
QuestionnaireResponse.item.answer.value[x].valueInteger integer
QuestionnaireResponse.item.answer.value[x].valueDate date
QuestionnaireResponse.item.answer.value[x].valueDateTime dateTime
QuestionnaireResponse.item.answer.value[x].valueTime time
QuestionnaireResponse.item.answer.value[x].valueString string
QuestionnaireResponse.item.answer.value[x].valueUri uri
QuestionnaireResponse.item.answer.value[x].valueAttachment Attachment
QuestionnaireResponse.item.answer.value[x].valueCoding Coding
QuestionnaireResponse.item.answer.value[x].valueQuantity Quantity(SimpleQuantity)
QuestionnaireResponse.item.answer.value[x].valueReference Reference(Resource)
QuestionnaireResponse.item.answer.item 0..* See item (QuestionnaireResponse) Child items of question
QuestionnaireResponse.item.item 0..* See item (QuestionnaireResponse) Child items of group item

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG
QuestionnaireResponse.​item.answer.value[x] Base example Questionnaire Answer Codes 📍5.0.0 FHIR Std.

Constraints

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 **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions 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()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
Additional BindingsPurpose
CommonLanguages Starter
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.questionnaire This element is included in summaries. 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status This element is a modifier element. This element is included in summaries. 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.author This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG

Constraints

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 **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from QuestionnaireResponse

NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.meta
QuestionnaireResponse.meta.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.meta.extension 0..0 Extension
QuestionnaireResponse.meta.source 0..0 Identifies where the resource comes from
QuestionnaireResponse.meta.profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
QuestionnaireResponse.meta.security 0..0 Security Labels applied to this resource
QuestionnaireResponse.meta.tag 0..0 Tags applied to this resource
QuestionnaireResponse.implicitRules 0..0 A set of rules under which this content was created
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
QuestionnaireResponse.text 0..0 Text summary of the resource, for human interpretation
QuestionnaireResponse.contained 0..0 Contained, inline Resources
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.modifierExtension 0..0 Extension
QuestionnaireResponse.identifier 0..0 Business identifier for this set of answers
QuestionnaireResponse.basedOn 0..0 Request fulfilled by this QuestionnaireResponse
QuestionnaireResponse.partOf 0..0 Part of referenced event
QuestionnaireResponse.questionnaire 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.encounter 0..0 Encounter the questionnaire response is part of
QuestionnaireResponse.authored 0..0 Date the answers were gathered
QuestionnaireResponse.author 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
QuestionnaireResponse.source 0..0 The individual or device that answered the questions
QuestionnaireResponse.item
QuestionnaireResponse.item.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.item.extension 0..0 Extension
QuestionnaireResponse.item.modifierExtension 0..0 Extension
QuestionnaireResponse.item.definition 0..0 ElementDefinition - details for the item
QuestionnaireResponse.item.answer
QuestionnaireResponse.item.answer.id 0..0 Unique id for inter-element referencing
QuestionnaireResponse.item.answer.extension 0..0 Extension
QuestionnaireResponse.item.answer.modifierExtension 0..0 Extension

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
QuestionnaireResponse.id This element is included in summaries. 0..1 id Logical id of this artifact
QuestionnaireResponse.meta This element is included in summaries. 0..1 Meta Metadata about the resource
QuestionnaireResponse.meta.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
QuestionnaireResponse.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
QuestionnaireResponse.meta.profile This element is included in summaries. 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
QuestionnaireResponse.language 1..1 code Language of the resource content
Binding: AHD language value set (required)
Additional BindingsPurpose
CommonLanguages Starter
QuestionnaireResponse.Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
QuestionnaireResponse.Slices for extension.extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
QuestionnaireResponse.Slices for extension.extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
QuestionnaireResponse.Slices for extension.extension:signatureDeadline 0..1 date Signature deadline
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-deadline
QuestionnaireResponse.questionnaire This element is included in summaries. 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
QuestionnaireResponse.status This element is a modifier element. This element is included in summaries. 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse status value set (required)
QuestionnaireResponse.subject This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) The subject of the questions
QuestionnaireResponse.author This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
QuestionnaireResponse.item C 0..* BackboneElement Groups and questions
Constraints: qrs-1, qrs-2
QuestionnaireResponse.item.linkId C 1..1 string Pointer to specific item from Questionnaire
QuestionnaireResponse.item.text 0..1 string Name for group or question text
QuestionnaireResponse.item.answer C 0..* BackboneElement The response(s) to the question
QuestionnaireResponse.item.answer.value[x] 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.
QuestionnaireResponse.item.answer.value[x].valueBoolean boolean
QuestionnaireResponse.item.answer.value[x].valueDecimal decimal
QuestionnaireResponse.item.answer.value[x].valueInteger integer
QuestionnaireResponse.item.answer.value[x].valueDate date
QuestionnaireResponse.item.answer.value[x].valueDateTime dateTime
QuestionnaireResponse.item.answer.value[x].valueTime time
QuestionnaireResponse.item.answer.value[x].valueString string
QuestionnaireResponse.item.answer.value[x].valueUri uri
QuestionnaireResponse.item.answer.value[x].valueAttachment Attachment
QuestionnaireResponse.item.answer.value[x].valueCoding Coding
QuestionnaireResponse.item.answer.value[x].valueQuantity Quantity(SimpleQuantity)
QuestionnaireResponse.item.answer.value[x].valueReference Reference(Resource)
QuestionnaireResponse.item.answer.item 0..* See item (QuestionnaireResponse) Child items of question
QuestionnaireResponse.item.item 0..* See item (QuestionnaireResponse) Child items of group item

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD language value set 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse status value set 📦0.1.0 This IG
QuestionnaireResponse.​item.answer.value[x] Base example Questionnaire Answer Codes 📍5.0.0 FHIR Std.

Constraints

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 **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions 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()

 

Other representations of profile: CSV, Excel, Schematron