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: Tunnistaja

Official URL: https://fhir.ee/ahd/StructureDefinition/ahd-witness Version: 0.1.0
Draft as of 2026-06-10 Computable Name: AHDWitness

Patsiendi poolt määratud tunnistaja (Person) PET tahteavalduse kontekstis.

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
.. Person 0..* Person A generic person record
... identifier Σ 1..* Identifier A human identifier for this person
... active ?!Σ 1..1 boolean This person's record is in active use
... name Σ 1..1 HumanName A name associated with the person

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Person.communication.​language Base required All Languages 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Person If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Person 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 Person 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 Person If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Person 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()

This structure is derived from Person

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Person 0..* Person A generic person record
... 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
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... identifier 1..* Identifier A human identifier for this person
... active 1..1 boolean This person's record is in active use
... name 1..1 HumanName A name associated with the person
... telecom 0..0 A contact detail for the person
... gender 0..0 male | female | other | unknown
... birthDate 0..0 The date on which the person was born
... deceased[x] 0..0 Indicates if the individual is deceased or not
... address 0..0 One or more addresses for the person
... maritalStatus 0..0 Marital (civil) status of a person
... photo 0..0 Image of the person
... communication 0..0 A language which may be used to communicate with the person about his or her health
... managingOrganization 0..0 The organization that is the custodian of the person record
... link 0..0 Link to a resource that concerns the same actual person

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Person 0..* Person A generic person record
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... identifier Σ 1..* Identifier A human identifier for this person
... name Σ 1..1 HumanName A name associated with the person

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Person.communication.​language Base required All Languages 📍5.0.0 FHIR Std.
Person.link.assurance Base required Identity Assurance Level 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Person If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Person 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 Person 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 Person If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Person 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()

This structure is derived from Person

Summary

Mandatory: 3 elements
Prohibited: 16 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Person 0..* Person A generic person record
... identifier Σ 1..* Identifier A human identifier for this person
... active ?!Σ 1..1 boolean This person's record is in active use
... name Σ 1..1 HumanName A name associated with the person

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Person.communication.​language Base required All Languages 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Person If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Person 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 Person 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 Person If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Person 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()

Differential View

This structure is derived from Person

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Person 0..* Person A generic person record
... 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
... extension 0..0 Extension
... modifierExtension 0..0 Extension
... identifier 1..* Identifier A human identifier for this person
... active 1..1 boolean This person's record is in active use
... name 1..1 HumanName A name associated with the person
... telecom 0..0 A contact detail for the person
... gender 0..0 male | female | other | unknown
... birthDate 0..0 The date on which the person was born
... deceased[x] 0..0 Indicates if the individual is deceased or not
... address 0..0 One or more addresses for the person
... maritalStatus 0..0 Marital (civil) status of a person
... photo 0..0 Image of the person
... communication 0..0 A language which may be used to communicate with the person about his or her health
... managingOrganization 0..0 The organization that is the custodian of the person record
... link 0..0 Link to a resource that concerns the same actual person

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Person 0..* Person A generic person record
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... identifier Σ 1..* Identifier A human identifier for this person
... name Σ 1..1 HumanName A name associated with the person

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Person.communication.​language Base required All Languages 📍5.0.0 FHIR Std.
Person.link.assurance Base required Identity Assurance Level 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Person If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Person 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 Person 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 Person If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Person 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()

This structure is derived from Person

Summary

Mandatory: 3 elements
Prohibited: 16 elements

 

Other representations of profile: CSV, Excel, Schematron