In one example of the fields we have
B&Blood -> Blood
SPUTUM&Sputum -> Sputum
We have it configured to use the original value.
I setup a pre proc to escape all Ampersands in OBR15, but not getting anywhere.
Here is the code to pre proc
######################################################################
proc escAmpersandOBR15 { args } {
keylget args MODE mode ;# What mode are we in
switch -exact — $mode {
start {
# Perform special init functions
}
run {
# ‘run’ mode always has a MSGID; fetch and process it
keylget args MSGID mh
set msg [msgget $mh]
set segList [split $msg r]
set debug 0
set count 0
foreach seg $segList {
set segID [string range $seg 0 2]
if {[cequal $segID “OBR”]} {
set obrList [split $seg |]
set obr15 [lindex $obrList 15]
regsub -all {&} $obr15 {\T\} newObr15
set newObrList [lreplace $obrList 15 15 $newObr15]
set newObr [join $newObrList |]
set segList [lreplace $segList $count $count $newObr]
}
set count [incr count]
}
set msg [join $segList r]
msgset $mh $msg
lappend dispList “CONTINUE $mh”
}
time {
# Timer-based processing
}
shutdown {
# Doing some clean-up work
}
default {
#echo “Unknown mode in EscapeAmpersands proc: ‘$mode'”
}
}
return $dispList
}