I’m probably just making this too hard. Trying to copy the free-text Chief Complaint from the appropriate DG1 component to PV2-3 where Cerner likes to see it as the Reason For Visit and remove a creative user’s backslash…
xlateInVals = SOME PHRASE LIKE THIS
using the COPY pre-proc of
regsub -all {\} $xlateInVals {} xlateOutVals
xlateOutVals = SOME
Okay, I’ve commited the cardinal Cloverleaf sin of not treating xlateInVals as a list…so I change to
regsub -all {\}
xlateOutVals = SOME PHRASE LIKE THIS
Ta-da! Well, not quite mon hombre…When testing
xlateInVals = SOME PHRASE LIKE THIS or,
xlateInVals = SOME PHRASE LIKE THIS
without the backslash or with it elsewhere than the end, I get
xlateOutVals = {SOME PHRASE LIKE THIS}
with those pesky curly braces. I tried using string map and got strange results too:
set xlateOutVals [string map {{\} {}}
SOME PHRASE LIKE THIS => {SOME PHRASE LIKE THIS}
SOME PHRASE LIKE THIS => {SOME PHRASE LIKE THIS}
and my favorite, the original culprit:
SOME PHRASE LIKE THIS => SOME PHRASE LIKE THIS
All this was done in the Xlate Testing Tool.
Any assistance would be much appreciated.