Written by

Question Ori Tsarfati · Jul 8, 2024

How to handle line break inside NTE segment inside HL7 message

I have an HL7 message that contains NTE segment with line break inside.

when I try to transform it (with DTL) it stops reading the message after the line break inside the NTE because it treat that as "End of Message".

Is there a way to solve this in the DTL or I need to run a pre process on the HL7 message that identify the line break inside the NTE segments and replace it with an escape char?

Product version: Ensemble 2018.1

Comments

Scott Roth · Jul 8, 2024

Because Intersystems is already trying to parse the message and field as it determines which DocType the message falls under, I would say that there needs to be a Preprocess involved to remove the extra line break. Whether that needs to be a custom Inbound HL7 Business, or some other type of scripting that is up to you.

0