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 trustee request (Task)

Official URL: https://fhir.ee/ahd/StructureDefinition/trustee-request-task Version: 0.1.0
Draft as of 2026-10-12 Computable Name: TrusteeRequestTask

The patient can request a person to be their representative in the AHD employing process. The request can be made by the patient or a healthcare practitioner and the performer will be the requested trustee.

Usages:

  • This Profile is not used by any profiles in this Specification

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
Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
Task.status This element is a modifier element. This element is included in summaries. 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.intent This element is included in summaries. 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.
Required Pattern: proposal
Task.code This element is included in summaries. C 1..1 CodeableConcept Task Type
Binding: TaskCode (example): Codes to identify what the task involves. These will typically be specific to a particular workflow.
Task.code.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
Task.code.text This element is included in summaries. 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.focus This element is included in summaries. C 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.requester This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG
Task.intent Base required Task Intent 📍5.0.0 FHIR Std.
Task.code Base example Task Codes 📍5.0.0 FHIR Std.
Task.requestedPerformer Base preferred Procedure Performer Role Codes 📍5.0.0 FHIR Std.
Task.input.type Base example Not State Unknown
Task.output.type Base example Not State Unknown

Constraints

Id Grade Path(s) Description Expression
dom-2 error Task If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Task 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 Task 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 Task If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Task 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()
inv-1 error Task Last modified date must be greater than or equal to authored-on date. lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
tsk-1 error Task Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified. restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()

This structure is derived from Task

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Task 0..* Task A task to be performed
Task.meta
Task.meta.id 0..0 Unique id for inter-element referencing
Task.meta.extension 0..0 Extension
Task.meta.source 0..0 Identifies where the resource comes from
Task.meta.security 0..0 Security Labels applied to this resource
Task.meta.tag 0..0 Tags applied to this resource
Task.implicitRules 0..0 A set of rules under which this content was created
Task.language 0..0 Language of the resource content
Task.contained 0..0 Contained, inline Resources
Task.extension 0..0 Extension
Task.modifierExtension 0..0 Extension
Task.identifier 0..0 Task Instance Identifier
Task.instantiatesCanonical 0..0 Formal definition of task
Task.instantiatesUri 0..0 Formal definition of task
Task.basedOn 0..0 Request fulfilled by this task
Task.groupIdentifier 0..0 Requisition or grouper id
Task.partOf 0..0 Composite task
Task.status 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.statusReason 0..0 Reason for current status
Task.businessStatus 0..0 E.g. "Specimen collected", "IV prepped"
Task.intent 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: proposal
Task.priority 0..0 routine | urgent | asap | stat
Task.doNotPerform 0..0 True if Task is prohibiting action
Task.code 1..1 CodeableConcept Task Type
Task.code.id 0..0 Unique id for inter-element referencing
Task.code.extension 0..0 Extension
Task.code.coding 0..0 Code defined by a terminology system
Task.code.text 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.description 0..0 Human-readable explanation of task
Task.focus 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.encounter 0..0 Healthcare event during which this task originated
Task.requestedPeriod 0..0 When the task should be performed
Task.executionPeriod 0..0 Start and end time of execution
Task.authoredOn 0..0 Task Creation Date
Task.lastModified 0..0 Task Last Modified Date
Task.requester 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Task.owner 0..0 Responsible individual
Task.performer 0..0 Who or what performed the task
Task.location 0..0 Where task occurs
Task.reason 0..0 Why task is needed
Task.insurance 0..0 Associated insurance coverage
Task.note 0..0 Comments made about the task
Task.relevantHistory 0..0 Key events in history of the Task
Task.restriction 0..0 Constraints on fulfillment tasks
Task.input 0..0 Information used to perform task
Task.output 0..0 Information produced as part of task

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
Task.id This element is included in summaries. 0..1 id Logical id of this artifact
Task.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Task.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
Task.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Task.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
Task.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Task.text 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
Task.status This element is a modifier element. This element is included in summaries. 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.intent This element is included in summaries. 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.
Required Pattern: proposal
Task.code This element is included in summaries. C 1..1 CodeableConcept Task Type
Binding: TaskCode (example): Codes to identify what the task involves. These will typically be specific to a particular workflow.
Task.code.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
Task.code.text This element is included in summaries. 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.focus This element is included in summaries. C 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.requester This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG
Task.intent Base required Task Intent 📍5.0.0 FHIR Std.
Task.code Base example Task Codes 📍5.0.0 FHIR Std.
Task.requestedPerformer Base preferred Procedure Performer Role Codes 📍5.0.0 FHIR Std.
Task.performer.function Base example Not State Unknown
Task.input.type Base example Not State Unknown
Task.output.type Base example Not State Unknown

Constraints

