HL7 Module 10.5 | Understanding and Using HL7 Module | Installing and Using HL7 Module | Overview of webMethods HL7 Module | Processing HL7 Version 2.x Messages with Trading Networks | Processing Inbound HL7 Version 2.x Messages
 
Processing Inbound HL7 Version 2.x Messages
When you install HL7 Module, the WmHL7 package of the HL7 Module enables Trading Networks to recognize and to process HL7 version 2.x messages. For inbound processing, you create clients that send HL7 version 2.x messages to the HL7 Module wm.ip.hl7.tn.service:receive service and you set up information in Trading Networks to process the messages.
Note:
You can send HL7 messages directly to the Trading Networks receive service. However, HL7 Module creates the BizDocEnvelope only if the incoming message is a valid HL7 message. When an HL7 message is sent directly to the Trading Networks receive service, HL7 Module does not perform the tasks of persisting the message, routing, and assigning process or user status.
To start the run-time processing of the HL7 version 2.x message in Trading Networks, HL7 Module sends the message to Trading Networks. The following diagram illustrates the steps in which Trading Networks processes inbound HL7 version 2.x messages.
Step
Description
1
The client sends the HL7 version 2.x message to Trading Networks, invoking the wm.ip.hl7.tn.service:receive service to pass on the HL7 message to Trading Networks for processing.
2
When HL7 Module receives the HL7 version 2.x message, it first determines which TN document type to use. After determining the TN document type, HL7 Module extracts field values from the HL7 message and fills in the appropriate attributes in the BizDocEnvelope.
3
HL7 Module then forms a BizDocEnvelope that contains:
*The original HL7 version 2.x message as the contentPart of the BizDocEnvelope.
*The extracted fields from the MSH segment of the HL7 version 2.x message added as attributes to the BizDocEnvelope.
*Information required for persisting the message in Trading Networks.
*Information required for routing and processing the HL7 version 2.x message.
4
After forming the BizDocEnvelope, HL7 Module determines the processing rule to use to process the document and executes the processing rule. Processing rules define the pre-processing and processing actions you want performed on each type of document. For more information about processing rules, see the following section, Processing Rules to Process HL7 Version 2.x Messages.