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's signature data (Provenance)

Official URL: https://fhir.ee/ahd/StructureDefinition/ahd-trustee-signature-provenance Version: 0.1.0
Draft as of 2026-09-04 Computable Name: AHDTrusteeSignatureProvenance

Data about the signing process when a person agrees to be a patient's trustee represeting their 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
.. Provenance 0..* Provenance Who, What, When for a set of resources
... target Σ 1..1 Reference(AHD trustee (RelatedPerson)) Target Reference(s) (usually version specific)
... occurred[x] 1..1 dateTime When the activity occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
...... display 0..1 string Representation defined by the system
...... extension 0..0 Extension
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... code ΣC 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
.... who ΣC 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
... entity Σ 0..1 BackboneElement An entity used in this activity
.... role Σ 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source
.... what Σ 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG
Provenance.entity.role Base required Provenance Entity Role 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Provenance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Provenance 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 Provenance 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 Provenance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Provenance 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())
prov-1 error Provenance.agent Who and onBehalfOf cannot be the same who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2 error Provenance.agent If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3 error Provenance.agent If who is an organization, onBehalfOf can't be a PractitionerRole within that organization who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

This structure is derived from Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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 0..0 Language of the resource content
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... target 1..1 Reference(AHD trustee (RelatedPerson)) Target Reference(s) (usually version specific)
... occurred[x] 1..1 dateTime When the activity occurred
... recorded 0..0 When the activity was recorded / updated
... policy 0..0 Policy or plan the activity was defined by
... location 0..0 Where the activity occurred, if relevant
... authorization 0..0 Authorization (purposeOfUse) related to the event
... activity 0..0 Activity that occurred
... basedOn 0..0 Workflow authorization within which this event occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
... encounter 0..0 Encounter within which this event occurred or which the event is tightly associated
... agent 1..1 BackboneElement Actor involved
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... type 0..0 How the agent participated
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... id 0..0 Unique id for inter-element referencing
..... extension 0..0 Extension
..... coding 1..1 Coding Code defined by a terminology system
Required Pattern: At least the following
...... id 0..0 Unique id for inter-element referencing
...... extension 0..0 Extension
...... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... version 0..0 Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
...... userSelected 0..0 If this coding was chosen directly by the user
..... text 0..0 Plain text representation of the concept
.... who 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
.... onBehalfOf 0..0 The agent that delegated
... entity 0..1 BackboneElement An entity used in this activity
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... role 1..1 code revision | quotation | source | instantiates | removal
Required Pattern: source
.... what 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity
.... agent 0..0 Entity is attributed to this agent
... signature 0..0 Signature on target

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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
... 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
... occurred[x] 1..1 dateTime When the activity occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
... agent ΣC 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
...... extension 0..0 Extension
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... code ΣC 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
...... display ΣC 0..1 string Representation defined by the system
.... who ΣC 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
... entity Σ 0..1 BackboneElement An entity used in this activity
.... role Σ 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source
.... what Σ 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG
Provenance.entity.role Base required Provenance Entity Role 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Provenance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Provenance 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 Provenance 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 Provenance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Provenance 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())
prov-1 error Provenance.agent Who and onBehalfOf cannot be the same who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2 error Provenance.agent If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3 error Provenance.agent If who is an organization, onBehalfOf can't be a PractitionerRole within that organization who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... target Σ 1..1 Reference(AHD trustee (RelatedPerson)) Target Reference(s) (usually version specific)
... occurred[x] 1..1 dateTime When the activity occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
...... display 0..1 string Representation defined by the system
...... extension 0..0 Extension
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... code ΣC 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
.... who ΣC 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
... entity Σ 0..1 BackboneElement An entity used in this activity
.... role Σ 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source
.... what Σ 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG
Provenance.entity.role Base required Provenance Entity Role 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Provenance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Provenance 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 Provenance 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 Provenance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Provenance 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())
prov-1 error Provenance.agent Who and onBehalfOf cannot be the same who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2 error Provenance.agent If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3 error Provenance.agent If who is an organization, onBehalfOf can't be a PractitionerRole within that organization who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

Differential View

This structure is derived from Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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 0..0 Language of the resource content
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... target 1..1 Reference(AHD trustee (RelatedPerson)) Target Reference(s) (usually version specific)
... occurred[x] 1..1 dateTime When the activity occurred
... recorded 0..0 When the activity was recorded / updated
... policy 0..0 Policy or plan the activity was defined by
... location 0..0 Where the activity occurred, if relevant
... authorization 0..0 Authorization (purposeOfUse) related to the event
... activity 0..0 Activity that occurred
... basedOn 0..0 Workflow authorization within which this event occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
... encounter 0..0 Encounter within which this event occurred or which the event is tightly associated
... agent 1..1 BackboneElement Actor involved
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... type 0..0 How the agent participated
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... id 0..0 Unique id for inter-element referencing
..... extension 0..0 Extension
..... coding 1..1 Coding Code defined by a terminology system
Required Pattern: At least the following
...... id 0..0 Unique id for inter-element referencing
...... extension 0..0 Extension
...... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... version 0..0 Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
...... userSelected 0..0 If this coding was chosen directly by the user
..... text 0..0 Plain text representation of the concept
.... who 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
.... onBehalfOf 0..0 The agent that delegated
... entity 0..1 BackboneElement An entity used in this activity
.... id 0..0 Unique id for inter-element referencing
.... extension 0..0 Extension
.... modifierExtension 0..0 Extension
.... role 1..1 code revision | quotation | source | instantiates | removal
Required Pattern: source
.... what 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity
.... agent 0..0 Entity is attributed to this agent
... signature 0..0 Signature on target

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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
... 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
... occurred[x] 1..1 dateTime When the activity occurred
... patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
... agent ΣC 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
.... role 1..1 CodeableConcept What the agents role was
Binding: PET allkirjastaja roll (required)
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
...... extension 0..0 Extension
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/extra-security-role-type
...... code ΣC 1..1 code Symbol in syntax defined by the system
Fixed Value: datasubject
...... display ΣC 0..1 string Representation defined by the system
.... who ΣC 1..1 Reference(AHD trustee (RelatedPerson)) The agent that participated in the event
... entity Σ 0..1 BackboneElement An entity used in this activity
.... role Σ 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source
.... what Σ 1..1 Reference(AHD trustee's signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required PET allkirjastaja roll 📦0.1.0 This IG
Provenance.entity.role Base required Provenance Entity Role 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Provenance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Provenance 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 Provenance 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 Provenance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Provenance 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())
prov-1 error Provenance.agent Who and onBehalfOf cannot be the same who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2 error Provenance.agent If who is a PractitionerRole, onBehalfOf can't reference the same Practitioner who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3 error Provenance.agent If who is an organization, onBehalfOf can't be a PractitionerRole within that organization who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

 

Other representations of profile: CSV, Excel, Schematron