Originally posted by Thanikachalam Rajuudayar
I need some help with TCL code below. I am trying to get the value from PV1-3 Location in the HL7 message and display it. For example, the PV1-3 value is "Family Care Center" in the HL7 message, and it displays only "Family" when I echo the variable. It seems the code doesn't recognize anything from the first space and after in any HL7 fields. I tried with two cases, and the results are given below. Is there any other method / syntax to get and display all words including spaces from any HL7 field using TCL? Thanks for your help.
set mh [keylget args MSGID]
set msg [msgget $mh]
set msh [lindex [split $msg r] 0]