Resources

Rhapsody site logo

HL7 resources

HL7 Escape Sequences

man looking at computer

HL7 defines character sequences to represent ’special’ characters not otherwise permitted in HL7 messages. These sequences begin and end with the message’s Escape character (usually ‘\’), and contain an identifying character, followed by 0 or more characters. The most common use of HL7 escape sequences is to escape the HL7 defined delimiter characters.

Optimize resource productivity with the most trusted and flexible HL7 and API integration tools in the market

CharacterDescription Conversion
CxxyySingle-byte character set escape sequence with two hexadecimal values not converted
EEscape character converted to escape character (e.g., ‘\’)
FField separator converted to field separator character (e.g., ‘|’)
HStart highlighting not converted
MxxyyzzMulti-byte character set escape sequence with two or three hexadecimal values (zz is optional) not converted
NNormal text (end highlighting) not converted
RRepetition separator converted to repetition separator character (e.g., ‘~’)
SComponent separator converted to component separator character (e.g., ‘^’)
TSubcomponent separator converted to subcomponent separator character (e.g., ‘&’)
Xdd…Hexadecimal data (dd must be hexadecimal characters) converted to the characters identified by each pair of digits
Zdd…Locally defined escape sequence not converted

Want to learn more about HL7 and Escape Sequences? Enroll in the Academy’s HL7 training course now!

For further reading, check out these resources:

You might also like

HL7 resources

HL7 Data Types

HL7 data types define the kind of data included in a field used in the HL7 message structure. Examples include a string, text, timestamp, address, or coded element.

Read more >

HL7 resources

RIM-Reference Information Model

The HL7 Reference Information Model (RIM) represents a static model of healthcare workflows as viewed by the HL7 standards development group.

Read more >

HL7 resources

Minimum Layer Protocol – MLP

MLP is how an application should wrap an HL7 message to ensure HL7 compliant applications know where a message starts and stops, and where the next message begins.

Read more >