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
| 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:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Task | A task to be performed Constraints: inv-1, tsk-1 |
![]() ![]() |
?!Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required): The current status of the task. |
![]() ![]() |
Σ | 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 |
![]() ![]() |
Σ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. |
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine |
![]() ![]() |
ΣC | 1..1 | Reference(Usaldusisik) | What task is acting on |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |
Documentation for this format | ||||
| 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 |
| 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
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Task | A task to be performed | |
![]() ![]() |
0..0 | A set of rules under which this content was created | ||
![]() ![]() |
0..0 | Language of the resource content | ||
![]() ![]() |
0..0 | Text summary of the resource, for human interpretation | ||
![]() ![]() |
0..0 | Contained, inline Resources | ||
![]() ![]() |
0..0 | Extension | ||
![]() ![]() |
0..0 | Extension | ||
![]() ![]() |
0..0 | Task Instance Identifier | ||
![]() ![]() |
0..0 | Formal definition of task | ||
![]() ![]() |
0..0 | Formal definition of task | ||
![]() ![]() |
0..0 | Request fulfilled by this task | ||
![]() ![]() |
0..0 | Requisition or grouper id | ||
![]() ![]() |
0..0 | Composite task | ||
![]() ![]() |
0..0 | Reason for current status | ||
![]() ![]() |
0..0 | E.g. "Specimen collected", "IV prepped" | ||
![]() ![]() |
1..1 | code | unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Required Pattern: proposal | |
![]() ![]() |
0..0 | routine | urgent | asap | stat | ||
![]() ![]() |
0..0 | True if Task is prohibiting action | ||
![]() ![]() |
1..1 | CodeableConcept | Task Type | |
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine | |
![]() ![]() |
0..0 | Human-readable explanation of task | ||
![]() ![]() |
1..1 | Reference(Usaldusisik) | What task is acting on | |
![]() ![]() |
1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task | |
![]() ![]() |
0..0 | Healthcare event during which this task originated | ||
![]() ![]() |
0..0 | When the task should be performed | ||
![]() ![]() |
0..0 | Start and end time of execution | ||
![]() ![]() |
0..0 | Task Creation Date | ||
![]() ![]() |
0..0 | Task Last Modified Date | ||
![]() ![]() |
1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done | |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task | |
![]() ![]() |
0..0 | Responsible individual | ||
![]() ![]() |
0..0 | Who or what performed the task | ||
![]() ![]() |
0..0 | Where task occurs | ||
![]() ![]() |
0..0 | Why task is needed | ||
![]() ![]() |
0..0 | Associated insurance coverage | ||
![]() ![]() |
0..0 | Comments made about the task | ||
![]() ![]() |
0..0 | Key events in history of the Task | ||
![]() ![]() |
0..0 | Constraints on fulfillment tasks | ||
![]() ![]() |
0..0 | Information used to perform task | ||
![]() ![]() |
0..0 | Information produced as part of task | ||
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Task | A task to be performed Constraints: inv-1, tsk-1 |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() |
?!Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required): The current status of the task. |
![]() ![]() |
Σ | 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 |
![]() ![]() |
Σ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. |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system |
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine |
![]() ![]() |
ΣC | 1..1 | Reference(Usaldusisik) | What task is acting on |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |
Documentation for this format | ||||
| 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 |
| 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
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Task | A task to be performed Constraints: inv-1, tsk-1 |
![]() ![]() |
?!Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required): The current status of the task. |
![]() ![]() |
Σ | 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 |
![]() ![]() |
Σ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. |
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine |
![]() ![]() |
ΣC | 1..1 | Reference(Usaldusisik) | What task is acting on |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |
Documentation for this format | ||||
| 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 |
| 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
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Task | A task to be performed | |
![]() ![]() |
0..0 | A set of rules under which this content was created | ||
![]() ![]() |
0..0 | Language of the resource content | ||
![]() ![]() |
0..0 | Text summary of the resource, for human interpretation | ||
![]() ![]() |
0..0 | Contained, inline Resources | ||
![]() ![]() |
0..0 | Extension | ||
![]() ![]() |
0..0 | Extension | ||
![]() ![]() |
0..0 | Task Instance Identifier | ||
![]() ![]() |
0..0 | Formal definition of task | ||
![]() ![]() |
0..0 | Formal definition of task | ||
![]() ![]() |
0..0 | Request fulfilled by this task | ||
![]() ![]() |
0..0 | Requisition or grouper id | ||
![]() ![]() |
0..0 | Composite task | ||
![]() ![]() |
0..0 | Reason for current status | ||
![]() ![]() |
0..0 | E.g. "Specimen collected", "IV prepped" | ||
![]() ![]() |
1..1 | code | unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Required Pattern: proposal | |
![]() ![]() |
0..0 | routine | urgent | asap | stat | ||
![]() ![]() |
0..0 | True if Task is prohibiting action | ||
![]() ![]() |
1..1 | CodeableConcept | Task Type | |
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine | |
![]() ![]() |
0..0 | Human-readable explanation of task | ||
![]() ![]() |
1..1 | Reference(Usaldusisik) | What task is acting on | |
![]() ![]() |
1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task | |
![]() ![]() |
0..0 | Healthcare event during which this task originated | ||
![]() ![]() |
0..0 | When the task should be performed | ||
![]() ![]() |
0..0 | Start and end time of execution | ||
![]() ![]() |
0..0 | Task Creation Date | ||
![]() ![]() |
0..0 | Task Last Modified Date | ||
![]() ![]() |
1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done | |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task | |
![]() ![]() |
0..0 | Responsible individual | ||
![]() ![]() |
0..0 | Who or what performed the task | ||
![]() ![]() |
0..0 | Where task occurs | ||
![]() ![]() |
0..0 | Why task is needed | ||
![]() ![]() |
0..0 | Associated insurance coverage | ||
![]() ![]() |
0..0 | Comments made about the task | ||
![]() ![]() |
0..0 | Key events in history of the Task | ||
![]() ![]() |
0..0 | Constraints on fulfillment tasks | ||
![]() ![]() |
0..0 | Information used to perform task | ||
![]() ![]() |
0..0 | Information produced as part of task | ||
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Task | A task to be performed Constraints: inv-1, tsk-1 |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() |
?!Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required): The current status of the task. |
![]() ![]() |
Σ | 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 |
![]() ![]() |
Σ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. |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
Σ | 0..* | Coding | Code defined by a terminology system |
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept Required Pattern: Usaldusisikuks olemise kinnitamine |
![]() ![]() |
ΣC | 1..1 | Reference(Usaldusisik) | What task is acting on |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified) | Beneficiary of the Task |
![]() ![]() |
Σ | 1..1 | Reference(EE MPI Patient Verified | https://fhir.ee/spd/StructureDefinition/ee-spd-practitioner-role) | Who is asking for task to be done |
![]() ![]() |
1..1 | CodeableReference(Usaldusisik) | Who should perform Task Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |
Documentation for this format | ||||
| 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 |
| 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