Kill message based on PV1.18

Clovertech Forums Cloverleaf Kill message based on PV1.18

  • Creator
    Topic
  • #115657
    Rich
    Participant

      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

    Viewing 1 reply thread
    • Author
      Replies
      • #115658
        Jim Kosloskey
        Participant

          Basically you have 2 options:

          1.  Use/write a Tcl proc prior to Xlate to test for the condition and KILL accordingly.
          2.  Inside an Xlate use the SUPPRESS Action with an IF Action to KILL the message.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #115717
          Robert Kersemakers
          Participant

            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

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.