Healthcare Interoperability Blog

interfaceware.com
  • Iguana Integration Engine
  • Resource Center
  • Blog
Home Understanding HL7 Delimiter Redefinitions

Understanding HL7 Delimiter Redefinitions

HL7-delimiter-redefinitions

The HL7 Delimiter Characters shown in the table below lists the default delimiter characters that are normally used in HL7 messages.

An HL7 message can choose to employ HL7 delimiter redefinitions.

If the standard characters are not convenient to use, the HL7 message can use different delimiter characters.

In any HL7 message, the delimiter characters used by the message are specified as the first field of the MSH segment.

Recall that every HL7 message must include an MSH segment. Further, the MSH segment must be the first segment of the message.

If the message is using the default delimiter characters, the MSH segment of the message starts with the following:

MSH|^~\&

The characters immediately following MSH indicate the delimiter characters in use in this message. They are, in order:

  • The delimiter character that separates one composite from another (the default is |);
  • The delimiter character that separates one sub-composite from another (default ^);
  • The delimiter character that separates repeating fields (default ~);
  • The delimiter character that specifies the start or end of an escape sequence (default \);
  • The delimiter character that separates one sub-sub-composite from another (default &).

If an incoming HL7 message uses different delimiter characters, these first five characters of the MSH segment define the delimiter characters that are used. For example:

MSH#^~\&

Here, #, not |, is the delimiter character that separates one composite from another.

HL7 Delimiter Characters

Certain special characters separate one composite in a segment from another, or separate one sub-composite from another.
These special characters are known as delimiter characters.

This section describes delimiter characters in more detail, how to use escape characters to include a delimiter character as part of a composite, and how to define new HL7 delimiter characters.

The following table lists the default delimiter characters used in HL7:

Character Purpose
0x0D Marks the end of each segment.
| Composite delimiter.
^ Sub-composite delimiter.
& Sub-sub-composite delimiter.
~ Separates repeating fields.
\ Escape character.

Over 120 different HL7 segments are available for use in HL7 messages to communicate health data. For further details on the HL7 message structure, including in depth information on segments, composites and delimiters, visit iNTERFACEWARE’s comprehensive guide to HL7.

Looking for professional advice? Iguana is the leading HL7 integration engine on the market, trusted globally for 20+ years. To learn more about HL7 data exchange, contact one of our integration engine experts today.

Additional Resources:

5 Ways to Speed Up HL7 Integration

Sep 27, 2021iNTERFACEWARE
  • Email
  • LinkedIn
  • More
  • Facebook
  • Twitter

Related

How to replace an interface engineUnderstanding HL7 Segment Grammar Notation
September 27, 2021 HL7 InformationHL7, hl7 delimiter, hl7 delimiter characters, integration engine
Enjoying this blog?

Sign up to receive healthcare integration news, just like this, from iNTERFACEWARE Inc.

iNTERFACEWARE needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, please review our Privacy Policy.

Resources

Case studies

White papers

Blog

Iguana Integration Engine

Product Overview

Iguana for Vendors

Iguana for Hospitals

Company

About Us

Careers

Connect

LinkedIn

Twitter

Contact Us

© - iNTERFACEWARE Inc.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.