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-pet/ 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: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
Additional BindingsPurpose
CommonLanguages Starter
... Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... questionnaire Σ 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... subject Σ 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... author Σ 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 lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦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: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... meta
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... source 0..0 Identifies where the resource comes from
.... profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
.... security 0..0 Security Labels applied to this resource
.... tag 0..0 Tags applied to this resource
... implicitRules 0..0 A set of rules under which this content was created
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
... contained 0..0 Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... modifierExtension 0..0 Extension
... identifier 0..0 Business identifier for this set of answers
... basedOn 0..0 Request fulfilled by this QuestionnaireResponse
... partOf 0..0 Part of referenced event
... questionnaire 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... status 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse lubatud staatused (required)
... subject 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... encounter 0..0 Encounter the questionnaire response is part of
... authored 0..0 Date the answers were gathered
... author 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
... source 0..0 The individual or device that answered the questions
... item
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... definition 0..0 ElementDefinition - details for the item
.... answer
..... id 0..0 Unique id for inter-element referencing
..... extension 0..0 Extension
..... modifierExtension 0..0 Extension

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... profile Σ 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
Additional BindingsPurpose
CommonLanguages Starter
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... questionnaire Σ 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse lubatud staatused (required)
... subject Σ 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... author Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
... item C 0..* BackboneElement Groups and questions
Constraints: qrs-1, qrs-2
.... linkId C 1..1 string Pointer to specific item from Questionnaire
.... text 0..1 string Name for group or question text
.... answer C 0..* BackboneElement The response(s) to the question
..... 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.
...... valueBoolean boolean
...... valueDecimal decimal
...... valueInteger integer
...... valueDate date
...... valueDateTime dateTime
...... valueTime time
...... valueString string
...... valueUri uri
...... valueAttachment Attachment
...... valueCoding Coding
...... valueQuantity Quantity(SimpleQuantity)
...... valueReference Reference(Resource)
..... item 0..* See item (QuestionnaireResponse) Child items of question
.... 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 lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦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()

This structure is derived from QuestionnaireResponse

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
Additional BindingsPurpose
CommonLanguages Starter
... Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... questionnaire Σ 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... subject Σ 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... author Σ 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 lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦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: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... meta
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... source 0..0 Identifies where the resource comes from
.... profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
.... security 0..0 Security Labels applied to this resource
.... tag 0..0 Tags applied to this resource
... implicitRules 0..0 A set of rules under which this content was created
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
... contained 0..0 Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Closed by value:url
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... modifierExtension 0..0 Extension
... identifier 0..0 Business identifier for this set of answers
... basedOn 0..0 Request fulfilled by this QuestionnaireResponse
... partOf 0..0 Part of referenced event
... questionnaire 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... status 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse lubatud staatused (required)
... subject 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... encounter 0..0 Encounter the questionnaire response is part of
... authored 0..0 Date the answers were gathered
... author 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
... source 0..0 The individual or device that answered the questions
... item
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... definition 0..0 ElementDefinition - details for the item
.... answer
..... id 0..0 Unique id for inter-element referencing
..... extension 0..0 Extension
..... modifierExtension 0..0 Extension

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
QuestionnaireResponse.​language Base required AHD lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. QuestionnaireResponse 0..* QuestionnaireResponse A structured set of questions and their answers
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... profile Σ 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
... language 1..1 code Language of the resource content
Binding: AHD lubatud keeled (required)
Additional BindingsPurpose
CommonLanguages Starter
.... extension:witness 0..1 Reference(AHD witness (RelatedPerson)) AHD witness reference
URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness-reference
.... extension:signedDigitally 0..1 boolean Digitally signed (Boolean)
URL: https://fhir.ee/ahd/StructureDefinition/ahd-signed-digitally
... questionnaire Σ 1..1 canonical(Questionnaire) Canonical URL of Questionnaire being answered
Required Pattern: https://fhir.ee/qre/Questionnaire-AHD|1.0.0
... status ?!Σ 1..1 code in-progress | completed | amended | entered-in-error | stopped
Binding: AHD QuestionnaireResponse lubatud staatused (required)
... subject Σ 1..1 Reference(EE MPI Patient Verified) The subject of the questions
... author Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) The individual or device that received and recorded the answers
... item C 0..* BackboneElement Groups and questions
Constraints: qrs-1, qrs-2
.... linkId C 1..1 string Pointer to specific item from Questionnaire
.... text 0..1 string Name for group or question text
.... answer C 0..* BackboneElement The response(s) to the question
..... 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.
...... valueBoolean boolean
...... valueDecimal decimal
...... valueInteger integer
...... valueDate date
...... valueDateTime dateTime
...... valueTime time
...... valueString string
...... valueUri uri
...... valueAttachment Attachment
...... valueCoding Coding
...... valueQuantity Quantity(SimpleQuantity)
...... valueReference Reference(Resource)
..... item 0..* See item (QuestionnaireResponse) Child items of question
.... 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 lubatud keeled 📦0.1.0 This IG
QuestionnaireResponse.​status Base required AHD QuestionnaireResponse lubatud staatused 📦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()

This structure is derived from QuestionnaireResponse

 

Other representations of profile: CSV, Excel, Schematron