Page tree
Skip to end of metadata
Go to start of metadata

HL7 defines escape sequences to represent special characters that are not permitted in HL7 messages.

Special CharacterPurposeEscape Sequence
\x0DCarriage return\X0D\
|Field separator
\F\
^
Component separator
\S\
~
Field repeat separator
\R\
\

Escape character

\E\
&
Sub-component separator
\T\

Orion Health expects a carriage return (\r) to indicate the termination of a message segment.

You must not use a carriage return and newline character (\r\n) or a newline character (\n) to separate segments as this would cause the message validation to fail.

Example

In this example, the ampersand (&) character is meant to be part of the resulting text. Therefore, it must be escaped.

AL1|1|416098002^Drug allergy^SNM|37418^Sumatriptan^RXNORM^FT^Imitrex^ORION||INJECTABLE - HIVES & BLISTERS

——>  Incorrect formatting


AL1|1|416098002^Drug allergy^SNM|37418^Sumatriptan^RXNORM^FT^Imitrex^ORION||INJECTABLE - HIVES \T\ BLISTERS

——>  Correct formatting






  • No labels