I’m having trouble with my tcl script. I need to copy a custom Z segment field (Laterality/Body Part/Approach) to AIS.12. The Z field is not always in the same place so I have to do a search and copy on the actual text). What’s the best way to accomplish this?
Here’s a snippet of my smat.
ZBX|20|IS|Surg Priority^Surg Priority||Urgent||||||||Event Detail
PID|1|9999999^^^XXXXXX|9999999^^^|||||||0|||||N
PD1|||.^^0
PV1|1|P|INT^^^FACILITY^^Nurse Unit(s)^FACILITY|||||||SUR||||||||PRO|||||||||||||||||||||FACILITY||PA
RGS|1
AIS|1||2567967417^Incision and Drainage|20200601170000|0|minutes|34|minutes||Future
ZBX|24||Laterality/Body Part/Approach|Surgery|Left
ZBX|25||Laterality/Body Part/Approach|Surgery|Hand
ZBX|26||Additional Procedure Detail|Surgery|
ZBX|27||Laterality/Body Part/Approach|Surgery|Right
ZBX|5||Additional Procedure Detail|Surgery|INCISION AND DRAINAGE