Defining a Processing Rule for an Envelope Document
To specify how to process the envelope document, you must define a processing rule validates the ISA, GS, and ST segments, in order to comply with the HIPAA standard.
To create a processing rule for the envelope
Create a processing rule in My webMethods. For information about how to create a processing rule, see the webMethods Trading Networks Administrator’s Guide for your release.
1. Set processing rule criteria. Set the following criteria on the Criteria tab of the processing rule:
Criteria tab field | Set to... |
Sender | Any Senders. You can also select Selected Senders, if desired. |
Receiver | Enterprise. Important: You must select Enterprise for this parameter so that the processing rule is only invoked when you are receiving an envelope document (and not when sending one). |
Document Type | Selected Document Types. Select document type X12 Envelope Specify X12 Envelope as the TN document type for the envelope document to ensure the processing rule is only invoked when processing an envelope document. |
Important:
If the envelope validation fails, the EDI recognizer does not split the group and transaction documents from the HIPAA message. As a result, group and transaction documents are not processed. Only the envelope document is passed to
Trading Networks for processing, so your logic can handle the error and send a TA1 technical acknowledgment, if appropriate. For more information about how the HIPAA message is split into envelope, group, and/or transaction documents, see
Process Overview.
2. Set processing actions. On the Action tab of the processing rule do the following:
a. Select Perform the following actions.
b. Select Execute a service and specify a service that you created to process the envelope document.
Use the Module for HIPAA wm.estd.hipaa.sample:processHipaaMessage sample service as a guideline for creating your own service.