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

Official URL: https://fhir.ee/ahd/StructureDefinition/trustee-request-task Version: 0.1.0
Draft as of 2026-09-04 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: Filtersdoco
.. Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
... status ?!Σ 1..1 code draft | requested | received | accepted | +
Binding: Usaldusisiku kutse staatus (required)
... intent Σ 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
... code Σ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.
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... for Σ 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... requester Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... 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 Usaldusisiku kutse staatus 📦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: Filtersdoco
.. Task 0..* Task A task to be performed
... meta
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... source 0..0 Identifies where the resource comes from
.... 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 0..0 Language of the resource content
... contained 0..0 Contained, inline Resources
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... identifier 0..0 Task Instance Identifier
... instantiatesCanonical 0..0 Formal definition of task
... instantiatesUri 0..0 Formal definition of task
... basedOn 0..0 Request fulfilled by this task
... groupIdentifier 0..0 Requisition or grouper id
... partOf 0..0 Composite task
... status 1..1 code draft | requested | received | accepted | +
Binding: Usaldusisiku kutse staatus (required)
... statusReason 0..0 Reason for current status
... businessStatus 0..0 E.g. "Specimen collected", "IV prepped"
... intent 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: proposal
... priority 0..0 routine | urgent | asap | stat
... doNotPerform 0..0 True if Task is prohibiting action
... code 1..1 CodeableConcept Task Type
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... coding 0..0 Code defined by a terminology system
.... text 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... description 0..0 Human-readable explanation of task
... focus 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
... for 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... encounter 0..0 Healthcare event during which this task originated
... requestedPeriod 0..0 When the task should be performed
... executionPeriod 0..0 Start and end time of execution
... authoredOn 0..0 Task Creation Date
... lastModified 0..0 Task Last Modified Date
... requester 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
... owner 0..0 Responsible individual
... performer 0..0 Who or what performed the task
... location 0..0 Where task occurs
... reason 0..0 Why task is needed
... insurance 0..0 Associated insurance coverage
... note 0..0 Comments made about the task
... relevantHistory 0..0 Key events in history of the Task
... restriction 0..0 Constraints on fulfillment tasks
... input 0..0 Information used to perform 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 Usaldusisiku kutse staatus 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
... 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 Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
... 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
... intent Σ 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
... code Σ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.
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... focus ΣC 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
... for Σ 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... requester Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... 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 Usaldusisiku kutse staatus 📦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: Filtersdoco
.. Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
... status ?!Σ 1..1 code draft | requested | received | accepted | +
Binding: Usaldusisiku kutse staatus (required)
... intent Σ 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
... code Σ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.
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... for Σ 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... requester Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... 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 Usaldusisiku kutse staatus 📦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: Filtersdoco
.. Task 0..* Task A task to be performed
... meta
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... source 0..0 Identifies where the resource comes from
.... 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 0..0 Language of the resource content
... contained 0..0 Contained, inline Resources
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... identifier 0..0 Task Instance Identifier
... instantiatesCanonical 0..0 Formal definition of task
... instantiatesUri 0..0 Formal definition of task
... basedOn 0..0 Request fulfilled by this task
... groupIdentifier 0..0 Requisition or grouper id
... partOf 0..0 Composite task
... status 1..1 code draft | requested | received | accepted | +
Binding: Usaldusisiku kutse staatus (required)
... statusReason 0..0 Reason for current status
... businessStatus 0..0 E.g. "Specimen collected", "IV prepped"
... intent 1..1 code unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: proposal
... priority 0..0 routine | urgent | asap | stat
... doNotPerform 0..0 True if Task is prohibiting action
... code 1..1 CodeableConcept Task Type
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... coding 0..0 Code defined by a terminology system
.... text 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... description 0..0 Human-readable explanation of task
... focus 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
... for 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... encounter 0..0 Healthcare event during which this task originated
... requestedPeriod 0..0 When the task should be performed
... executionPeriod 0..0 Start and end time of execution
... authoredOn 0..0 Task Creation Date
... lastModified 0..0 Task Last Modified Date
... requester 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(AHD trustee (RelatedPerson)) Who should perform Task
... owner 0..0 Responsible individual
... performer 0..0 Who or what performed the task
... location 0..0 Where task occurs
... reason 0..0 Why task is needed
... insurance 0..0 Associated insurance coverage
... note 0..0 Comments made about the task
... relevantHistory 0..0 Key events in history of the Task
... restriction 0..0 Constraints on fulfillment tasks
... input 0..0 Information used to perform 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 Usaldusisiku kutse staatus 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Task C 0..* Task A task to be performed
Constraints: inv-1, tsk-1
... 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 Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
... 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
... intent Σ 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
... code Σ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.
.... extension 0..0 Extension
Slice: Unordered, Open by value:url
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... focus ΣC 1..1 Reference(AHD trustee (RelatedPerson)) What task is acting on
... for Σ 1..1 Reference(EE MPI Patient Verified) Beneficiary of the Task
... requester Σ 1..1 Reference(EE MPI Patient Verified | EE SPD PractitionerRole) Who is asking for task to be done
... 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 Usaldusisiku kutse staatus 📦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