Processing Rules to Process HL7 Version 2.x Messages
HL7 Module registers four processing rules with Trading Networks that correspond to the TN document type with a similar name provided with HL7 Module. Based on the format of the HL7 version 2.x message to process, HL7 Module invokes one of the processing rules specified in the following table:
HL7 Message Format | Processing Rules | TN document type |
ER7 | HL7 2.x Message Default | HL7 Default |
| HL7 2.x Message Acknowledgment | HL7 Acknowledgment |
XML | HL7 2.x XML Message Default | HL7 XML Default |
| HL7 2.x XML Message Acknowledgment | HL7 Acknowledgment |
HL7 Module verifies if the processing rules are present during startup. If they are not present, HL7 Module registers the processing rules with Trading Networks. These processing rules contain the criteria that you want Trading Networks to use to select the processing rule, and the pre-processing and processing actions that you want Trading Networks to perform against the document. For example, for an inbound HL7 version 2.x message, you might use the Execute a Service action to invoke a service that you create; for an outbound HL7 version 2.x message, you might use the Deliver Document By action to have Trading Networks deliver the outbound HL7 version 2.x message.
HL7 Module processing rules are executed when sending or receiving HL7 version 2.x messages. HL7 Module invokes the processing rules after persisting the message in Trading Networks. The processing rule invoked is specific to the BizDocEnvelope generated during the send or receive operation. The HL7 2.x Message Acknowledgment and HL7 2.x XML Message Acknowledgment processing rules are executed for ACK messages. The HL7 2.x Message Default and HL7 2.x XML Message Default processing rules are executed for the remaining message types.