Written by

Question Will · Jan 30

How to iterate over HL7 field repetitions in routing rule?

We can loop over segment group or repeatable segments with FOREACH in business rules. How can we loop over repeated fields within a segment in business rule?

Thank you

Product version: IRIS 2024.2

Comments

Jeffrey Drumm · Jan 30

There's no GUI-based way to iterate over a repeating field in a routing rule, but you can create a custom function that will be available from the drop-down Function list in the expression editor. That can iterate over the repeating field and return whatever value you're looking to test against.

0
Jeffrey Drumm  Feb 3 to Don Rozwick

That only works for Segments, Don. The request was for a method to iterate over a repeating field within a segment.

0