First of all let me say for the 100000th time 😆 There should be no such animal as recover_38, recover_53, etc. The name recover_33 is based on the fact that we changed the way State 14 recovery was done starting with Cloverleaf 3.3. The name recover_33 was used to differentiate between the existing recover.tcl and the (then) new procs. The same procs that worked for Cloverleaf version 3.3 work just as well with Cloverleaf 5.3.
The error you are getting tells me that you have not properly configured the recover procs. You should have a resend proc in reply ‘generation’, a sendOK proc in Send OK Procs and a check_ack, valiadte_ack or whatever you call it in Tps IB Reply.
You get this error because the procedure, getHL7Segment is not available.
IMHO, this is a poor way to parse an HL7 message. Everytime the routine is called, it re-parses the message and loops till it gets the wanted segment.
The ACK message is very easy to parse in-place. No fancy routines are needed. I also don’t understand the ACKFLAG thing. I guess its another case of make one size fit all. Another thing I am not in favor of.