HL7 Relay Framework

HL7 relay framework is used to broadcast HL7 messages to multiple listeners on the same network, and centralize workflows. This is necessary when the HL7 message sender software is unable to send a message to multiple devices.

Architecture

The HL7 Relay Framework consists of a Windows Service, AddIn library, and a manager application for controlling the state of the Windows Service as well as the settings used by both the Windows Service and AddIn library.

The projects source code is located in LEADTOOLS directory: <INSTALL_DIR>\LEADTOOLS23\Examples\HL7\DotNet

For the complete list of HL7 demos, refer to Leadtools.Medical.HL7 Getting Started -> .NET Framework tab -> Sample Programs.

HL7 Relay Demo Overview

Windows Service

The Windows Service can be started and stopped using the buttons at the top of the application. The port used may be adjusted as well.

HL7 Relay Settings

Windows Service Tab

The Windows Service tab allows installation or removal of the Windows Service.

Configuration

Various listeners can be relayed various HL7 messages depending on the type of message the HL7 Relay receives.

Create listeners list

First provide a list of listeners that will receive the relayed message.

HL7 Destination versus HL7 Destination Lookup

There are two options on how to tell the HL7 Relay where to relay the messages:

  1. Message Type Association – HL7 Destination: Associate each listener with the type of message they should receive within the HL7 Destination.
  2. Specify listener name in message – HL7 Destination Lookup: The name of the listener that should receive the relayed message can also be provided within the HL7 Message itself.

HL7 Destinations

Use the HL7 Destinations tab to add listeners where HL7 messages should be relayed to.

HL7 Destinations
HL7 Destinations Options

HL7 Groups

Use the HL7 Groups tab to associate an HL7 Destination with an HL7 Message type or types.

Below is an example where the HL7 Message type ADT_A01 is associated with the HL7 Modality Worklist destination. The HL7 Modality Worklist destination is defined in the HL7 Destinations list.

HL7 Groups
HL7 Groups Options

HL7 Destination Lookup

Use the HL7 Destination Lookup tab to define the HL7 field that will contain the name of the location to relay the message to. This option is used for a very specific user case and will not typically be available in most environments.

Testing/Using the demo

The demo has two destinations that are already configured:

With the HL7 Relay Service running, send the HL7 ADT_A01 message using the HL7 Messaging demo HL7Messaging_Original.exe to the HL7 Relay Service. The service will receive the message, match it to the HL7 Group, and relay it to the listeners listed within the group.

Logging

The Log Options tab of the HL7 Relay Demo HL7RelayDemo_Original.exe provides several logging channels to log the activity, either to the demo itself (Debug Viewer), a file, the Windows Event Viewer, and/or a Database.

HL7 Log Options

Walkthrough

The below capture is a walkthrough illustrating how the HL7 Relay is configured with the HL7 MWL Worklist Addin. Then the HL7 Messaging Demo is used to send a ADT_A01 message to the HL7 Relay Service. Finally, it is shown that the message was received and processed by the HL7 MWL Worklist Addin.

Walkthrough

The same approach can be applied to use the demo with the HL7 Patient Update Addin.

See Also

Programming With Leadtools.Medical.HL7

Help Version 23.0.2024.9.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.