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-ahd/ and changes regularly. See the Directory of published versions

Resource Profile: AHD signature data (Provenance)

Official URL: https://fhir.ee/ahd/StructureDefinition/ahd-signature-provenance Version: 0.1.0
Draft as of 2026-10-25 Computable Name: AHDSignatureProvenance

Data about the signing process of the AHD questionnaire response. Provides info about when the signing occurred, whether the signer was the patient or a capable witness and the signature itself.

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: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.target This element is included in summaries. 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.agent This element is included in summaries. C 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.code This element is included in summaries. C 1..1 code Symbol in syntax defined by the system
Provenance.agent.who This element is included in summaries. C 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf C 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity This element is included in summaries. 0..1 BackboneElement An entity used in this activity
Provenance.entity.role This element is included in summaries. 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source (extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(AHD response signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required AHD signer role value set 📦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: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.meta
Provenance.meta.id 0..0 Unique id for inter-element referencing
Provenance.meta.extension 0..0 Extension
Provenance.meta.lastUpdated 0..1 instant Paberil allkirjastatud PETi kehtivuse alguse aeg
Provenance.meta.source 0..0 Identifies where the resource comes from
Provenance.meta.profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.meta.security 0..0 Security Labels applied to this resource
Provenance.meta.tag 0..0 Tags applied to this resource
Provenance.implicitRules 0..0 A set of rules under which this content was created
Provenance.language 0..0 Language of the resource content
Provenance.extension 0..0 Extension
Provenance.modifierExtension 0..0 Extension
Provenance.target 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.recorded 0..0 When the activity was recorded / updated
Provenance.policy 0..0 Policy or plan the activity was defined by
Provenance.location 0..0 Where the activity occurred, if relevant
Provenance.authorization 0..0 Authorization (purposeOfUse) related to the event
Provenance.activity 0..0 Activity that occurred
Provenance.basedOn 0..0 Workflow authorization within which this event occurred
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.encounter 0..0 Encounter within which this event occurred or which the event is tightly associated
Provenance.agent 1..1 BackboneElement Actor involved
Provenance.agent.id 0..0 Unique id for inter-element referencing
Provenance.agent.extension 0..0 Extension
Provenance.agent.modifierExtension 0..0 Extension
Provenance.agent.type 0..0 How the agent participated
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.id 0..0 Unique id for inter-element referencing
Provenance.agent.role.extension 0..0 Extension
Provenance.agent.role.coding 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.id 0..0 Unique id for inter-element referencing
Provenance.agent.role.coding.extension 0..0 Extension
Provenance.agent.role.coding.system 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.version 0..0 Version of the system - if relevant
Provenance.agent.role.coding.code 1..1 code Symbol in syntax defined by the system
Provenance.agent.role.coding.userSelected 0..0 If this coding was chosen directly by the user
Provenance.agent.role.text 0..0 Plain text representation of the concept
Provenance.agent.who 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity 0..1 BackboneElement An entity used in this activity
Provenance.entity.id 0..0 Unique id for inter-element referencing
Provenance.entity.extension 0..0 Extension
Provenance.entity.modifierExtension 0..0 Extension
Provenance.entity.role 1..1 code revision | quotation | source | instantiates | removal
Required Pattern: source (extensions allowed)
Provenance.entity.what 1..1 Reference(AHD response signature (Binary)) Identity of entity
Provenance.entity.agent 0..0 Entity is attributed to this agent
Provenance.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 AHD signer role value set 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.id This element is included in summaries. 0..1 id Logical id of this artifact
Provenance.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Provenance.meta.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Provenance.meta.lastUpdated This element is included in summaries. 0..1 instant Paberil allkirjastatud PETi kehtivuse alguse aeg
Provenance.meta.profile This element is included in summaries. 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.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
Provenance.target This element is included in summaries. 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.agent This element is included in summaries. C 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.code This element is included in summaries. C 1..1 code Symbol in syntax defined by the system
Provenance.agent.role.coding.display This element is included in summaries. C 0..1 string Representation defined by the system
Provenance.agent.who This element is included in summaries. C 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf C 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity This element is included in summaries. 0..1 BackboneElement An entity used in this activity
Provenance.entity.role This element is included in summaries. 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source (extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(AHD response signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required AHD signer role value set 📦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: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.target This element is included in summaries. 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.agent This element is included in summaries. C 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.code This element is included in summaries. C 1..1 code Symbol in syntax defined by the system
Provenance.agent.who This element is included in summaries. C 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf C 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity This element is included in summaries. 0..1 BackboneElement An entity used in this activity
Provenance.entity.role This element is included in summaries. 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source (extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(AHD response signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required AHD signer role value set 📦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: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.meta
Provenance.meta.id 0..0 Unique id for inter-element referencing
Provenance.meta.extension 0..0 Extension
Provenance.meta.lastUpdated 0..1 instant Paberil allkirjastatud PETi kehtivuse alguse aeg
Provenance.meta.source 0..0 Identifies where the resource comes from
Provenance.meta.profile 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.meta.security 0..0 Security Labels applied to this resource
Provenance.meta.tag 0..0 Tags applied to this resource
Provenance.implicitRules 0..0 A set of rules under which this content was created
Provenance.language 0..0 Language of the resource content
Provenance.contained 0..0 Contained, inline Resources
Provenance.extension 0..0 Extension
Provenance.modifierExtension 0..0 Extension
Provenance.target 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.recorded 0..0 When the activity was recorded / updated
Provenance.policy 0..0 Policy or plan the activity was defined by
Provenance.location 0..0 Where the activity occurred, if relevant
Provenance.authorization 0..0 Authorization (purposeOfUse) related to the event
Provenance.activity 0..0 Activity that occurred
Provenance.basedOn 0..0 Workflow authorization within which this event occurred
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.encounter 0..0 Encounter within which this event occurred or which the event is tightly associated
Provenance.agent 1..1 BackboneElement Actor involved
Provenance.agent.id 0..0 Unique id for inter-element referencing
Provenance.agent.extension 0..0 Extension
Provenance.agent.modifierExtension 0..0 Extension
Provenance.agent.type 0..0 How the agent participated
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.id 0..0 Unique id for inter-element referencing
Provenance.agent.role.extension 0..0 Extension
Provenance.agent.role.coding 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.id 0..0 Unique id for inter-element referencing
Provenance.agent.role.coding.extension 0..0 Extension
Provenance.agent.role.coding.system 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.version 0..0 Version of the system - if relevant
Provenance.agent.role.coding.code 1..1 code Symbol in syntax defined by the system
Provenance.agent.role.coding.userSelected 0..0 If this coding was chosen directly by the user
Provenance.agent.role.text 0..0 Plain text representation of the concept
Provenance.agent.who 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity 0..1 BackboneElement An entity used in this activity
Provenance.entity.id 0..0 Unique id for inter-element referencing
Provenance.entity.extension 0..0 Extension
Provenance.entity.modifierExtension 0..0 Extension
Provenance.entity.role 1..1 code revision | quotation | source | instantiates | removal
Required Pattern: source (extensions allowed)
Provenance.entity.what 1..1 Reference(AHD response signature (Binary)) Identity of entity
Provenance.entity.agent 0..0 Entity is attributed to this agent
Provenance.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 AHD signer role value set 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Who, What, When for a set of resources
Provenance.id This element is included in summaries. 0..1 id Logical id of this artifact
Provenance.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Provenance.meta.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Provenance.meta.lastUpdated This element is included in summaries. 0..1 instant Paberil allkirjastatud PETi kehtivuse alguse aeg
Provenance.meta.profile This element is included in summaries. 1..1 canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.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
Provenance.target This element is included in summaries. 1..1 Reference(AHD content (QuestionnaireResponse)) Target Reference(s) (usually version specific)
Provenance.occurred[x] 1..1 dateTime Digiallkirjastatud PET kehtivuse alguse aeg
Provenance.patient 1..1 Reference(EE MPI Patient Verified) The patient is the subject of the data created/updated (.target) by the activity
Provenance.agent This element is included in summaries. C 1..1 BackboneElement Actor involved
Constraints: prov-1, prov-2, prov-3
Provenance.agent.role 1..1 CodeableConcept What the agents role was
Binding: AHD signer role value set (required)
Provenance.agent.role.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.agent.role.coding.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Provenance.agent.role.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.agent.role.coding.code This element is included in summaries. C 1..1 code Symbol in syntax defined by the system
Provenance.agent.role.coding.display This element is included in summaries. C 0..1 string Representation defined by the system
Provenance.agent.who This element is included in summaries. C 1..1 Reference(EE MPI Patient Verified | AHD witness (RelatedPerson)) The agent that participated in the event
Provenance.agent.onBehalfOf C 0..1 Reference(EE MPI Patient Verified) The agent that delegated
Provenance.entity This element is included in summaries. 0..1 BackboneElement An entity used in this activity
Provenance.entity.role This element is included in summaries. 1..1 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Required Pattern: source (extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(AHD response signature (Binary)) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.agent.role Base required AHD signer role value set 📦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