- This topic has 5 replies, 4 voices, and was last updated 6 years, 7 months ago by .
-
Topic
-
I am trying to change the MSH-4 to the value in the value 555011749 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
}
- The forum ‘Cloverleaf’ is closed to new topics and replies.