WOW that was quick! My first post!
Thanks, that didn’t seem to work.
This is the code in the “start” section
# Get the “SITE” argument
set site [keylget args ARGS.SITE]
This is the code calling it…
# Do table lookup here by site argument
set sLookUpValue [hcitbllookup tbl_FacilityByEpicDept $MSH3]
# If it’s not the site that was passed in via argument, then kill the message
if { $sLookUpValue ne $site } {
puts “KILLING message: Invalid site 2.”
set disp KILL
}
This is my error in the testing tool:
Please Wait ……
Command Issued: hcitpstest -r run -x ASCII -f nl -c sms_ib_data /hci/cis6.0/integrator/site_dev_alm/data/Cerner_WIH_ORU_Basic_Out.dat “tps_filterByFacility { SITE WIH }”
Command output:
[0:TEST] Tcl error:
msgId = message0
proc = ‘tps_filterByFacility’
args = ‘{ SITE WIH }’
result = ‘can’t read “site”: no such variable’
errorInfo: ‘
can’t read “site”: no such variable
while executing
“if { $sLookUpValue ne $site } {
puts “KILLING message: Invalid site 2.”
set disp KILL
}”
(procedure “tps_filterByFacility” line 51)
invoked from within
“tps_filterByFacility {MSGID message0} {CONTEXT sms_ib_data} {ARGS {{ SITE WIH }}} {MODE run} {VERSION 3.0}”‘