Split HL7 Message

Overview

The Split HL7 Step allows users to split an HL7 message based on repeating segments. This is useful for handling messages that contain multiple orders, observations, or charges that need to be processed as separate messages.

Additionally, this step can be combined with the Conditional Step to route split messages to different destinations based on message data.

Input Parameters

HL7 Message Data Type – Specifies the type of HL7 message to be split (e.g., ADT, ORM, ORU).

Split Segment Data Type – Defines the repeating segment where the message should be split (e.g., ORC, OBR, FT1).

HL7 Message Data – The raw HL7 message content to be processed.

Use Case Example

A lab system sends a single ORM message containing multiple orders (ORC segments). The Split HL7 Step can break this into individual ORM messages, each containing a single order, for processing by different systems.

For advanced routing, combine with a Conditional Step to send split messages to different destinations based on criteria such as facility ID or message type.

INPUT MESSAGE
MSH|^~\&|LIS|HOSPITAL|HIS|HOSPITAL|202412161530||ORM^O01|MSGID1234|P|2.3
PID|1||123456^^HOSPITAL||Doe^John||19700101|M||C|123 Main St^^Anytown^ST^12345||(555)555-1234|||||||
PV1|1|I|W^123^01||||12345^AdmittingDoctor^MD|||||||||1234567890|||||||||||||||||||||||
ORC|NW|ORD12345||12345||||202412161200|||12345^OrderingDoctor^MD
OBR|1|ORD12345|LAB54321|^CBC^L|||202412161200||||||N||||||^^^LAB^R|||F
OBX|1|NM|1234-5^WBC^LN||5.2|10^9/L|4.0-11.0|N|||F
OBX|2|NM|789-8^HGB^LN||14.0|g/dL|13.5-17.5|N|||F
ORC|NW|ORD12346||12346||||202412161230|||12345^OrderingDoctor^MD
OBR|2|ORD12346|LAB54322|^BMP^L|||202412161230||||||N||||||^^^LAB^R|||F
OBX|1|NM|2951-2^Sodium^LN||140|mmol/L|135-145|N|||F
OBX|2|NM|2823-3^Potassium^LN||4.2|mmol/L|3.5-5.0|N|||F
ORC|NW|ORD12347||12347||||202412161245|||12345^OrderingDoctor^MD
OBR|3|ORD12347|LAB54323|^Lipid Panel^L|||202412161245||||||N||||||^^^LAB^R|||F
OBX|1|NM|2089-1^Cholesterol^LN||190|mg/dL|<200|N|||F
OBX|2|NM|2093-3^Triglycerides^LN||150|mg/dL|<150|N|||F

OUTPUT MESSAGES

MSH|^~\&|LIS|HOSPITAL|HIS|HOSPITAL|202412161530||ORM^O01|MSGID1234|P|2.3
PID|1||123456^^HOSPITAL||Doe^John||19700101|M||C|123 Main St^^Anytown^ST^12345||(555)555-1234
PV1|1|I|W^123^01||||12345^AdmittingDoctor^MD|||||||||1234567890
ORC|NW|ORD12345||12345||||202412161200|||12345^OrderingDoctor^MD
OBR|1|ORD12345|LAB54321|^CBC^L|||202412161200||||||N||||||^^^LAB^R|||F
OBX|1|NM|1234-5^WBC^LN||5.2|10^9/L|4.0-11.0|N|||F
OBX|2|NM|789-8^HGB^LN||14.0|g/dL|13.5-17.5|N|||F

MSH|^~\&|LIS|HOSPITAL|HIS|HOSPITAL|202412161530||ORM^O01|MSGID1234|P|2.3
PID|1||123456^^HOSPITAL||Doe^John||19700101|M||C|123 Main St^^Anytown^ST^12345||(555)555-1234
PV1|1|I|W^123^01||||12345^AdmittingDoctor^MD|||||||||1234567890
ORC|NW|ORD12346||12346||||202412161230|||12345^OrderingDoctor^MD
OBR|1|ORD12346|LAB54322|^BMP^L|||202412161230||||||N||||||^^^LAB^R|||F
OBX|1|NM|2951-2^Sodium^LN||140|mmol/L|135-145|N|||F
OBX|2|NM|2823-3^Potassium^LN||4.2|mmol/L|3.5-5.0|N|||F

MSH|^~\&|LIS|HOSPITAL|HIS|HOSPITAL|202412161530||ORM^O01|MSGID1234|P|2.3
PID|1||123456^^HOSPITAL||Doe^John||19700101|M||C|123 Main St^^Anytown^ST^12345||(555)555-1234
PV1|1|I|W^123^01||||12345^AdmittingDoctor^MD|||||||||1234567890
ORC|NW|ORD12347||12347||||202412161245|||12345^OrderingDoctor^MD
OBR|1|ORD12347|LAB54323|^Lipid Panel^L|||202412161245||||||N||||||^^^LAB^R|||F
OBX|1|NM|2089-1^Cholesterol^LN||190|mg/dL|<200|N|||F
OBX|2|NM|2093-3^Triglycerides^LN||150|mg/dL|<150|N|||F