I’ve been asked to make this change in the OBX segment of an HL7 message:
Change from this OBX|||||https://ein.changehealthcare.com/viewer/encurl?mrn=M000001140\T\aa=DEFAULT\T\accession=A0000001021\T\os=DEFAULT
To this OBX|||||https://ein.changehealthcare.com/viewer/encurl?mrn=M000001140&aa=DEFAULT&accession=A0000001021&os=DEFAULT
Where I need to remove the \T\ everywhere in this URL string in segment 5 and substitute an & in that place.
I’m thinking I need a TCL Proc that will split the URL string to the \T\ characters, substitute the & in the 3 places where it needs to be, then concatenate the string back together. Which is the best way to do this, a TCL proc or Xlate? Does anyone have an example of a TCL proc or Xlate that shows/explains how to do that? I’m new to Cloverleaf and TCL so any help would be greatly appreciated!