Line Feed <0a> in HL7 data when not defined in MLLP Port
A friend emailed me asking why he was getting a <0d><0a> in his HL7 data when he defined in his Send Port, the following:
You would expect that the data would be:
MSHSegment<0d>PIDSegment<0d>…
But he was getting
MSHSegment<0d><0a>PIDSegment<0d><0a>…
In the message assignment of the multi-part message before you send the data out, if you want only <0d> and not <0d><0a>, you need to set the following context property to false. In the tutorials, you are instructed to put true.
OutgoingMsg(BTAHL7Schemas.SegmentDelimiter2Char)=false;
Although I already mentioned it, OutgoingMsg(BTAHL7Schemas.MSH1)=124; is the decimal value of the | character
Comments Off