This page is part of the FHIR Specification (v1.0.2: DSTU 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
StructureDefinition for provenance
{ "resourceType": "StructureDefinition", "id": "Provenance", "meta": { "lastUpdated": "2015-10-24T07:41:03.495+11:00" }, "text": { "status": "generated", "div": "<div>!-- Snipped for Brevity --></div>" }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 } ], "url": "http://hl7.org/fhir/StructureDefinition/Provenance", "name": "Provenance", "status": "draft", "publisher": "Health Level Seven International (Security)", "contact": [ { "telecom": [ { "system": "other", "value": "http://hl7.org/fhir" } ] }, { "telecom": [ { "system": "other", "value": "http://www.hl7.org/Special/committees/secure/index.cfm" } ] } ], "date": "2015-10-24T07:41:03+11:00", "description": "Base StructureDefinition for Provenance Resource", "fhirVersion": "1.0.2", "mapping": [ { "identity": "w3c.prov", "uri": "http://www.w3.org/ns/prov", "name": "W3C PROV" }, { "identity": "rim", "uri": "http://hl7.org/v3", "name": "RIM" }, { "identity": "w5", "uri": "http://hl7.org/fhir/w5", "name": "W5 Mapping" }, { "identity": "fhirauditevent", "uri": "http://hl7.org/fhir/auditevent", "name": "FHIR AuditEvent" } ], "kind": "resource", "abstract": false, "base": "http://hl7.org/fhir/StructureDefinition/DomainResource", "snapshot": { "element": [ { "path": "Provenance", "short": "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.", "alias": [ "History", "Event", "Activity" ], "min": 0, "max": "*", "type": [ { "code": "DomainResource" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Activity" }, { "identity": "rim", "map": "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]" }, { "identity": "w5", "map": "infrastructure.information" } ] }, { "path": "Provenance.id", "short": "Logical id of this artifact", "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.", "min": 0, "max": "1", "type": [ { "code": "id" } ], "isSummary": true }, { "path": "Provenance.meta", "short": "Metadata about the resource", "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.", "min": 0, "max": "1", "type": [ { "code": "Meta" } ], "isSummary": true }, { "path": "Provenance.implicitRules", "short": "A set of rules under which this content was created", "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.", "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "path": "Provenance.language", "short": "Language of the resource content", "definition": "The base language in which the resource is written.", "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "min": 0, "max": "1", "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "A human language.", "valueSetUri": "http://tools.ietf.org/html/bcp47" } }, { "path": "Provenance.text", "short": "Text summary of the resource, for human interpretation", "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.", "alias": [ "narrative", "html", "xhtml", "display" ], "min": 0, "max": "1", "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ], "mapping": [ { "identity": "rim", "map": "Act.text?" } ] }, { "path": "Provenance.contained", "short": "Contained, inline Resources", "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.", "alias": [ "inline resources", "anonymous resources", "contained resources" ], "min": 0, "max": "*", "type": [ { "code": "Resource" } ], "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.modifierExtension", "short": "Extensions that cannot be ignored", "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "isModifier": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.target", "short": "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 may 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 may 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.", "min": 1, "max": "*", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.reference" }, { "identity": "w3c.prov", "map": "Entity Created/Updated" }, { "identity": "rim", "map": "./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target OR ./participation[isNormalParticipation() and typeCode=SBJ]/role OR ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player" }, { "identity": "w5", "map": "what" } ] }, { "path": "Provenance.period", "short": "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.", "min": 0, "max": "1", "type": [ { "code": "Period" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Activity.startTime & Activity.endTime" }, { "identity": "rim", "map": "./effectiveTime[type=IVL_TS]" }, { "identity": "w5", "map": "when.done" } ] }, { "path": "Provenance.recorded", "short": "When the activity was recorded / updated", "definition": "The instant of time at which the activity was recorded.", "comments": "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.", "min": 1, "max": "1", "type": [ { "code": "instant" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.dateTime" }, { "identity": "w3c.prov", "map": "Activity.when" }, { "identity": "rim", "map": "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])" }, { "identity": "w5", "map": "when.recorded" } ] }, { "path": "Provenance.reason", "short": "Reason the activity is occurring", "definition": "The reason that the activity was taking place.", "min": 0, "max": "*", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The reason the activity took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.purposeOfEvent" }, { "identity": "w3c.prov", "map": "Activity.Activity" }, { "identity": "rim", "map": "unique(./reasonCode)" }, { "identity": "w5", "map": "why" } ] }, { "path": "Provenance.activity", "short": "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.", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The activity that took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.purposeOfEvent" }, { "identity": "w3c.prov", "map": "Activity.Activity" }, { "identity": "rim", "map": "Act.code" }, { "identity": "w5", "map": "why" } ] }, { "path": "Provenance.location", "short": "Where the activity occurred, if relevant", "definition": "Where the activity occurred, if relevant.", "min": 0, "max": "1", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Location" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.location" }, { "identity": "w3c.prov", "map": "Activity.location" }, { "identity": "rim", "map": "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]" }, { "identity": "w5", "map": "where" } ] }, { "path": "Provenance.policy", "short": "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.", "min": 0, "max": "*", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.policy" }, { "identity": "rim", "map": "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel" } ] }, { "path": "Provenance.agent", "name": "agent", "short": "Agents involved in creating resource", "definition": "An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility.", "comments": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.pariticipant" }, { "identity": "w3c.prov", "map": "Agent" }, { "identity": "rim", "map": "./participation[isNormalParticipation()] OR ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']" }, { "identity": "w5", "map": "who" } ] }, { "path": "Provenance.agent.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references).", "min": 0, "max": "1", "type": [ { "code": "id" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.agent.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.agent.modifierExtension", "short": "Extensions that cannot be ignored", "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content", "modifiers" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "isModifier": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.agent.role", "short": "What the agents involvement was", "definition": "The function of the agent with respect to the activity.", "comments": "For example, author, performer, enterer, attester, etc.", "min": 1, "max": "1", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The role that a provenance agent played with respect to the activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-agent-role" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.role" }, { "identity": "w3c.prov", "map": "Agent.Attribution" }, { "identity": "rim", "map": "attester: .[self::participation]/typeCode='RESP' author: .[self::participation]/typeCode='AUT' cc: .[self::participation]/typeCode='IRCP' enterer: .[self::participation]/typeCode='ENT' informant: .[self::participation]/typeCode='INF' performer: .[self::participation]/typeCode='PRF' verifier: .[self::participation]/typeCode='VRF' source: .[self::outboundRelationship]/typeCode=''" } ] }, { "path": "Provenance.agent.actor", "short": "Individual, device or organization playing role", "definition": "The individual, device or organization that participated in the event.", "min": 0, "max": "1", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Device" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.reference" }, { "identity": "w3c.prov", "map": "Agent.Identity" }, { "identity": "rim", "map": "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]" }, { "identity": "w5", "map": "who.actor" } ] }, { "path": "Provenance.agent.userId", "short": "Authorization-system identifier for the agent", "definition": "The identity of the agent as known by the authorization system.", "min": 0, "max": "1", "type": [ { "code": "Identifier" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.userId" }, { "identity": "w3c.prov", "map": "Agent.Identity" }, { "identity": "rim", "map": "person: .plays:Role(classCode='IDENT').id\npractitioner: ./id" }, { "identity": "w5", "map": "who.actor" } ] }, { "path": "Provenance.agent.relatedAgent", "short": "Track delegation between agents", "definition": "A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Agent.actedOnBehalfOf" }, { "identity": "rim", "map": ".rolelink" } ] }, { "path": "Provenance.agent.relatedAgent.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references).", "min": 0, "max": "1", "type": [ { "code": "id" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.agent.relatedAgent.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.agent.relatedAgent.modifierExtension", "short": "Extensions that cannot be ignored", "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content", "modifiers" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "isModifier": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.agent.relatedAgent.type", "short": "Type of relationship between agents", "definition": "The type of relationship between agents.", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Type of relationship between two provenance agents.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType" } }, "mapping": [ { "identity": "w3c.prov", "map": "type" }, { "identity": "rim", "map": ".typeCode" } ] }, { "path": "Provenance.agent.relatedAgent.target", "short": "Reference to other agent in this resource by identifier", "definition": "An internal reference to another agent listed in this provenance by its identifier.", "comments": "The uri has the form #[id] where [id] is on another Provenance.agent in this same resource.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "responsible" }, { "identity": "rim", "map": ".target" } ] }, { "path": "Provenance.entity", "short": "An entity used in this activity", "definition": "An entity used in this activity.", "comments": "Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object" }, { "identity": "w3c.prov", "map": "Entity" }, { "identity": "rim", "map": "./subjectOf" } ] }, { "path": "Provenance.entity.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references).", "min": 0, "max": "1", "type": [ { "code": "id" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.entity.extension", "short": "Additional Content defined by implementations", "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Provenance.entity.modifierExtension", "short": "Extensions that cannot be ignored", "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias": [ "extensions", "user content", "modifiers" ], "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "isModifier": true, "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Provenance.entity.role", "short": "derivation | revision | quotation | source", "definition": "How the entity was used during the activity.", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How an entity was used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-entity-role" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.lifecycle" }, { "identity": "w3c.prov", "map": "Entity.role" }, { "identity": "rim", "map": "./typeCode" } ] }, { "path": "Provenance.entity.type", "short": "The type of resource in this entity", "definition": "The type of the entity. If the entity is a resource, then this is a resource type.", "requirements": "If the type is \"resource\" then the resource itself was the participant. If the type is a type of resource, then the entity identified by the resource is the participant.", "min": 1, "max": "1", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The type of an entity used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-types" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.type" }, { "identity": "w3c.prov", "map": "Entity.type" }, { "identity": "rim", "map": "./target" } ] }, { "path": "Provenance.entity.reference", "short": "Identity of entity", "definition": "Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative.", "comments": "Identity may be a reference to a resource or to something else, depending on the type.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.reference" }, { "identity": "w3c.prov", "map": "Entity.Identity" }, { "identity": "rim", "map": "./text/reference" } ] }, { "path": "Provenance.entity.display", "short": "Human description of entity", "definition": "Human-readable description of the entity.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.description" }, { "identity": "w3c.prov", "map": "Entity.Label" }, { "identity": "rim", "map": "./title" } ] }, { "path": "Provenance.entity.agent", "short": "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 generated the entity.", "min": 0, "max": "1", "nameReference": "agent", "isSummary": true, "mapping": [ { "identity": "rim", "map": "./author/role" } ] }, { "path": "Provenance.signature", "short": "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.", "min": 0, "max": "*", "type": [ { "code": "Signature" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./signatureText" } ] } ] }, "differential": { "element": [ { "path": "Provenance", "short": "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.", "alias": [ "History", "Event", "Activity" ], "min": 0, "max": "*", "type": [ { "code": "DomainResource" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Activity" }, { "identity": "rim", "map": "ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]" }, { "identity": "w5", "map": "infrastructure.information" } ] }, { "path": "Provenance.target", "short": "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 may 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 may 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.", "min": 1, "max": "*", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.reference" }, { "identity": "w3c.prov", "map": "Entity Created/Updated" }, { "identity": "rim", "map": "./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target OR ./participation[isNormalParticipation() and typeCode=SBJ]/role OR ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player" }, { "identity": "w5", "map": "what" } ] }, { "path": "Provenance.period", "short": "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.", "min": 0, "max": "1", "type": [ { "code": "Period" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Activity.startTime & Activity.endTime" }, { "identity": "rim", "map": "./effectiveTime[type=IVL_TS]" }, { "identity": "w5", "map": "when.done" } ] }, { "path": "Provenance.recorded", "short": "When the activity was recorded / updated", "definition": "The instant of time at which the activity was recorded.", "comments": "This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource.", "min": 1, "max": "1", "type": [ { "code": "instant" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.dateTime" }, { "identity": "w3c.prov", "map": "Activity.when" }, { "identity": "rim", "map": "unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])" }, { "identity": "w5", "map": "when.recorded" } ] }, { "path": "Provenance.reason", "short": "Reason the activity is occurring", "definition": "The reason that the activity was taking place.", "min": 0, "max": "*", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The reason the activity took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.purposeOfEvent" }, { "identity": "w3c.prov", "map": "Activity.Activity" }, { "identity": "rim", "map": "unique(./reasonCode)" }, { "identity": "w5", "map": "why" } ] }, { "path": "Provenance.activity", "short": "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.", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The activity that took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.event.purposeOfEvent" }, { "identity": "w3c.prov", "map": "Activity.Activity" }, { "identity": "rim", "map": "Act.code" }, { "identity": "w5", "map": "why" } ] }, { "path": "Provenance.location", "short": "Where the activity occurred, if relevant", "definition": "Where the activity occurred, if relevant.", "min": 0, "max": "1", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Location" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.location" }, { "identity": "w3c.prov", "map": "Activity.location" }, { "identity": "rim", "map": "unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=\"LOC\" and determinerCode=\"INST\"]" }, { "identity": "w5", "map": "where" } ] }, { "path": "Provenance.policy", "short": "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.", "min": 0, "max": "*", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.policy" }, { "identity": "rim", "map": "./inboundRelationship[isNormalActRelationship() and typeCode=\"SUBJ\"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel" } ] }, { "path": "Provenance.agent", "name": "agent", "short": "Agents involved in creating resource", "definition": "An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, an organization, software, or other entities that may be ascribed responsibility.", "comments": "Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.pariticipant" }, { "identity": "w3c.prov", "map": "Agent" }, { "identity": "rim", "map": "./participation[isNormalParticipation()] OR ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']" }, { "identity": "w5", "map": "who" } ] }, { "path": "Provenance.agent.role", "short": "What the agents involvement was", "definition": "The function of the agent with respect to the activity.", "comments": "For example, author, performer, enterer, attester, etc.", "min": 1, "max": "1", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The role that a provenance agent played with respect to the activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-agent-role" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.role" }, { "identity": "w3c.prov", "map": "Agent.Attribution" }, { "identity": "rim", "map": "attester: .[self::participation]/typeCode='RESP' author: .[self::participation]/typeCode='AUT' cc: .[self::participation]/typeCode='IRCP' enterer: .[self::participation]/typeCode='ENT' informant: .[self::participation]/typeCode='INF' performer: .[self::participation]/typeCode='PRF' verifier: .[self::participation]/typeCode='VRF' source: .[self::outboundRelationship]/typeCode=''" } ] }, { "path": "Provenance.agent.actor", "short": "Individual, device or organization playing role", "definition": "The individual, device or organization that participated in the event.", "min": 0, "max": "1", "type": [ { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Device" ] }, { "code": "Reference", "profile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ] } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.reference" }, { "identity": "w3c.prov", "map": "Agent.Identity" }, { "identity": "rim", "map": "Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]" }, { "identity": "w5", "map": "who.actor" } ] }, { "path": "Provenance.agent.userId", "short": "Authorization-system identifier for the agent", "definition": "The identity of the agent as known by the authorization system.", "min": 0, "max": "1", "type": [ { "code": "Identifier" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.participant.userId" }, { "identity": "w3c.prov", "map": "Agent.Identity" }, { "identity": "rim", "map": "person: .plays:Role(classCode='IDENT').id\npractitioner: ./id" }, { "identity": "w5", "map": "who.actor" } ] }, { "path": "Provenance.agent.relatedAgent", "short": "Track delegation between agents", "definition": "A relationship between two the agents referenced in this resource. This is defined to allow for explicit description of the delegation between agents. For example, this human author used this device, or one person acted on another's behest.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "Agent.actedOnBehalfOf" }, { "identity": "rim", "map": ".rolelink" } ] }, { "path": "Provenance.agent.relatedAgent.type", "short": "Type of relationship between agents", "definition": "The type of relationship between agents.", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Type of relationship between two provenance agents.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType" } }, "mapping": [ { "identity": "w3c.prov", "map": "type" }, { "identity": "rim", "map": ".typeCode" } ] }, { "path": "Provenance.agent.relatedAgent.target", "short": "Reference to other agent in this resource by identifier", "definition": "An internal reference to another agent listed in this provenance by its identifier.", "comments": "The uri has the form #[id] where [id] is on another Provenance.agent in this same resource.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "w3c.prov", "map": "responsible" }, { "identity": "rim", "map": ".target" } ] }, { "path": "Provenance.entity", "short": "An entity used in this activity", "definition": "An entity used in this activity.", "comments": "Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges.", "min": 0, "max": "*", "type": [ { "code": "BackboneElement" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object" }, { "identity": "w3c.prov", "map": "Entity" }, { "identity": "rim", "map": "./subjectOf" } ] }, { "path": "Provenance.entity.role", "short": "derivation | revision | quotation | source", "definition": "How the entity was used during the activity.", "min": 1, "max": "1", "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How an entity was used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-entity-role" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.lifecycle" }, { "identity": "w3c.prov", "map": "Entity.role" }, { "identity": "rim", "map": "./typeCode" } ] }, { "path": "Provenance.entity.type", "short": "The type of resource in this entity", "definition": "The type of the entity. If the entity is a resource, then this is a resource type.", "requirements": "If the type is \"resource\" then the resource itself was the participant. If the type is a type of resource, then the entity identified by the resource is the participant.", "min": 1, "max": "1", "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The type of an entity used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-types" } }, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.type" }, { "identity": "w3c.prov", "map": "Entity.type" }, { "identity": "rim", "map": "./target" } ] }, { "path": "Provenance.entity.reference", "short": "Identity of entity", "definition": "Identity of the Entity used. May be a logical or physical uri and maybe absolute or relative.", "comments": "Identity may be a reference to a resource or to something else, depending on the type.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.reference" }, { "identity": "w3c.prov", "map": "Entity.Identity" }, { "identity": "rim", "map": "./text/reference" } ] }, { "path": "Provenance.entity.display", "short": "Human description of entity", "definition": "Human-readable description of the entity.", "min": 0, "max": "1", "type": [ { "code": "string" } ], "isSummary": true, "mapping": [ { "identity": "fhirauditevent", "map": "AuditEvent.object.description" }, { "identity": "w3c.prov", "map": "Entity.Label" }, { "identity": "rim", "map": "./title" } ] }, { "path": "Provenance.entity.agent", "short": "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 generated the entity.", "min": 0, "max": "1", "nameReference": "agent", "isSummary": true, "mapping": [ { "identity": "rim", "map": "./author/role" } ] }, { "path": "Provenance.signature", "short": "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.", "min": 0, "max": "*", "type": [ { "code": "Signature" } ], "isSummary": true, "mapping": [ { "identity": "rim", "map": "./signatureText" } ] } ] } }
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.