infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
tclproc to kill messages
Kevin Crist
i am trying to figure out how to write a tclproc to kill some messages. here is what i am trying to do:
i have an application that wants all hematology lab results and chem results that have the bilirubin test in it.
I am having trouble figuring this out with tcl (still learning)
IF OBR18 != HEMA KILL THE MESSAGE AND
I ALSO WANT TO KILL MESSAGES THAT IF OBR18 !=CHEM AND SOMEWHERE IN TEST IS BILIRUBIN.
THANKS FOR YOUR IDEAS AND HELP.
Find more posts tagged with
Clovertech
Comments
Tom Rioux
One way to do it is to use a switch statement instead of an IF statement. This could provide you with some flexibility in case the application wants to start recieiving other types of messages or tests.
Thanks...Tom
switch -exact -- $OBX18 {
HEMA { lappend $dispList "CONTINUE $mh" }
CHEM {
if { [lcontain $test "BILIRUBIN"] } {
lappend $dispList "CONTINUE $mh"
} else {
lappend $dispList "KILL $mh"
}
}
default { lappend $dispList "KILL $mh"}
}
return $dispList