grmpathinfo

This returns the group info into which the segment is grouped. segId is the line number of the segment in the message definition, not including the prologue. The first line index is "0."

grmpathinfo grmId segId   

For example, a user must find which group segment IN2, whose line number is 27, of ADT_A01 with version 2.5 is grouped into.

To do this, the user can run grmpathinfo $mh 27 in a hcitcl shell:

set grm [grmcreate -msg $mh hl7 2.5 {} ADT_A01]
set pathinfo [grmpathinfo $grm 27]
puts $ pathinfo  
   
Result: 5 0

This identifies the group path of IN2, that is, the parse result address of IN2 is similar to 5(0).0(0).IN1(0).