HL7 Module 10.5 | Understanding and Using HL7 Module | Installing and Using HL7 Module | Configuring webMethods HL7 Module | Configuring Communication Protocols | MLLP | Receiving HL7 Version 2.x Messages | Receiving More Than One HL7 Version 2.x Message via a MLLP Listener
 
Receiving More Than One HL7 Version 2.x Message via a MLLP Listener
HL7 Module supports receiving one or more HL7 version 2.x messages via an MLLP listener. When using the MLLP protocol, HL7 messages are transmitted in single data blocks. The HL7 version 2.x message content should be framed in a block before sending the message to the destination system via the MLLP transport protocol.
The HL7 content is enclosed by special characters to form a block in the following format:
<SB>HL7message<EB><CR>
where:
<SB> is the Start Block character (1 byte). ASCII <VT> character, that is <0x0B>.
<EB> is the End Block character (1 byte). ASCII<FS>character, that is <0x1C>.
<CR> is the Carriage Return (1 byte). ASCII <CR> character, that is <0x0D>.
The MLLP listener expects the incoming HL7 message or messages to be formatted in a content block. When receiving more than one message, the MLLP listener expects the messages to be formatted as a continuous series of HL7 content blocks.
For example:
*Format when sending a single message:
<SB>
MSH|^~\&|Sender||Receiver||20110614142226||ADT^A02|MSG00001|P|2.3||||||WINDO
WS-1252<CR>
EVN|A03<CR>
PID|||1221||TestMessage<CR>
PV1||C<CR>
<EB><CR>
*Format when sending more than one messages:
<SB>
MSH|^~\&|Sender||Receiver||20110614142226||ADT^A02|MSG00001|P|2.3||||||WINDO
WS-1252<CR>
EVN|A03<CR>
PID|||1221||TestMessage1<CR>
PV1||C<CR>
<EB><CR>
<SB>
MSH|^~\&|Sender||Receiver||20110614142226||ADT^A02|MSG00002|P|2.3||||||WINDO
WS-1252<CR>
EVN|A03<CR>
PID|||1221||TestMessage2<CR>
PV1||C<CR>
<EB><CR>
<SB>
MSH|^~\&|Sender||Receiver||20110614142226||ADT^A02|MSG00003|P|2.3||||||WINDO
WS-1252<CR>
EVN|A03<CR>
PID|||1221||TestMessage3<CR>
PV1||C<CR>
<EB><CR>
When HL7 Module receives multiple messages in a single request, the order in which the HL7 version 2.x messages are processed is not necessarily the order in which they appear in the incoming request. Therefore the processing of HL7 version 2.x messages in a sequence is not guaranteed. The MLLP listener treats each message as independent and sends it to the Integration Server service (the default is the wm.ip.hl7.tn.service:receive service) that you specified when configuring the MLLP listener Port in Integration Server Administrator. For more information about configuring the MLLP listener port, see Configuring an MLLP Port.