Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

HL7 Exception Strategy

The HL7 exception strategy sets the flow’s exception strategy to HL7, instead of the default. Additionally, it generates and sends an ACK message with the appropriate error code to the originating application.

The HL7 endpoint is part of the Mule Healthcare Toolkit, which also includes transformers and components for receiving, processing and sending HL7 messages. For details and a full list of available tools, consult the Toolkit’s documentation main page.

Configuration

In Studio, click and drag the HL7 exception strategy building block anywhere in your flow. The exception strategy appears as a building block in the footer of the flow.

Minimum required configuration: None

XML Element

hl7:exception-strategy

Sample Complete XML

<hl7:exception-strategy doc:name="Sample Name" doc:description="Sample description."/>
<hl7:exception-strategy/>

Configuration For Studio and Mule Runtime

General Tab

hl7-es

Name

Description

XML

Display Name

Name of the building block as it appears in the flow

[source] ---- doc:name="HL7 Exception Strategy" ----

ACK / NACK Code

The ACK or NACK (Negative ACK) code for the MSA-1 field of the ACK message. Appropriate ACK error codes are:

* AE: Application error * AR: Application reject

[source] ---- ackCode="AE" ----

To access the Studio XML Editor, click the Configuration XML tab under the canvas.

The table below describes all configurable parameters for this building block.

Name

Description

XML

Display Name

Name of the building block as it appears in the flow

[source] ---- doc:name="HL7 Exception Strategy" ----

ACK / NACK Code

The ACK or NACK (Negative ACK) code for the MSA-1 field of the ACK message. Appropriate ACK error codes are:

* AE: Application error * AR: Application reject

[source] ---- ackCode="AE" ----

HL7 Exception Strategy Attributes

Name

Type/Allowed values

Required

Default

Description

ackCode

string

No

If not set, either AR (Application Reject) or AE (Application Error) are set, depending on the type of error

The ACK for the generated message

Namespace and Syntax

http://www.mulesoft.org/schema/mule/hl7

XML Schema Location

http://www.mulesoft.org/schema/mule/hl7/mule-hl7.xsd