HL7 Version 2 to FHIR
1.0.0-ballot - ballot International flag

HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions

ConceptMap: Segment MSH[Source] to Provenance Map (Experimental)

Official URL: http://hl7.org/fhir/uv/v2mappings/segment-msh-source-to-provenance Version: 1.0.0-ballot
Active as of 2024-04-24 Computable Name: SegmentMSHSourceToProvenance

Copyright/Legal: Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.

This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR Provenance Resource.

This ConceptMap represents the mapping from the HL7 V2 MSH Segment to the FHIR Provenance Resource. See also the FHIR Shorthand or the CSV Source.

HL7 v2Condition (IF True, args)HL7 FHIRComments
Sort OrderIdentifierNameData TypeCardinality - MinCardinality - MaxComputable ANTLRComputable FHIRPathNarrativeFHIR AttributeExtensionData TypeCardinality - MinCardinality - MaxData Type MappingVocabulary Mapping
(IS, ID, CE, CEN, CWE)
Assignment
0MSHwhen you hold on to/persist the v2 message in a data storeProvenance.entity.what(Provenance.DocumentReference.content.attachment.url)If there is an interest in holding to the original message by the recipient
0MSHwhen you do not hold on to/persist the v2 message in a data storeProvenance.entity.what(Provenance.DocumentReference.content.attachment.data)/v2.txt or v2.xml into base 64/If there is an interest in holding to the original message by the recipient
0MSHwhen you do not hold on to/persist the v2 message in a data storeProvenance.entity.what(Provenance.DocumentReference.status)"current"If there is an interest in holding to the original message by the recipient
0MSHProvenance.entity.role"source"
1MSH-1Field SeparatorST11
2MSH-2Encoding CharactersST11
3MSH-3Sending ApplicationHD01IF MSH-3 AND MSH-24 VALUEDProvenance.entity.what(Provenance.Device)Reference(Provenance.Device)HD[MessageHeader.source.endpoint]
3MSH-3Sending ApplicationHD01IF MSH-3 AND MSH-24 VALUEDProvenance.entity.roleProvenance.code"source"
4MSH-4Sending FacilityHD01IF MSH-22 NOT VALUEDProvenance.agent.who(Provenance.Organization)Reference(Provenance.Organization)11HD[Organization]
4MSH-4Sending FacilityHD01IF MSH-22 NOT VALUEDProvenance.agent.type.coding.codeProvenance.code01"author"
4MSH-4Sending FacilityHD01IF MSH-22 NOT VALUEDProvenance.agent.type.coding.systemProvenance.uri01"http://terminology.hl7.org/CodeSystem/provenance-participant-type"
5MSH-5Receiving ApplicationHD01
6MSH-6Receiving FacilityHD01
7MSH-7Date/Time of MessageDTM11Provenance.recorded11We 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.
7MSH-7Date/Time of MessageDTM11Provenance.occurred01
8MSH-8SecurityST01
9MSH-9Message TypeMSG11Provenance.activity.coding.displayProvenance.string"message - "+MSG.1+"^"+MSG.2+"^"+MSG.3
10MSH-10Message Control IDST11
11MSH-11Processing IDPT11
12MSH-12Version IDVID11
13MSH-13Sequence NumberNM01
14MSH-14Continuation PointerST01
15MSH-15Accept Acknowledgment TypeID01
16MSH-16Application Acknowledgment TypeID01
17MSH-17Country CodeID01
18MSH-18Character SetID0-1
19MSH-19Principal Language Of MessageCWE01
20MSH-20Alternate Character Set Handling SchemeID01
21MSH-21Message Profile IdentifierEI0-1If MSH-21 can be translated into a uri, it can be used to populate Provenance.policy
22MSH-22Sending Responsible OrganizationXON01Provenance.agent.who(Provenance.Organization)Reference(Provenance.Organization)11XON[Organization]
22MSH-22Sending Responsible OrganizationXON01Provenance.agent.type.coding.codeProvenance.code01"author"
22MSH-22Sending Responsible OrganizationXON01Provenance.agent.type.coding.systemProvenance.uri01"http://terminology.hl7.org/CodeSystem/provenance-participant-type"
23MSH-23Receiving Responsible OrganizationXON01
24MSH-24Sending Network AddressHD01
25MSH-25Receiving Network AddressHD01

Mapping from MSH to Provenance

ACTIVE (not intended for production usage). Published on 2024-04-24 by HL7 International / Orders and Observations (HL7 Orders and Observations Workgroup: http://www.hl7.org/Special/com..., Keith W. Boone: kboone@ainq.com, Rob Hausam: rrhausam@gmail.com). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.

This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR Provenance Resource.


Group 1 Mapping from unspecified code system to unspecified code system

Source Concept DetailsRelationshipTarget Concept DetailsCommentProperties
Codes from valuedatatypemapCodes from narrativeantlr
MSHis equivalent toentity[1].what(DocumentReference.content.attachment.url)entity[1].what(DocumentReference.content.attachment.url)when you hold on to/persist the v2 message in a data storeIf there is an interest in holding to the original message by the recipient
MSH/v2.txt or v2.xml into base 64/is equivalent toentity[1].what(DocumentReference.content.attachment.data)entity[1].what(DocumentReference.content.attachment.data)when you do not hold on to/persist the v2 message in a data storeIf there is an interest in holding to the original message by the recipient
MSH"current"is equivalent toentity[1].what(DocumentReference.status)entity[1].what(DocumentReference.status)when you do not hold on to/persist the v2 message in a data storeIf there is an interest in holding to the original message by the recipient
MSH"source"is equivalent toentity[1].roleentity[1].role
MSH-3Sending ApplicationHD[MessageHeader.source.endpoint]is equivalent toentity[2].what(Device)entity[2].what(Device)IF MSH-3 AND MSH-24 VALUED
MSH-3Sending Application"source"is equivalent toentity[2].roleentity[2].roleIF MSH-3 AND MSH-24 VALUED
MSH-4Sending FacilityHD[Organization]is equivalent toagent[1].who(Organization)agent[1].who(Organization)IF MSH-22 NOT VALUED
MSH-4Sending Facility"author"is equivalent toagent[1].type.coding.codeagent[1].type.coding.codeIF MSH-22 NOT VALUED
MSH-4Sending Facility"http://terminology.hl7.org/CodeSystem/provenance-participant-type"is equivalent toagent[1].type.coding.systemagent[1].type.coding.systemIF MSH-22 NOT VALUED
MSH-7Date/Time of Messageis equivalent torecordedrecordedWe 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.
MSH-7Date/Time of Messageis equivalent tooccurredoccurred
MSH-9Message Type"message - "+MSG.1+"^"+MSG.2+"^"+MSG.3is equivalent toactivity.coding.displayactivity.coding.display
MSH-22Sending Responsible OrganizationXON[Organization]is equivalent toagent[2].who(Organization)agent[2].who(Organization)
MSH-22Sending Responsible Organization"author"is equivalent toagent[2].type.coding.codeagent[2].type.coding.code
MSH-22Sending Responsible Organization"http://terminology.hl7.org/CodeSystem/provenance-participant-type"is equivalent toagent[2].type.coding.systemagent[2].type.coding.system

Notes: