Provenance Definitions
<a id="Provenance"></a>
Provenance
Who, What, When for a set of resources
Definition: Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which MAY impact security, privacy, and trust policies.
Comments: Some parties MAY be duplicated between the target resource and its provenance. For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance.
Aliases: History, Event, Activity
Cardinality: 0..*
Mappings: workflow=Event; rim=ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]; w3c.prov=Activity; w5=infrastructure.information
<a id="Provenance.target"></a>
Provenance.target
Target Reference(s) (usually version specific)
Definition: The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity.
Comments: Target references are usually version specific, but might not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource might not be known (especially not the version specific one); the client MAY either submit the resource first, and then the provenance, or it MAY submit both using a single transaction. See the notes on transaction for further discussion.
Cardinality: 1..*
Type: Reference(Resource)
Summary: true
Mappings: w5=FiveWs.what[x]; rim=./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target OR ./participation[isNormalParticipation() and typeCode=SBJ]/role OR ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player; fhirauditevent=AuditEvent.entity.reference; w3c.prov=Entity Created/Updated
<a id="Provenance.occurred[x]"></a>
Provenance.occurred[x]
When the activity occurred
Definition: The period during which the activity occurred.
Comments: The period can be a little arbitrary; where possible, the time SHOULD correspond to human assessment of the activity time.
Cardinality: 0..1
Summary: true
Mappings: workflow=Event.occurrence; w5=FiveWs.done[x]; rim=./effectiveTime[type=IVL_TS]; w3c.prov=Activity.startTime & Activity.endTime
<a id="Provenance.recorded"></a>
Provenance.recorded
When the activity was recorded / updated
Definition: The date and time at which the provenance information was recorded / updated, whether in the FHIR Provenance resource or in some other form that is later communicated in the FHIR Provenance.
Comments: This can be a little different from the lastUpdated on the Provenance resource if there is a delay between recording the event and updating the provenance and target resource.
Cardinality: 0..1
Type: instant
Summary: true
Mappings: w5=FiveWs.recorded; rim=unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS]); fhirauditevent=AuditEvent.recorded
<a id="Provenance.policy"></a>
Provenance.policy
Policy or plan the activity was defined by
Definition: Policy or plan the activity was defined by. Typically, a single activity MAY have multiple applicable policy documents, such as patient consent, guarantor funding, etc.
Comments: For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element.
Cardinality: 0..*
Type: uri
Mappings: rim=./inboundRelationship[isNormalActRelationship() and typeCode="SUBJ"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel; fhirauditevent=AuditEvent.agent.policy
<a id="Provenance.location"></a>
Provenance.location
Where the activity occurred
Definition: Where the activity occurred.
Cardinality: 0..1
Type: Reference(Location)
Mappings: workflow=Event.location; w5=FiveWs.where[x]; rim=unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode="LOC" and determinerCode="INST"]; fhirauditevent=AuditEvent.agent.location; w3c.prov=Activity.location
<a id="Provenance.authorization"></a>
Provenance.authorization
Authorization (purposeOfUse) related to the event
Definition: The authorization (e.g., PurposeOfUse) that was used during the event being recorded.
Requirements: Record of any relevant security context, not restricted to purposeOfUse valueSet. May include security compartments, refrain, obligation, or other security tags.
Aliases: PurposeOfEvent
Cardinality: 0..*
Type: CodeableReference
Binding: example:v3-PurposeOfUse
Mappings: workflow=Event.reason; w5=FiveWs.why[x]; rim=unique(./reasonCode); fhirauditevent=AuditEvent.purposeOfEvent
<a id="Provenance.why"></a>
Provenance.why
Why was the event performed?
Definition: Describes why the event recorded in this provenenace occurred in textual form.
Aliases: reason
Cardinality: 0..1
Type: markdown
Mappings: workflow=Event.reason; w5=FiveWs.why[x]; rim=unique(./reasonCode); w3c.prov=Activity.Activity
<a id="Provenance.activity"></a>
Provenance.activity
Activity that occurred
Definition: An activity is something that occurs over a period of time and acts upon or with entities; it MAY include consuming, processing, transforming, modifying, relocating, using, or generating entities.
Cardinality: 0..1
Type: CodeableConcept
Binding: example:provenance-activity-type
Summary: true
Mappings: workflow=Event.code; w5=FiveWs.why[x]; rim=Act.code; fhirauditevent=AuditEvent.code; w3c.prov=Activity.Activity
<a id="Provenance.basedOn"></a>
Provenance.basedOn
Workflow authorization within which this event occurred
Definition: A plan, proposal or order that is fulfilled in whole or in part by this provenance.
Requirements: Allows tracing of authorization for the provenance and tracking whether proposals/recommendations were acted upon.
Cardinality: 0..*
Type: Reference(Resource)
Mappings: workflow=Event.basedOn; w5=FiveWs.why[x]; rim=Act.code; w3c.prov=Activity.Activity
<a id="Provenance.patient"></a>
Provenance.patient
The patient is the subject of the data created/updated (.target) by the activity
Definition: The patient element is available to enable deterministic tracking of activities that involve the patient as the subject of the data used in an activity.
Requirements: When the .patient is populated it SHALL be accurate to the subject of the target data. The .patient SHALL NOT be populated when the target data created/updated (.target) by the activity does not involve a subject. Note that when the patient is an agent, they will be recorded as an agent. When the Patient resource is Created, Updated, or Deleted it will be recorded as an entity. May also affect access control.
Cardinality: 0..1
Type: Reference(Patient)
Summary: true
Mappings: workflow=Event.subject; w5=FiveWs.subject; rim=participation[typeCode=RTGT]; w3c.prov=Entity.Identity
<a id="Provenance.encounter"></a>
Provenance.encounter
Encounter within which this event occurred or which the event is tightly associated
Definition: This will typically be the encounter the event occurred, but some events MAY be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).
Comments: This will typically be the encounter the provenance was created during, but some provenances MAY be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).
Requirements: Links the provenance to the Encounter context. May also affect access control.
Cardinality: 0..1
Type: Reference(Encounter)
Mappings: workflow=Event.encounter; w5=FiveWs.context; rim=Act.code; w3c.prov=Activity.Activity
<a id="Provenance.agent"></a>
Provenance.agent
Actor involved
Definition: An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.
Comments: Several agents MAY be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.
Requirements: An agent can be a person, an organization, software, device, or other entities that MAY be ascribed responsibility.
Cardinality: 1..*
Type: BackboneElement
Summary: true
Constraints: prov-1 | error | Who and onBehalfOf cannot be the same | who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve(); prov-2 | error | 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 | 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(); prov-4 | error | If who is an organization, onBehalfOf can't be a healthcare service within that organization | who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(HealthcareService).providedBy.resolve().exists() implies who.resolve() != onBehalfOf.resolve().ofType(HealthcareService).providedBy.resolve()
Mappings: workflow=Event.performer; w5=FiveWs.who; rim=./participation[isNormalParticipation()] OR ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']; fhirauditevent=AuditEvent.agent; w3c.prov=Agent
<a id="Provenance.agent.type"></a>
Provenance.agent.type
How the agent participated
Definition: The Functional Role of the agent with respect to the activity.
Comments: For example: assembler, author, prescriber, signer, investigator, etc.
Requirements: Functional roles reflect functional aspects of relationships between entities. Functional roles are bound to the realization/performance of acts, where actions might be concatenated to an activity or even to a process. This element will hold the functional role that the agent played in the activity that is the focus of this Provenance. Where an agent played multiple functional roles, they will be listed as multiple .agent elements representing each functional participation. See ISO 21298:2018 - Health Informatics - Functional and structural roles, and ISO 22600-2:2014 - Health Informatics - Privilege Management and Access Control - Part 2: formal models.
Cardinality: 0..1
Type: CodeableConcept
Binding: example:participation-role-type
Summary: true
Mappings: workflow=Event.performer.function; rim=.role; fhirauditevent=AuditEvent.agent.type; w3c.prov=Agent.Attribution
<a id="Provenance.agent.role"></a>
Provenance.agent.role
What the agents role was
Definition: The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.
Comments: For example: Chief-of-Radiology, Nurse, Physician, Medical-Student, etc.
Requirements: Structural roles reflect the structural aspects of relationships between entities. Structural roles describe prerequisites, feasibilities, or competences for acts. Functional roles reflect functional aspects of relationships between entities. Functional roles are bound to the realization/performance of acts, where actions might be concatenated to an activity or even to a process. See ISO 21298:2018 - Health Informatics - Functional and structural roles, and ISO 22600-2:2014 - Health Informatics - Privilege Management and Access Control - Part 2: formal models..
Cardinality: 0..*
Type: CodeableConcept
Binding: example:security-role-type-example
Mappings: rim=.typecode; fhirauditevent=AuditEvent.agent.role
<a id="Provenance.agent.who"></a>
Provenance.agent.who
The agent that participated in the event
Definition: Indicates who or what performed in the event.
Conditions: prov-1, prov-2, prov-3, prov-4
Cardinality: 1..1
Type: Reference(Practitioner, PractitionerRole, Organization, CareTeam, Patient, Device, RelatedPerson, Group, HealthcareService)
Summary: true
Mappings: workflow=Event.performer.actor; w5=FiveWs.author, FiveWs.source, FiveWs.actor, FiveWs.cause, FiveWs.witness, FiveWs.who; rim=.id
<a id="Provenance.agent.onBehalfOf"></a>
Provenance.agent.onBehalfOf
The agent that delegated
Definition: The agent that delegated authority to perform the activity performed by the agent.who element.
Conditions: prov-1, prov-2, prov-3, prov-4
Cardinality: 0..1
Type: Reference(Practitioner, PractitionerRole, Organization, CareTeam, Patient, Group, HealthcareService)
Mappings: rim=Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopesRole and *.plays [Role.Code]
<a id="Provenance.entity"></a>
Provenance.entity
An entity used in this activity
Definition: An entity used in this activity.
Cardinality: 0..*
Type: BackboneElement
Summary: true
Mappings: rim=./subjectOf; fhirauditevent=AuditEvent.entity; w3c.prov=Entity
<a id="Provenance.entity.role"></a>
Provenance.entity.role
revision | quotation | source | instantiates | removal
Definition: How the entity was used during the activity.
Meaning if Missing: No role declared or available.
Cardinality: 1..1
Type: code
Binding: required:provenance-entity-role
Summary: true
Mappings: rim=./typeCode; fhirauditevent=AuditEvent.entity.role; w3c.prov=Entity.role
<a id="Provenance.entity.what"></a>
Provenance.entity.what
Identity of entity
Definition: Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative.
Comments: The what.identifier SHOULD be used for entities that are not a Resource type.
Cardinality: 1..1
Type: Reference(Resource)
Summary: true
Mappings: rim=./text/reference; fhirauditevent=AuditEvent.entity.reference; w3c.prov=Entity.Identity
<a id="Provenance.entity.agent"></a>
Provenance.entity.agent
Entity is attributed to this agent
Definition: The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which used the entity.
Comments: A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it. This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 V2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity.
Cardinality: 0..*
Mappings: rim=./author/role; fhirauditevent=AuditEvent.entity.agent
<a id="Provenance.signature"></a>
Provenance.signature
Signature on target
Definition: A digital signature on the target Reference(s). The signer SHOULD match a Provenance.agent. The purpose of the signature is indicated.
Cardinality: 0..*
Type: Signature
Mappings: rim=./signatureText