Originally posted by Roman Partigula
Hi everybody
I want to use grm object but I don't know how to do it for
multiple segments though. For example if I want to get a patient
name my code will be:
keylget args MSGID mh
set gh [grmcreate -msg $mh hl7 $ver $variant type ]
set dh [grmfetch $gh 0(0).PID(0).00108 ]
set patName [ datget $dh VALUE]
But what should I do if it is a multiple segment like OBX for example?
set dh [grmfetch $gh 0(0).OBX(i).00573 ]
I guess I would have to do an iteration by
but I don't know how many OBX segments there
Please advice
Thanks