Clovertech
› Clovertech Forums › Cloverleaf › Kill message based on PV1.18
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
Basically you have 2 options:
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
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.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands