Tom,
I finally got time to set this up in an Xlate.
Here is the Tcl line I had in a COPY of 1(0).1(0).1(0).OBX(0).#5(0) to 1(0).1(0).1(0).OBX(0).#5(0):
set xlateOutVals [lreplace $xlateOutVals 0 0 [string range [lindex $xlateInVals 0] 20 end]
The only thing I see different here is the addition of the ‘set xlateOutVals’ but I assume you had that.
Here is the result in the Xlate Testing Tool:
TEST XLTECHO v1.1: *** START *********************************************************************************************
TEST XLTECHO v1.1: xlateInList >@xltecho_debug {=Inbound OBX-5…} 1(0).1(0).1(0).OBX(0).#5(0)<
TEST XLTECHO v1.1: xlateInVals >Y {Inbound OBX-5…} {E\EendoEreportsE303723EverEProcedureNote.pdf}<
TEST XLTECHO v1.1: There are >3< elements in the Source list.
TEST XLTECHO v1.1:
Start
TEST XLTECHO v1.1: Source element >0@xltecho_debugY<.
TEST XLTECHO v1.1: Source element >1LITERALInbound OBX-5…<.
TEST XLTECHO v1.1: Source element >21(0).1(0).1(0).OBX(0).#5(0)E\EendoEreportsE303723EverEProcedureNote.pdf<.
TEST XLTECHO v1.1:
End
TEST XLTECHO v1.1: *** START *********************************************************************************************
TEST XLTECHO v1.1: xlateInList >@xltecho_debug {=Outbound OBX-5 After trimming…} ~1(0).1(0).1(0).OBX(0).#5(0)<
TEST XLTECHO v1.1: xlateInVals >Y {Outbound OBX-5 After trimming…} {E303723EverEProcedureNote.pdf}<
TEST XLTECHO v1.1: There are >3< elements in the Source list.
TEST XLTECHO v1.1:
Start
TEST XLTECHO v1.1: Source element >0@xltecho_debugY<.
TEST XLTECHO v1.1: Source element >1LITERALOutbound OBX-5 After trimming…<.
TEST XLTECHO v1.1: Source element >2~1(0).1(0).1(0).OBX(0).#5(0)E303723EverEProcedureNote.pdf<.
TEST XLTECHO v1.1:
End
MESSAGE 1
0(0).MSH(0) : >|^~&|LAB|SCC|CLOVERLEAF|MDACC|20100323115641||ORU^R01|00278280|D|2.4<
1(0).0(0).0(0).PID(0) : >|||0000002||TEST^ALOHA||19750405|F||U||||||||000000000004<
1(0).0(0).0(0).NTE(0) : >|1||?EDTA Clumper 02/23/2010 09:50<
1(0).0(0).1(0).PV1(0) : >||I|00006^101^A||000000000004||00020^HUARINGA^ARMANDO^J^^^^^^^^^MDACC~F13939^^^^^^^^^^^^UPIN~1821110271^^^^^^^^^^^^NPI||||||||||~^^^^^^^^^^^^UPIN~^^^^^^^^^^^^NPI|I<
1(0).1(0).0(0).ORC(0) : >|RE|152300001:188|188|152300001|||^^^20100323^^R||201003230741|SCC|||00006^B4<
1(0).1(0).0(0).OBR(0) : >|1|152300001:188|188|Y1167^Metanephrines, Fractionated, Urine^^Y1167|||201003230600|||SCC||||201003230741||00020^HUARINGA^ARMANDO^J^^^^^^^^^MDACC~F13939^^^^^^^^^^^^UPIN~1821110271^^^^^^^^^^^^NPI||||||||REF01|P|||||||SCC||SCC<
1(0).1(0).0(0).NTE(0) : >|1||This is an order comment.<
1(0).1(0).1(0).OBX(0) : >|1|ST|Y1171^Collection Duration, Urine^^ ||E303723EverEProcedureNote.pdf||||||F|||201003230741||SCC|201003230743<
I put the OBX-5 field in question in Bold in the mesage.
Seems to work fine for me.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.