Projo FHIR Documentation
0.1.0 - ci-build Switzerland flag

Projo FHIR Documentation - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Projo Provenance ( Experimental )

Official URL: https://projo.evoleen.com/fhir/StructureDefinition/projo-provenance Version: 0.1.0
Draft as of 2024-01-01 Computable Name: ProjoProvenance

Copyright/Legal: Copyright (c) Projo. Licensed under CC0-1.0 (public domain dedication). FHIR(R) is the registered trademark of HL7 and is used with permission. This IG references WhatsApp(R), a trademark of Meta Platforms, Inc., for descriptive purposes only.

Idempotency + audit anchor for SDC extraction and clinical routing. FHIR R4 Provenance has no identifier, so the meta.tag + entity[0].what (QR reference) combination is the idempotency key. Two tag systems: extraction-provenance sdc-extraction (for $extract) and routing-provenance clinical-routing (for routing decisions). activity is always DERIVE (v3-DataOperation).

Documentation-only artifact. Projo's runtime extensions, code systems, identifier systems and search parameter are TypeScript constants and bootstrap-time resources, NOT deployed StructureDefinitions. This StructureDefinition exists to document the contract; the source of truth is src/functions/src/lib/fhir/types.ts and docs/FHIR_EXTENSIONS.md.

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 Extraction/routing idempotency anchor
Provenance.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Provenance.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Provenance.target This element is included in summaries. 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.recorded This element is included in summaries. 1..1 instant When the activity was recorded / updated
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Binding: ProvenanceActivityType (extensible): The activity that took place.
Provenance.activity.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.agent 1..* BackboneElement projo orchestrator
Provenance.agent.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.agent.who This element is included in summaries. 1..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who participated
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.entity.role This element is included in summaries. 1..1 code derivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Fixed Value: source (no extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(Resource) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.activity Base extensible Provenance activity type 📍4.0.1 FHIR Std.
Provenance.entity.role Base required ProvenanceEntityRole 📍4.0.1 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Extraction/routing idempotency anchor
Provenance.meta
Provenance.meta.tag 1..1 Coding extraction-provenance|sdc-extraction OR routing-provenance|clinical-routing
Provenance.meta.tag.system 1..1 uri Identity of the terminology system
Provenance.meta.tag.code 1..1 code Symbol in syntax defined by the system
Provenance.target 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Provenance.activity.coding 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.code 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.role 1..1 code derivation | revision | quotation | source | removal
Fixed Value: source (no extensions allowed)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Extraction/routing idempotency anchor
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.id 0..1 string Unique id for inter-element referencing
Provenance.meta.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
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 When the resource version last changed
Provenance.meta.source This element is included in summaries. 0..1 uri Identifies where the resource comes from
Provenance.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
Provenance.meta.tag This element is included in summaries. 1..1 Coding extraction-provenance|sdc-extraction OR routing-provenance|clinical-routing
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Provenance.meta.tag.id 0..1 string Unique id for inter-element referencing
Provenance.meta.tag.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.meta.tag.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.meta.tag.version This element is included in summaries. 0..1 string Version of the system - if relevant
Provenance.meta.tag.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Provenance.meta.tag.display This element is included in summaries. 0..1 string Representation defined by the system
Provenance.meta.tag.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Provenance.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Provenance.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
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.contained 0..* Resource Contained, inline Resources
Provenance.extension 0..* Extension Additional content defined by implementations
Provenance.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Provenance.target This element is included in summaries. 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.occurred[x] 0..1 When the activity occurred
Provenance.occurred[x].occurredPeriod Period
Provenance.occurred[x].occurredDateTime dateTime
Provenance.recorded This element is included in summaries. 1..1 instant When the activity was recorded / updated
Provenance.policy 0..* uri Policy or plan the activity was defined by
Provenance.location 0..1 Reference(Location) Where the activity occurred, if relevant
Provenance.reason 0..* CodeableConcept Reason the activity is occurring
Binding: PurposeOfUse (extensible): The reason the activity took place.
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Binding: ProvenanceActivityType (extensible): The activity that took place.
Provenance.activity.id 0..1 string Unique id for inter-element referencing
Provenance.activity.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.activity.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.id 0..1 string Unique id for inter-element referencing
Provenance.activity.coding.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.activity.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.version This element is included in summaries. 0..1 string Version of the system - if relevant
Provenance.activity.coding.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.activity.coding.display This element is included in summaries. 0..1 string Representation defined by the system
Provenance.activity.coding.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Provenance.activity.text This element is included in summaries. 0..1 string Plain text representation of the concept
Provenance.agent 1..* BackboneElement projo orchestrator
Provenance.agent.id 0..1 string Unique id for inter-element referencing
Provenance.agent.extension 0..* Extension Additional content defined by implementations
Provenance.agent.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.agent.type This element is included in summaries. 0..1 CodeableConcept How the agent participated
Binding: ProvenanceParticipantType (extensible): The type of participation that a provenance agent played with respect to the activity.
Provenance.agent.role 0..* CodeableConcept What the agents role was
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
Provenance.agent.who This element is included in summaries. 1..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who participated
Provenance.agent.onBehalfOf 0..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who the agent is representing
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.id 0..1 string Unique id for inter-element referencing
Provenance.entity.extension 0..* Extension Additional content defined by implementations
Provenance.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.entity.role This element is included in summaries. 1..1 code derivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Fixed Value: source (no extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(Resource) Identity of entity
Provenance.entity.agent 0..* See agent (Provenance) Entity is attributed to this agent
Provenance.signature 0..* Signature Signature on target

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Provenance.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Provenance.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Provenance.reason Base extensible PurposeOfUse 📦3.1.0 THO v6.5
Provenance.activity Base extensible Provenance activity type 📍4.0.1 FHIR Std.
Provenance.agent.type Base extensible Provenance participant type 📍4.0.1 FHIR Std.
Provenance.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
Provenance.entity.role Base required ProvenanceEntityRole 📍4.0.1 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Provenance

Summary

Mandatory: 5 elements(3 nested mandatory elements)
Fixed: 3 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Extraction/routing idempotency anchor
Provenance.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Provenance.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Provenance.target This element is included in summaries. 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.recorded This element is included in summaries. 1..1 instant When the activity was recorded / updated
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Binding: ProvenanceActivityType (extensible): The activity that took place.
Provenance.activity.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.agent 1..* BackboneElement projo orchestrator
Provenance.agent.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.agent.who This element is included in summaries. 1..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who participated
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.entity.role This element is included in summaries. 1..1 code derivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Fixed Value: source (no extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(Resource) Identity of entity

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.activity Base extensible Provenance activity type 📍4.0.1 FHIR Std.
Provenance.entity.role Base required ProvenanceEntityRole 📍4.0.1 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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())
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 Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Extraction/routing idempotency anchor
Provenance.meta
Provenance.meta.tag 1..1 Coding extraction-provenance|sdc-extraction OR routing-provenance|clinical-routing
Provenance.meta.tag.system 1..1 uri Identity of the terminology system
Provenance.meta.tag.code 1..1 code Symbol in syntax defined by the system
Provenance.target 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Provenance.activity.coding 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.code 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.agent 1..* BackboneElement projo orchestrator
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.role 1..1 code derivation | revision | quotation | source | removal
Fixed Value: source (no extensions allowed)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Provenance 0..* Provenance Extraction/routing idempotency anchor
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.id 0..1 string Unique id for inter-element referencing
Provenance.meta.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
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 When the resource version last changed
Provenance.meta.source This element is included in summaries. 0..1 uri Identifies where the resource comes from
Provenance.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Provenance.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
Provenance.meta.tag This element is included in summaries. 1..1 Coding extraction-provenance|sdc-extraction OR routing-provenance|clinical-routing
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Provenance.meta.tag.id 0..1 string Unique id for inter-element referencing
Provenance.meta.tag.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.meta.tag.system This element is included in summaries. 1..1 uri Identity of the terminology system
Provenance.meta.tag.version This element is included in summaries. 0..1 string Version of the system - if relevant
Provenance.meta.tag.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Provenance.meta.tag.display This element is included in summaries. 0..1 string Representation defined by the system
Provenance.meta.tag.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Provenance.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Provenance.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
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.contained 0..* Resource Contained, inline Resources
Provenance.extension 0..* Extension Additional content defined by implementations
Provenance.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Provenance.target This element is included in summaries. 1..* Reference(Resource) Extracted resources or routing outputs
Provenance.occurred[x] 0..1 When the activity occurred
Provenance.occurred[x].occurredPeriod Period
Provenance.occurred[x].occurredDateTime dateTime
Provenance.recorded This element is included in summaries. 1..1 instant When the activity was recorded / updated
Provenance.policy 0..* uri Policy or plan the activity was defined by
Provenance.location 0..1 Reference(Location) Where the activity occurred, if relevant
Provenance.reason 0..* CodeableConcept Reason the activity is occurring
Binding: PurposeOfUse (extensible): The reason the activity took place.
Provenance.activity 1..1 CodeableConcept DERIVE (v3-DataOperation)
Binding: ProvenanceActivityType (extensible): The activity that took place.
Provenance.activity.id 0..1 string Unique id for inter-element referencing
Provenance.activity.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.activity.coding This element is included in summaries. 1..1 Coding Code defined by a terminology system
Provenance.activity.coding.id 0..1 string Unique id for inter-element referencing
Provenance.activity.coding.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Provenance.activity.coding.system This element is included in summaries. 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-DataOperation (no extensions allowed)
Provenance.activity.coding.version This element is included in summaries. 0..1 string Version of the system - if relevant
Provenance.activity.coding.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Fixed Value: DERIVE (no extensions allowed)
Provenance.activity.coding.display This element is included in summaries. 0..1 string Representation defined by the system
Provenance.activity.coding.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Provenance.activity.text This element is included in summaries. 0..1 string Plain text representation of the concept
Provenance.agent 1..* BackboneElement projo orchestrator
Provenance.agent.id 0..1 string Unique id for inter-element referencing
Provenance.agent.extension 0..* Extension Additional content defined by implementations
Provenance.agent.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.agent.type This element is included in summaries. 0..1 CodeableConcept How the agent participated
Binding: ProvenanceParticipantType (extensible): The type of participation that a provenance agent played with respect to the activity.
Provenance.agent.role 0..* CodeableConcept What the agents role was
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
Provenance.agent.who This element is included in summaries. 1..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who participated
Provenance.agent.onBehalfOf 0..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) Who the agent is representing
Provenance.entity 1..1 BackboneElement Source QuestionnaireResponse (role=source, what=QR ref)
Provenance.entity.id 0..1 string Unique id for inter-element referencing
Provenance.entity.extension 0..* Extension Additional content defined by implementations
Provenance.entity.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Provenance.entity.role This element is included in summaries. 1..1 code derivation | revision | quotation | source | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
Fixed Value: source (no extensions allowed)
Provenance.entity.what This element is included in summaries. 1..1 Reference(Resource) Identity of entity
Provenance.entity.agent 0..* See agent (Provenance) Entity is attributed to this agent
Provenance.signature 0..* Signature Signature on target

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Provenance.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Provenance.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Provenance.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Provenance.reason Base extensible PurposeOfUse 📦3.1.0 THO v6.5
Provenance.activity Base extensible Provenance activity type 📍4.0.1 FHIR Std.
Provenance.agent.type Base extensible Provenance participant type 📍4.0.1 FHIR Std.
Provenance.agent.role Base example SecurityRoleType 📍4.0.1 FHIR Std.
Provenance.entity.role Base required ProvenanceEntityRole 📍4.0.1 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Provenance

Summary

Mandatory: 5 elements(3 nested mandatory elements)
Fixed: 3 elements

 

Other representations of profile: CSV, Excel, Schematron