Skip to main content

Counting Fields

Counting Fields

If the path refers to a repeating field, you can use (*) to return the number of fields. For example, ORCgroup is a repeating field in an HL7 message. The following expression returns the number of ORC groups in the first PID group:

 HL7.{PIDgrpgrp(1).ORCgrp(*)} 
Important:

To count fields within DTL, use ("*") instead of (*).

This syntax is also available for collection properties in standard messages.

FeedbackOpens in a new tab