Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An implementation of the interface "org.wso2.carbon.business.messaging.hl7.common.HL7MessagePreprocessor" can be used to process raw HL7 messages before parsing them, so that potential errors in the messages can be rectified using it. The service-level parameter used to mention the implementation class is "transport.hl7.MessagePreprocessorClass".

Non-MLLP Transport and ACK/NACK Generation

Automatic Message ACK/NACK

Supports automatic message acknowledgement and validation. The user is given control to send back an ACK/NACK message from an ESB sequence, when automatic message acknowledgement is disabled. Different types of message validations done at the message builder are removed for behavioral consistency of the message builder with the transport.

Some example usage scenarios are given below:

1. When using a transport like such as HTTP, if you want to create an ACK/NACK message from an HL7 message in the flow, specify an axis2 scope message context property "HL7_GENERATE_ACK", and set its value to true. It ensures that an ACK/NACK message is created automatically when a message is sent out (using the HL7 formatter). By default, an ACK message is created. If a NACK message is required to be generated, the message context properties "HL7_RESULT_MODE" and "HL7_NACK_MESSAGE" have to be used.

2. Adding two new service-level parameters to be used by a proxy service.

Code Block
languagehtml/xml
<proxy>...
   <parameter name="transport.hl7.AutoAck">true|false</parameter> <!-- default is true -->
   <parameter name="transport.hl7.ValidateMessage">true|false</parameter> <!-- default is true -->
</proxy> 

3. When ‘AutoAck’ is false, the following properties can be set inside an ESB sequence.

Code Block
languagehtml/xml
<property name="HL7_RESULT_MODE" value="ACK|NACK" scope="axis2" /> <!-- notice the properties should be in axis2 scope --> 

4. When the result mode is ‘NACK’, following property can be used to give a custom description of the error message.

Code Block
languagehtml/xml
<property name="HL7_NACK_MESSAGE" value="<ERROR MESSAGE>" scope="axis2" />

5. The property "HL7_RAW_MESSAGE" in the axis2 scope can be used to retrieve the original raw EDI format HL7 message in an ESB sequence. As the user doesn't have to again convert from XML to EDI, this usage may be particularly helpful inside a custom mediator.

Synchronization with Builder/Formatter

...