Id Grade Path(s) Description Expression
dom-2 error Task If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Task 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 Task 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 Task If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Task 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()
inv-1 error Task Last modified date must be greater than or equal to authored-on date. lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
tsk-1 error Task Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified. restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
Task.status This element is a modifier element. This element is included in summaries. 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.intent This element is included in summaries. 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.
Required Pattern: proposal
Task.code This element is included in summaries. C 1..1 CodeableConcept Task Type
Binding: TaskCode (example): Codes to identify what the task involves. These will typically be specific to a particular workflow.
Task.code.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
Task.code.text This element is included in summaries. 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.focus This element is included in summaries. C 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.requester This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG
Task.intent Base required Task Intent 📍5.0.0 FHIR Std.
Task.code Base example Task Codes 📍5.0.0 FHIR Std.
Task.requestedPerformer Base preferred Procedure Performer Role Codes 📍5.0.0 FHIR Std.
Task.input.type Base example Not State Unknown
Task.output.type Base example Not State Unknown

Constraints

Id Grade Path(s) Description Expression
dom-2 error Task If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Task 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 Task 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 Task If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Task 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()
inv-1 error Task Last modified date must be greater than or equal to authored-on date. lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
tsk-1 error Task Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified. restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()

Differential View

This structure is derived from Task

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Task 0..* Task A task to be performed
Task.meta
Task.meta.id 0..0 Unique id for inter-element referencing
Task.meta.extension 0..0 Extension
Task.meta.source 0..0 Identifies where the resource comes from
Task.meta.security 0..0 Security Labels applied to this resource
Task.meta.tag 0..0 Tags applied to this resource
Task.implicitRules 0..0 A set of rules under which this content was created
Task.language 0..0 Language of the resource content
Task.contained 0..0 Contained, inline Resources
Task.extension 0..0 Extension
Task.modifierExtension 0..0 Extension
Task.identifier 0..0 Task Instance Identifier
Task.instantiatesCanonical 0..0 Formal definition of task
Task.instantiatesUri 0..0 Formal definition of task
Task.basedOn 0..0 Request fulfilled by this task
Task.groupIdentifier 0..0 Requisition or grouper id
Task.partOf 0..0 Composite task
Task.status 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.statusReason 0..0 Reason for current status
Task.businessStatus 0..0 E.g. "Specimen collected", "IV prepped"
Task.intent 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: proposal
Task.priority 0..0 routine | urgent | asap | stat
Task.doNotPerform 0..0 True if Task is prohibiting action
Task.code 1..1 CodeableConcept Task Type
Task.code.id 0..0 Unique id for inter-element referencing
Task.code.extension 0..0 Extension
Task.code.coding 0..0 Code defined by a terminology system
Task.code.text 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.description 0..0 Human-readable explanation of task
Task.focus 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.encounter 0..0 Healthcare event during which this task originated
Task.requestedPeriod 0..0 When the task should be performed
Task.executionPeriod 0..0 Start and end time of execution
Task.authoredOn 0..0 Task Creation Date
Task.lastModified 0..0 Task Last Modified Date
Task.requester 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Task.owner 0..0 Responsible individual
Task.performer 0..0 Who or what performed the task
Task.location 0..0 Where task occurs
Task.reason 0..0 Why task is needed
Task.insurance 0..0 Associated insurance coverage
Task.note 0..0 Comments made about the task
Task.relevantHistory 0..0 Key events in history of the Task
Task.restriction 0..0 Constraints on fulfillment tasks
Task.input 0..0 Information used to perform task
Task.output 0..0 Information produced as part of task

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
Task.id This element is included in summaries. 0..1 id Logical id of this artifact
Task.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Task.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
Task.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Task.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
Task.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Task.text 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
Task.status This element is a modifier element. This element is included in summaries. 1..1 code draft | requested | received | accepted | +
Binding: AHD trustee request status value set (required)
Task.intent This element is included in summaries. 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.
Required Pattern: proposal
Task.code This element is included in summaries. C 1..1 CodeableConcept Task Type
Binding: TaskCode (example): Codes to identify what the task involves. These will typically be specific to a particular workflow.
Task.code.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
Task.code.text This element is included in summaries. 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
Task.focus This element is included in summaries. C 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
Task.for This element is included in summaries. 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
Task.requester This element is included in summaries. 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
Task.requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Task.status Base required AHD trustee request status value set 📦0.1.0 This IG
Task.intent Base required Task Intent 📍5.0.0 FHIR Std.
Task.code Base example Task Codes 📍5.0.0 FHIR Std.
Task.requestedPerformer Base preferred Procedure Performer Role Codes 📍5.0.0 FHIR Std.
Task.performer.function Base example Not State Unknown
Task.input.type Base example Not State Unknown
Task.output.type Base example Not State Unknown

Constraints

Id Grade Path(s) Description Expression
dom-2 error Task If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Task 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 Task 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 Task If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Task 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()
inv-1 error Task Last modified date must be greater than or equal to authored-on date. lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
tsk-1 error Task Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified. restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()

 

Other representations of profile: CSV, Excel, Schematron