I created the following script it is not working. Help
# Fix HEADER Albert
proc tpsFixQuantros { args } {
keylget args MODE mode ;# Fetch mode
set dispList {} ;# Nothing to return
switch -exact — $mode {
start {
# Perform special init functions
# N.B.: there may or may not be a MSGID key in args
}
run {
# ‘run’ mode always has a MSGID; fetch and process it
keylget args MSGID mh
#get the current message
set msg [msgget $mh]
set msg [replaceHL7Field $msg “MSH” “3” “555011749”]
msgset $mh $msg
# Continue the message
lappend dispList “CONTINUE $mh” ;#continue the message
}
time {
# Timer-based processing
# N.B.: there may or may not be a MSGID key in args
}
shutdown {
# Doing some clean-up work
}
default {
error “Unknown mode ‘$mode’ in tpsFixQuantros”
}
}
return $dispList
}