This page is part of the FHIR Specification (v3.2.0: R4 Ballot 1). 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: R4 R3 R2
. Page versions: R4 R3 R2
E.2.4  StructureDefinition: ehrsrle-provenance - Mappings 
Mappings for the ehrsrle-provenance Profile.
 E.2 Mappings for RIM Mapping (http://hl7.org/v3) 
 | EHRS FM Record Lifecycle Event - Provenance | 
 | Provenance |  | Entity. Role, or Act | 
 | id |  |  | 
 | meta |  |  | 
 | implicitRules |  |  | 
 | language |  |  | 
 | text |  | Act.text? | 
 | contained |  | N/A | 
 | extension |  | N/A | 
 | modifierExtension |  | N/A | 
 | target |  | ./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player | 
 | occurred[x] |  | ./effectiveTime[type=IVL_TS] | 
 | recorded |  | unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS]) | 
 | policy |  | ./inboundRelationship[isNormalActRelationship() and typeCode="SUBJ"]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel | 
 | location |  | unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode="LOC" and determinerCode="INST"] | 
 | reason |  | unique(./reasonCode) | 
 | activity |  | Act.code | 
 | agent |  | ./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV'] | 
 | id |  | n/a | 
 | extension |  | n/a | 
 | modifierExtension |  | N/A | 
 | type |  | .role | 
 | role |  | .typecode | 
 | who[x] |  | .id | 
 | onBehalfOf[x] |  | Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code] | 
 | entity |  | ./subjectOf | 
 | id |  | n/a | 
 | extension |  | n/a | 
 | modifierExtension |  | N/A | 
 | role |  | ./typeCode | 
 | what[x] |  | ./text/reference | 
 | agent |  | ./author/role | 
 | signature |  | ./signatureText | 
 E.2 Mappings for W3C PROV (http://www.w3.org/ns/prov) 
			
      The provenance resource is based on known practices in the
      HL7 implementation space, particularly those found in the
      v2 EVN segment, the v3 ControlAct Wrapper, the CDA header, and
      IHE ATNA.
      The conceptual model underlying the design is the W3C
      provenance Specification  . Though the content and format
      of the resource is designed to meet specific requirements for FHIR,
      all the parts of the resource are formally mapped to the PROV-O
      specification, and FHIR resources can be transformed to their W3C
      PROV equivalent.
. Though the content and format
      of the resource is designed to meet specific requirements for FHIR,
      all the parts of the resource are formally mapped to the PROV-O
      specification, and FHIR resources can be transformed to their W3C
      PROV equivalent.
     
		 
 | EHRS FM Record Lifecycle Event - Provenance | 
 | Provenance |  | Activity | 
 | id |  |  | 
 | meta |  |  | 
 | implicitRules |  |  | 
 | language |  |  | 
 | text |  |  | 
 | contained |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | target |  | Entity Created/Updated | 
 | occurred[x] |  | Activity.startTime & Activity.endTime | 
 | recorded |  | Activity.when | 
 | policy |  |  | 
 | location |  | Activity.location | 
 | reason |  | Activity.Activity | 
 | activity |  | Activity.Activity | 
 | agent |  | Agent | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | type |  | Agent.Attribution | 
 | role |  |  | 
 | who[x] |  |  | 
 | onBehalfOf[x] |  |  | 
 | entity |  | Entity | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | role |  | Entity.role | 
 | what[x] |  | Entity.Identity | 
 | agent |  |  | 
 | signature |  |  | 
 E.2 Mappings for W5 Mapping (http://hl7.org/fhir/w5) 
 | EHRS FM Record Lifecycle Event - Provenance | 
 | Provenance |  | infrastructure.information | 
 | id |  |  | 
 | meta |  |  | 
 | implicitRules |  |  | 
 | language |  |  | 
 | text |  |  | 
 | contained |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | target |  | FiveWs.what[x] | 
 | occurred[x] |  | FiveWs.done[x] | 
 | recorded |  | FiveWs.recorded | 
 | policy |  |  | 
 | location |  | FiveWs.where[x] | 
 | reason |  | FiveWs.why[x] | 
 | activity |  | FiveWs.why[x] | 
 | agent |  | FiveWs.who | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | type |  |  | 
 | role |  |  | 
 | who[x] |  | FiveWs.actor | 
 | onBehalfOf[x] |  |  | 
 | entity |  |  | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | role |  |  | 
 | what[x] |  |  | 
 | agent |  |  | 
 | signature |  |  | 
 E.2 Mappings for FHIR AuditEvent (http://hl7.org/fhir/auditevent) 
 | EHRS FM Record Lifecycle Event - Provenance | 
 | Provenance |  |  | 
 | id |  |  | 
 | meta |  |  | 
 | implicitRules |  |  | 
 | language |  |  | 
 | text |  |  | 
 | contained |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | target |  | AuditEvent.entity.reference | 
 | occurred[x] |  |  | 
 | recorded |  | AuditEvent.recorded | 
 | policy |  | AuditEvent.agent.policy | 
 | location |  | AuditEvent.agent.location | 
 | reason |  | AuditEvent.purposeOfEvent | 
 | activity |  | AuditEvent.purposeOfEvent | 
 | agent |  | AuditEvent.agent | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | type |  | AuditEvent.agent.type | 
 | role |  | AuditEvent.agent.role | 
 | who[x] |  |  | 
 | onBehalfOf[x] |  |  | 
 | entity |  | AuditEvent.entity | 
 | id |  |  | 
 | extension |  |  | 
 | modifierExtension |  |  | 
 | role |  | AuditEvent.entity.lifecycle | 
 | what[x] |  | AuditEvent.entity.reference | 
 | agent |  |  | 
 | signature |  |  |