Question about multiple outputs with a filter

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Question about multiple outputs with a filter

  • Creator
    Topic
  • #53270
    Cliff Stark
    Participant

      I have an ADT interface coming into CIS.

      I need to ouput the ADT to two different systems, each having it’s own xlate.  

      One of the systems has a filter that only allows a certain service location to process.  Everything else suppresses.

      The other one basically is just a bunch of copy statements.

      Both xlates are receiving ADT.*

      In the route mesages tab, both xlates are listed under the same route but this is causing them to sort of use both xlate files.  

      Can someone tell me what I have to do to use the same ADT feed to copy to each outbound thread and use separate xlates?

    Viewing 2 reply threads
    • Author
      Replies
      • #77110
        Robert Kersemakers
        Participant

          Hi Cliff,

          If you already have 2 details under the route, then you just need to change the xlate of one of the details. Double click on the detail and change the xlate.

          If you only have one detail, you will need to add an extra detail to the route you have already defined. Click on the specified route and then use the button ‘Add new detail’. Here you can define the xlate and destination for the ‘other’ translation.

          Example attached.

          If one of the details needs an extra filter (certain service location), the best place to put the filter is the Pre-procs in the Xlate Route Details.

          Hope this helps.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #77111
          Cliff Stark
          Participant

            I think I understand what you are saying but I’m not sure what to put in the pre-proc of the xlate.  

            You are correct, I need certain service locations to be filtered.  

            I have 2 xlates built, one with a filter and one without and I created 2 HCI_Static_route_1

            HCI_Static_route_2

            This sort of works but I seem to still have issues sometimes.

            Thank you for your reply.

          • #77112
            Robert Kersemakers
            Participant

              You will need to use a standard or self-made tcl-proc to filter messages. I have included an example, where I filter messages based on a field in the AIL segment.

              I’m not sure if the proc ‘gc_filterHL7msgUsingFieldValue’ is a standard proc; I think it is something that is made by our Dutch supplier, so I can’t send it over to you. But there should be other procs that will filter messages based on the value of a specified field. I have seen some discussions about that on this forum.

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.