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 to MessageHeader Map (Experimental)

Official URL: http://hl7.org/fhir/uv/v2mappings/segment-msh-to-messageheader Version: 1.0.0-ballot
Active as of 2024-10-30 Computable Name: SegmentMSHToMessageHeader

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 MessageHeader Resource.

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

HL7 v2Condition (IF True, args)HL7 FHIRComments
Sort OrderIdentifierSyntaxNameCardinality - MinCardinality - MaxComputable ANTLRComputable FHIRPathNarrativePrimary TargetSegment MapReferences
1MSH-1Field SeparatorST11
2MSH-2Encoding CharactersST11
3MSH-3Sending ApplicationHD01MessageHeader.source1
3MSH-3Sending ApplicationHD01IF MSH-24 NOT VALUEDMessageHeader.source.endpointuri1
4MSH-4Sending FacilityHD01MessageHeader.sender(MessageHeader.Organization)Reference(Organization)1
5MSH-5Receiving ApplicationHD01MessageHeader.destination.target(MessageHeader.Device)Reference(Device)1
5MSH-5Receiving ApplicationHD01IF MSH-25 VALUEDMessageHeader.destination.name
5MSH-5Receiving ApplicationHD01IF MSH-25 NOT VALUEDMessageHeader.destination.endpoint
6MSH-6Receiving FacilityHD0-1IF MSH-23 NOT VALUEDMessageHeader.destination.receiver(MessageHeader.Organization)Reference(Organization)1
7MSH-7Date/Time of MessageDTM11
7MSH-7Date/Time of MessageDTM11
8MSH-8SecurityST01meta.securitystring-1
9MSH-9Message TypeMSG11MessageHeader.eventCodingCoding1
10MSH-10Message Control IDST11
11MSH-11Processing IDPT11MessageHeader.metameta-1
12MSH-12Version IDVID11
13MSH-13Sequence NumberNM01
14MSH-14Continuation PointerST01
15MSH-15Accept Acknowledgment TypeID01
16MSH-16Application Acknowledgment TypeID01
17MSH-17Country CodeID01MessageHeader.sender(MessageHeader.Organization.address.country)string1
18MSH-18Character SetID0-1extension??-characterSet
19MSH-19Principal Language Of MessageCWE01MessageHeader.languagecode1
20MSH-20Alternate Character Set Handling SchemeID01
21MSH-21Message Profile IdentifierEI0-1extension??-v2ProfileID.uriuri1
21MSH-21Message Profile IdentifierEI0-1extension??-v2ProfileID.valueStringstring1
22MSH-22Sending Responsible OrganizationXON01MessageHeader.responsible(MessageHeader.Organization)Reference(Organization)1
23MSH-23Receiving Responsible OrganizationXON01MessageHeader.destination.receiver(MessageHeader.Organization)Reference(Organization)-1
24MSH-24Sending Network AddressHD01MessageHeader.sourcestring1
24MSH-24Sending Network AddressHD01IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDMessageHeader.source.endpoint.extension.urluri1
24MSH-24Sending Network AddressHD01IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDMessageHeader.source.endpoint.extension.valueCodecode1
25MSH-25Receiving Network AddressHD01MessageHeader.destinationuri-1
25MSH-25Receiving Network AddressHD01IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDMessageHeader.destination.endpoint.extension.urluri-1
25MSH-25Receiving Network AddressHD01IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDMessageHeader.destination.endpoint.extension.valueCodecode-1
26MSH-26Security Classification TagCWE01meta.securityCoding-1
27MSH-27Security Handling InstructionsCWE0-1meta.securityCoding-1
28MSH-28Special Access Restriction InstructionsST0-1

Generated Narrative: ConceptMap segment-msh-to-messageheader

Mapping from MSH to MessageHeader


Group 1 Mapping from unspecified code system to unspecified code system

Source CodeRelationshipTarget CodeComment
MSH-3 (HD)is equivalent tosource[1]1
MSH-3 (HD)is equivalent tosource[1].endpoint1
MSH-4 (HD)is equivalent tosender(Organization)1
MSH-5 (HD)is equivalent todestination[1].target(Device)1
MSH-5 (HD)is equivalent todestination[1].name
MSH-5 (HD)is equivalent todestination[1].endpoint
MSH-6 (HD)is equivalent todestination[1].receiver(Organization)1
MSH-8 (ST)is equivalent tometa.security-1
MSH-9 (MSG)is equivalent toeventCoding1
MSH-11 (PT)is equivalent tometa-1
MSH-17 (ID)is equivalent tosender(Organization.address.country)1
MSH-19 (CWE)is equivalent tolanguage1
MSH-22 (XON)is equivalent toresponsible(Organization)1
MSH-23 (XON)is equivalent todestination[1].receiver(Organization)-1
MSH-24 (HD)is equivalent tosource1
MSH-24 (HD)is equivalent tosource.endpoint.extension.url1
MSH-24 (HD)is equivalent tosource.endpoint.extension.valueCode1
MSH-25 (HD)is equivalent todestination[1]-1
MSH-25 (HD)is equivalent todestination[1].endpoint.extension.url-1
MSH-25 (HD)is equivalent todestination[1].endpoint.extension.valueCode-1
MSH-26 (CWE)is equivalent tometa.security[2]-1
MSH-27 (CWE)is equivalent tometa.security[2]-1

Notes: