Home Applications A Configurable Template for Automated Splitting of HL7 Repeating Segments

A Configurable Template for Automated Splitting of HL7 Repeating Segments

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
8
Views
0
IPM installs
0
0
Details
Releases (1)
Reviews
Issues
Split and Send HL7 message

What's new in this version

Initial Release

A Configurable Template for Automated Splitting of HL7 Repeating Segments

Introduction

HL7 messages often contain multiple repeating segments such as NTE, AL1, OBX, ZTX, DG1, and others. These segments sometimes require individual processing and routing to different downstream systems. This technical paper introduces a configurable template designed to automate the splitting of these repeating HL7 segments, improving message handling and integration efficiency.
This template offers flexibility by allowing users to either send the message as-is with the required logic applied or split the message based on customizable settings defined within the business process configuration. Importantly, this approach supports reuse across various use cases and HL7 schemas. Please note that you may need to update or modify a few lines of code depending on your HL7 schema or any custom schema you use. The source message must conform to your message schema.

Key configurable parameters include:

• Message type selection

• Identification of repeating segments

• Segment group definitions

• Unique identifier settings

Highlights:

• The source message can contain multiple repeating segments such as NTE, AL1, OBX, etc.

• You can send the entire message without splitting it, applying only your logic, to downstream systems.

• Alternatively, you can split the message according to your instructions and send the segments separately to one or multiple downstream systems as needed.

This process is designed to split any repeating HL7 message segment and route it to the chosen downstream systems. It functions as a reusable template, requiring little to no code modification to adapt to your specific needs. The process provides dynamic configuration settings within the business process setup, allowing users to customize message splitting as needed. The main settings are detailed in Table 1 below:

The process provides dynamic configuration settings within the business process setup, allowing users to customize message splitting as needed. The main settings are detailed in Table 1 below:

Table 1: Process Settings – Configurations

Table

Usage Instructions

  1. Copy the provided code and create a new business process in the HealthConnect Management Portal using the code class.

  2. Navigate to Process, Settings, then select TargetConfigurations.

🎯 Target Configuration Screenshot

Management Portal

  1. Choose the operations and target systems where you want to send the message.

  2. Configure all settings as specified in the table above according to your requirements and apply the changes.

  3. Restart your process to activate the new configuration.

TESTING:

Screenshot 1: Management Portal showing sending the entire source HL7 message and sending repeating segments to three different systems.

TargetConfiguration

Select Process, Setting and complete all the configuration according to your requirements.

Screenshot 2.a: Process settings configuration screen.

Screenshot 2a

If you need more information about any configuration, simply click the title for detailed explanations.

Screenshot 2.b: Supporting information screen.

Screenshot 2b

Examples of Source and Target Messages:

Screenshot 3: Source message containing 5 repeating ZTX segments.

Screenshot 3

Screenshot 4.a: Target system configuration sending the source message as-is and splitting the ZTX segments individually to operations.

Screenshot 4a

Screenshot 4.b: Target system sending the source message as-is and splitting only the last ZTX segment to operations.

Screenshot 4b

Another example where only split messages are sent, without sending the original full message first:

Screenshot 5: Source message with two ZTX segments split into two separate messages, each containing one ZTX segment.

Screenshot 6: Source Message

Screenshot 5_6

Screenshot 7.a: Target message containing the first ZTX segment.

Screenshot 7a

Screenshot 7.b: Target message containing the second ZTX segment.

Screenshot 7b

Additional Example with Different Configurations

In this example, the source message contains multiple repeating NTE segments, where each NTE segment is part of the group path: PIDgrpgrp().ORCgrp().OBXgrp.
The process is configured to split and send each NTE segment individually to the target system. The resulting target messages are shown below:

• Screenshot 10.a – First NTE segment

• Screenshot 10.b – Second NTE segment

• Screenshot 10.c– Third NTE segment

Screenshot 8: Process Configurations

Screenshot 8

Screenshot 9: Source message

Screenshot 9

Screenshot 10.a: Target message – First NTE segment

Screenshot 10a

Screenshot 10.b: Target message – Second NTE segment

Screenshot 10b

Screenshot 10.c: Target message – Third NTE segment

Screenshot 10c

I hope this template will help streamline your HL7 message processing.

Thank you.

Version
1.0.026 Sep, 2025
Ideas portal
Category
Solutions
Works with
InterSystems IRISInterSystems IRIS for HealthHealthShareEnsemble
First published
26 Sep, 2025
Last edited
26 Sep, 2025