Segment MSH [Source] to Provenance Map
| # | V2 Field | Name | V2 Type | Card. | FHIR Attribute | FHIR Type | Equiv. |
|---|---|---|---|---|---|---|---|
| 1 | MSH | MSH | - | - | 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 |
| 2 | MSH-3 | Sending Application | HD | 1..1 | entity[2].what(Device.identifier)entity[2].role= "source" | Reference(Device)code | equivalentequivalent |
| 3 | MSH-4 | Sending Facility | HD | 1..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 |
| 4 | MSH-7 | Date/Time of Message | DTM | 1..1 | recordedWe 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 |
| 5 | MSH-9 | Message Type | MSG | 1..1 | activity.coding.display= "message - "+MSG.1+"^"+MSG.2+"^"+MSG.3 | string | equivalent |
| 6 | MSH-22 | Sending Responsible Organization | XON | 1..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 |