Segment MSH [Source] to Provenance Map

This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR Provenance Resource.
#V2 FieldNameV2 TypeCard.FHIR AttributeFHIR TypeEquiv.
1MSHMSH--
entity[1].what(DocumentReference.content.attachment.url)

IF: when you hold on to/persist the v2 message in a data store

If there is an interest in holding to the original message by the recipient

entity[1].what(DocumentReference.content.attachment.data)

= /v2.txt or v2.xml into base 64/

IF: when you do not hold on to/persist the v2 message in a data store

If there is an interest in holding to the original message by the recipient

entity[1].what(DocumentReference.status)

= "current"

IF: when you do not hold on to/persist the v2 message in a data store

If there is an interest in holding to the original message by the recipient

entity[1].role

= "source"

----
equivalentequivalentequivalentequivalent
2MSH-3Sending ApplicationHD1..1
entity[2].what(Device.identifier)
entity[2].role

= "source"

Reference(Device)code
equivalentequivalent
3MSH-4Sending FacilityHD1..1
agent[1].who(Organization)
agent[1].type.coding.code

= "author"

agent[1].type.coding.system

= "http://terminology.hl7.org/CodeSystem/provenance-participant-type"

Reference(Organization)codeuri
equivalentequivalentequivalent
4MSH-7Date/Time of MessageDTM1..1
recorded

We note that this could have been mapped to the Provenance.occurred[x] attribute, but since Provenance.recorded is required and these two times are virtually the same, we opted to map to Provenance.recorded.

occurred
--
equivalentequivalent
5MSH-9Message TypeMSG1..1
activity.coding.display

= "message - "+MSG.1+"^"+MSG.2+"^"+MSG.3

string
equivalent
6MSH-22Sending Responsible OrganizationXON1..1
agent[2].who(Organization)
agent[2].type.coding.code

= "author"

agent[2].type.coding.system

= "http://terminology.hl7.org/CodeSystem/provenance-participant-type"

Reference(Organization)codeuri
equivalentequivalentequivalent

Equivalence Legend

equivalentExact match
wider/narrowerBroader/more specific meaning
relatedtoRelated but not exact
unmatchedNo equivalent in target