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: Usaldusisiku kutse

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

Task ressurss, eesmärgiga edastada kutse inimesele olla patsiendi elulõputahteavalduse usaldusisik

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: TaskStatus (required): The current status of the task.
... 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.
.... 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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 Task Status 📍5.0.0 FHIR Std.
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
... implicitRules 0..0 A set of rules under which this content was created
... language 0..0 Language of the resource content
... text 0..0 Text summary of the resource, for human interpretation
... 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
... 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
.... 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(Usaldusisik) 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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
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
... status ?!Σ 1..1 code draft | requested | received | accepted | +
Binding: TaskStatus (required): The current status of the task.
... 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.
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... focus ΣC 1..1 Reference(Usaldusisik) 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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 Task Status 📍5.0.0 FHIR Std.
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()

This structure is derived from Task

Summary

Mandatory: 5 elements
Prohibited: 32 elements

Structures

This structure refers to these other structures:

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: TaskStatus (required): The current status of the task.
... 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.
.... 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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 Task Status 📍5.0.0 FHIR Std.
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
... implicitRules 0..0 A set of rules under which this content was created
... language 0..0 Language of the resource content
... text 0..0 Text summary of the resource, for human interpretation
... 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
... 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
.... 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(Usaldusisik) 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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

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
... status ?!Σ 1..1 code draft | requested | received | accepted | +
Binding: TaskStatus (required): The current status of the task.
... 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.
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
Required Pattern: Usaldusisikuks olemise kinnitamine
... focus ΣC 1..1 Reference(Usaldusisik) 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 | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) Who is asking for task to be done
... requestedPerformer 1..1 CodeableReference(Usaldusisik) 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 Task Status 📍5.0.0 FHIR Std.
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()

This structure is derived from Task

Summary

Mandatory: 5 elements
Prohibited: 32 elements

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron