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-03-22 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.

</thead> </table>
HL7 v2Condition (IF True, args)HL7 FHIRComments
Sort OrderIdentifierSyntaxNameCardinality - MinCardinality - MaxComputable ANTLRComputable FHIRPathNarrativePrimary TargetSegment MapReferences
1MSH-1Field SeparatorST11
2MSH-2Encoding CharactersST11
3MSH-3Sending ApplicationHD01MessageHeader.sourcestring1
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.source.endpointstring1
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

Mapping from MSH to MessageHeader

ACTIVE (not intended for production usage). Published on 2024-03-22 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 MessageHeader Resource.


Group 1 Mapping from unspecified code system to unspecified code system

Source Concept DetailsRelationshipTarget Concept DetailsCommentProperties
Codes from referencesCodes from antlr
MSH-3HDstringis equivalent tosource[1]source[1]1
MSH-3HDuriis equivalent tosource[1].endpointsource[1].endpointIF MSH-24 NOT VALUED1
MSH-4HDReference(Organization)is equivalent tosender(Organization)sender(Organization)1
MSH-5HDReference(Device)is equivalent todestination[1].target(Device)destination[1].target(Device)1
MSH-5HDis equivalent todestination[1].namedestination[1].nameIF MSH-25 VALUED
MSH-5HDis equivalent todestination[1].endpointdestination[1].endpointIF MSH-25 NOT VALUED
MSH-6HDReference(Organization)is equivalent todestination[1].receiver(Organization)destination[1].receiver(Organization)IF MSH-23 NOT VALUED1
MSH-8STstringis equivalent tometa.securitymeta.security-1
MSH-9MSGCodingis equivalent toeventCodingeventCoding1
MSH-11PTmetais equivalent tometameta-1
MSH-17IDstringis equivalent tosender(Organization.address.country)sender(Organization.address.country)1
MSH-19CWEcodeis equivalent tolanguagelanguage1
MSH-22XONReference(Organization)is equivalent toresponsible(Organization)responsible(Organization)1
MSH-23XONReference(Organization)is equivalent todestination[1].receiver(Organization)destination[1].receiver(Organization)-1
MSH-24HDstringis equivalent tosource.endpointsource.endpoint1
MSH-24HDuriis equivalent tosource.endpoint.extension.urlsource.endpoint.extension.urlIF MSH-24 NOT VALUED AND MSH-3 NOT VALUED1
MSH-24HDcodeis equivalent tosource.endpoint.extension.valueCodesource.endpoint.extension.valueCodeIF MSH-24 NOT VALUED AND MSH-3 NOT VALUED1
MSH-25HDuriis equivalent todestination[1]destination[1]-1
MSH-25HDuriis equivalent todestination[1].endpoint.extension.urldestination[1].endpoint.extension.urlIF MSH-25 NOT VALUED AND MSH-5 NOT VALUED-1
MSH-25HDcodeis equivalent todestination[1].endpoint.extension.valueCodedestination[1].endpoint.extension.valueCodeIF MSH-25 NOT VALUED AND MSH-5 NOT VALUED-1

Notes: