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
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.
Maybe https://docs.intersystems.com/irisforhealth20243/csp/docbook/DocBook.UI....
That only works for Segments, Don. The request was for a method to iterate over a repeating field within a segment.