Configuring the HL7 Adapter Target

How to:

The HL7 Adapter is used for converting the XML-based HL7 messages into HL7 format and sending the same using MLLP protocol. HL7 Adapter can also be configured to receive acknowledgment for the sent HL7 message. Before using an adapter in iWay Service Manager (iSM), you must create a target for it, which represents a specific instance of a connection to a back-end system.


Top of page

x
Procedure: How to Create an HL7 Adapter Target

To create an HL7 adapter target:

  1. Under the Explorer tab of the iWay Designer tool, open the Repositories folder, expand iWay, and then open the Services folder, as shown in the following image.

  2. Ensure that the HL7 node is listed as one of the adapters. If the HL7 node is not listed, proceed to step 3. If it is listed, skip to step 5.
  3. Open iWay Properties, click the Adapter Settings tab and select HL7 from the Available Adapters pane.
  4. Click the greater than symbol (>) to move it to the Selected Adapters pane, and click OK to save and close, as shown in the following image.

    The HL7 adapter is now listed and appears in the Services folder under the iWay node.

  5. Right-click the HL7 adapter node and select Create Target.

    The following window opens, which allows you to specify a name, type, and description.

    The following table describes the properties you can configure.

    Property

    Description

    Name

    Name to be used for this HL7 Adapter Target.

    Type

    Type of communication mechanism to be used for sending out HL7 messages.

    The options are:

    • File System Write
    • HTTP
    • IBM MQ Series
    • TCP Session
    • JMS
    • MLLP

    Description

    Brief description to be made available to users of the new target.

  6. Provide a name and description, and then select MLLP from the Type drop-down list and click Next.

    The Configuration pane appears, as shown in the following image.

    The following table lists and describes the configuration properties.

    Parameter

    Description

    *HL7 Version

    Select the HL7 version for this target. Messages will be created using specifications for the selected version.

    The options are:

    • 2.1
    • 2.2
    • 2.3
    • 2.3.1
    • 2.4
    • 2.5
    • 2.6

    *Start of Block Character

    Character that will mark the beginning of a Message block. The default is 0x11.

    *End of Block Character

    Character that will mark the end of a message block. The default is 0x28.

    *Segment Delimiter

    Character sequence to be used as segment delimiter when generating HL7 messages.

    The options are CR, CRLF, LF.

    HL7 Repository Directory

    Specify the directory containing the message specifications to be used while generating HL7 messages. This is used when you are required to change the HL7 message specification using specific schema files (.xsd).

    *Processing Mode

    Indicates whether or not the XML representation of messages will have empty elements. Recommended mode is OPTIMIZED.

    The options are OPTIMIZED, FULL, and FULL_MINIMIZED.

    Turn on Schema Validation

    Indicates whether the generated messages are to be validated against the message specification. False indicates validation is not required.

    The options are true and false.

    Archiving Location

    Folder path where a copy of generated HL7 messages needs to be stored. Missing folder location implies no archiving required.

  7. Provide the required parameters of the configuration, or any parameter with an asterisk (*), and click Next.

    The following window appears, which captures the transport specific configurations.

    The following table describes the parameters and its values.

    Parameter

    Description

    Remote Host

    The host name or IP address of the receiving entity. Multiple Adapter targets need to be created if messages need to be sent to multiple receivers.

    Port Character

    The port number where the receiving entity is listening for this message.

    Synchronization Type

    Allows the user to determine the message transaction sequence.

    The options are REQUEST and REQUEST_ACK.

    Reuse Connection

    Allows you to define if the connection with the receiving entity can be reused for sending additional messages.

    The options are true and false.

    Number of Connection Retries

    The number of times the system should be retried before assuming connectivity failure.

    Default value is 5.

    Pause Time between Connection retries in ms

    The number of milliseconds that the system should wait before retrying the connection.

    Default value is set to 10000.

    Amount of time to wait without getting an ACK

    The duration in minutes that the system should wait for receiving an Acknowledgment after sending the message.

    Default value is set to 10000.

  8. Provide the required values in asterisks (*), select the Synchronization Type as Request_Ack to receive Acknowledgment for the generated message, and click Finish.
  9. Ensure that format conversions are available under the newly created HL7 target.

    The HL7 Adapter is now successfully created and available for use under Registry.



x
Procedure: How to Configure an HL7 Adapter Target

When you add an adapter (target) in the iWay Service Manager Administrator Console, the process creates run-time connection and persistent data files within iSM. In addition, the process interrogates the iSM repository entries that were built when the target and connection were created using iWay Explorer. Adapters can be added from the iWay Service Manager Administrator Console or a process flow that is created using iWay Designer. However, it is not recommended to use iWay Designer to perform this task.

To configure an HL7 adapter target:

  1. Log on to the iWay Service Manager Administration Console.
  2. From the Registry menu options on the left pane, select Adapters.

    The Adapters pane opens, listing the defined adapters with targets defined, as shown in the following image.

  3. Click Add.

    The Repository pane opens, as shown in the following image.

  4. In the iBSP URL field, enter the location of the iWay Service Manager repository. For example:
    http://localhost:9000
  5. Click Next.

    The adapter selection pane opens, as shown in the following image.

  6. Select HL7 from the Adapter drop-down list.

    The target selection pane appears and the drop-down list gets populated based on the Adapter selection, as shown in the following image.

  7. From the Target drop-down list, select a target you configured for the adapter using iWay Explorer, and click Next.

    The HL7 Adapter configuration information pane appears, as shown in the following image.

    Perform the following steps:

    1. In the Create Error Document area, select whether to return an error document when an error occurs.
    2. In the Persist Connection area, select whether an adapter connection will be reused between executes.
    3. Review the connection information you specified for the HL7 target in iWay Explorer. You can change or update any information.
  8. Click Next.
  9. Provide a name and optionally, a description for the adapter. Click Finish.

    The adapter is added to the list in the Adapters pane, as shown in the following image.


Top of page

x
Procedure: How to Modify or Update a Defined HL7 Adapter

Any adapters that have been defined using iWay Explorer in iWay Designer are available in the registry. As a result, the adapters will also appear in the Adapters pane and can be modified. For example, you can modify an adapter to include special registers (SREGs).

To modify or update a defined adapter:

  1. Click the name of the adapter you defined in the Adapters pane (for example, HL7_ADTrgt_V25_10025_R1), as shown in the following image.

    The following image shows the configured parameters for the selected adapter.

    All adapter parameters except name and Target can be modified.

  2. Click Update Connection Properties after all the required changes are made to the connection information.
  3. Click Update Adapter Data after making changes to the Settings or MLLP Transport sections, then click Update when you are finished.

iWay Software