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/ahd-counseling-hcp | Version: 0.1.0 | |||
| Draft as of 2026-04-02 | Computable Name: AHDCounselingHCP | |||
Tervishoiutöötaja roll, kes viib läbi PET nõustamise. Peab olema arst.
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..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | Identifier | Identifiers for a role/location |
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() |
Σ | 1..1 | Reference(Practitioner) | Practitioner that provides services for the organization |
![]() ![]() |
Σ | 1..1 | Reference(Organization) | Organization where the roles are available |
![]() ![]() |
Σ | 1..1 | CodeableConcept | Specific specialty of the practitioner Binding: PracticeSettingCodeValueSet (preferred): Specific specialty associated with the agency. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| PractitionerRole.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| PractitionerRole.specialty | Base | preferred | Practice Setting Code Value Set | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
| dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | PractitionerRole | 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 | PractitionerRole | 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 | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | PractitionerRole | 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 PractitionerRole
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor |
![]() ![]() |
1..1 | Identifier | Identifiers for a role/location | |
![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() |
1..1 | Reference(Practitioner) | Practitioner that provides services for the organization | |
![]() ![]() |
1..1 | Reference(Organization) | Organization where the roles are available | |
![]() ![]() |
1..1 | CodeableConcept | Specific specialty of the practitioner | |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | Identifier | Identifiers for a role/location | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..1 | boolean | Whether this practitioner role record is in active use | ||||
![]() ![]() |
Σ | 0..1 | Period | The period during which the practitioner is authorized to perform in these role(s) | ||||
![]() ![]() |
Σ | 1..1 | Reference(Practitioner) | Practitioner that provides services for the organization | ||||
![]() ![]() |
Σ | 1..1 | Reference(Organization) | Organization where the roles are available | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Roles which this practitioner may perform Binding: PractitionerRole (example): The role a person plays representing an organization. | ||||
![]() ![]() |
Σ | 1..1 | CodeableConcept | Specific specialty of the practitioner Binding: PracticeSettingCodeValueSet (preferred): Specific specialty associated with the agency. | ||||
![]() ![]() |
Σ | 0..* | Reference(Location) | Location(s) where the practitioner provides care | ||||
![]() ![]() |
0..* | Reference(HealthcareService) | Healthcare services provided for this role's Organization/Location(s) | |||||
![]() ![]() |
0..* | ExtendedContactDetail | Official contact details relating to this PractitionerRole | |||||
![]() ![]() |
0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility). | |||||
![]() ![]() |
0..* | CodeableConcept | A language the practitioner (in this role) can use in patient communication Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..* | Availability | Times the Practitioner is available at this location and/or healthcare service (including exceptions) | |||||
![]() ![]() |
0..* | Reference(Endpoint) | Endpoints for interacting with the practitioner in this role | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| PractitionerRole.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| PractitionerRole.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| PractitionerRole.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| PractitionerRole.code | Base | example | Practitioner Role | 📍5.0.0 | FHIR Std. |
| PractitionerRole.specialty | Base | preferred | Practice Setting Code Value Set | 📍5.0.0 | FHIR Std. |
| PractitionerRole.characteristic | Base | example | Service Mode | 📍5.0.0 | FHIR Std. |
| PractitionerRole.communication | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
| dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | PractitionerRole | 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 | PractitionerRole | 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 | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | PractitionerRole | 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 PractitionerRole
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | Identifier | Identifiers for a role/location |
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . |
![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() |
Σ | 1..1 | Reference(Practitioner) | Practitioner that provides services for the organization |
![]() ![]() |
Σ | 1..1 | Reference(Organization) | Organization where the roles are available |
![]() ![]() |
Σ | 1..1 | CodeableConcept | Specific specialty of the practitioner Binding: PracticeSettingCodeValueSet (preferred): Specific specialty associated with the agency. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| PractitionerRole.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| PractitionerRole.specialty | Base | preferred | Practice Setting Code Value Set | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
| dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | PractitionerRole | 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 | PractitionerRole | 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 | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | PractitionerRole | 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 PractitionerRole
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor |
![]() ![]() |
1..1 | Identifier | Identifiers for a role/location | |
![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() |
1..1 | Reference(Practitioner) | Practitioner that provides services for the organization | |
![]() ![]() |
1..1 | Reference(Organization) | Organization where the roles are available | |
![]() ![]() |
1..1 | CodeableConcept | Specific specialty of the practitioner | |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | PractitionerRole | Roles/organizations the practitioner is associated with Constraints: ahd-counselor-must-be-doctor | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | Identifier | Identifiers for a role/location | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..1 | boolean | Whether this practitioner role record is in active use | ||||
![]() ![]() |
Σ | 0..1 | Period | The period during which the practitioner is authorized to perform in these role(s) | ||||
![]() ![]() |
Σ | 1..1 | Reference(Practitioner) | Practitioner that provides services for the organization | ||||
![]() ![]() |
Σ | 1..1 | Reference(Organization) | Organization where the roles are available | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Roles which this practitioner may perform Binding: PractitionerRole (example): The role a person plays representing an organization. | ||||
![]() ![]() |
Σ | 1..1 | CodeableConcept | Specific specialty of the practitioner Binding: PracticeSettingCodeValueSet (preferred): Specific specialty associated with the agency. | ||||
![]() ![]() |
Σ | 0..* | Reference(Location) | Location(s) where the practitioner provides care | ||||
![]() ![]() |
0..* | Reference(HealthcareService) | Healthcare services provided for this role's Organization/Location(s) | |||||
![]() ![]() |
0..* | ExtendedContactDetail | Official contact details relating to this PractitionerRole | |||||
![]() ![]() |
0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility). | |||||
![]() ![]() |
0..* | CodeableConcept | A language the practitioner (in this role) can use in patient communication Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..* | Availability | Times the Practitioner is available at this location and/or healthcare service (including exceptions) | |||||
![]() ![]() |
0..* | Reference(Endpoint) | Endpoints for interacting with the practitioner in this role | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| PractitionerRole.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| PractitionerRole.identifier.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| PractitionerRole.identifier.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| PractitionerRole.code | Base | example | Practitioner Role | 📍5.0.0 | FHIR Std. |
| PractitionerRole.specialty | Base | preferred | Practice Setting Code Value Set | 📍5.0.0 | FHIR Std. |
| PractitionerRole.characteristic | Base | example | Service Mode | 📍5.0.0 | FHIR Std. |
| PractitionerRole.communication | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ahd-counselor-must-be-doctor | error | PractitionerRole | Nõustamist teostav tervishoiu töötaja peab olema arst. PractitionerRole.identifier.valuepeab algama väärtusega 'D'. |
identifier.exists() and identifier.value.exists() and identifier.value.matches('^D.*')
|
| dom-2 | error | PractitionerRole | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | PractitionerRole | 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 | PractitionerRole | 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 | PractitionerRole | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | PractitionerRole | 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 PractitionerRole
Other representations of profile: CSV, Excel, Schematron