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
Cloverleaf
Kill message based on PV1.18
System
Originally posted by Rich
As always, thank you in advance for the awesome responses!
I need to kill a message if PV1.18 is either CL or CLRH. How would you suggest I do this with Cloverleaf 6.0?
Thanks,
Rich
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Basically you have 2 options:
Use/write a Tcl proc prior to Xlate to test for the condition and KILL accordingly.
Inside an Xlate use the SUPPRESS Action with an IF Action to KILL the message.
RobertKersemakers
Do you have a (basic?) tcl script called 'gc_filterHL7msgUsingFieldValue'. If so, you can use this script on inbound TPS or Pre Procs with these parameters:
{SEGMENT PV1} {FIELD 18} {SUBFIELD 0} {TYPE regexp} {VALUE ^CL$|^CLRH$} {MODE KILL} {NONMATCH CONTINUE}
Test this script first with the testing tool and some example messages.