I am working on a translation for HL7 messages and I need to determine if the GT1 segment is present in the input message. If it is, I need to do a table lookup. I am thinking that I need to do an IF action with the Evaluate First operator. I am assuming that this will evaluate some arbitrary TCL code and I can then compare the return value to some constant. I am also assuming that this TCL code has some handle to message handles and whatnot.
Is there some TCL procedure that can determine if the segment is present? I suppose I could do a regex search on the message text, provided my assumptions are correct. Is there a better way to accomplish this?
Thanks,
–dennis