Sidebar

I need a way to reformat the HL7 output to include a CR and LF at the end of each segment.

0 votes
732 views
asked Jul 17, 2015 by terrie-g-7436 (3,950 points)
Currently the final message only has CR at the end of each segment.

1 Answer

+1 vote
 
Best answer
As per the HL7 specification, QIE defaults all outbound HL7 messages to CR only ('\r'). This means that no matter which line endings are used on the incoming message, the outbound message will be changed to use CR only. However, you can change the line endings that will be used on the outbound message by using the Code Wizard function,
 
message.setHL7EndOfLine('eol').  
 
This allows you to specify exactly which line endings you would like to use on the outbound channel.
 
To add  CR/LF to the end of each segment  use the following code:
 
message.setHL7EndOfLine('\r\n');
answered Jul 17, 2015 by terrie-g-7436 (3,950 points)
selected Apr 6, 2018 by amanda-w-3695
...