Wildcard Routing

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Wildcard Routing

  • Creator
    Topic
  • #48484
    Felix Ortiz
    Participant

      I am having trouble setting up a wildcard route an I hoped I could get some help.

      Our main clinical system sends ADT from a single port that need to be routed to various ancillary systems.   We decided to do out filtering/routing in a tps.  Based on a variety criteria we determin which ancillaries get the msg.  Example. ADT_A01 will go to blood blank, dietary, housekeeping, etc….

      In our first tps we stermin which systems it goes to and for each we create a new msg and insert a “route” into the metadata.

      We have a custom TrxId routine that takes the meta data and creates a TrxId.  Example BBANK^ADT^A01.

      All of this works currently, but as you can imagine there are 30 plus route defined in the inbound thread.  BBANK^ADT^A01,HMHLTH^ADT^A01,etc..

      I wanted to reduce the number by using wilcards.  

      BBANK^ADT^A[1-8] since they all use the same Xlate anyway.

      I cannot get this to work.  here is a sample from the test tab.

      ######## TRXID: BBANK^ADT^A08

      04/20/2006 10:14:27

      [xlt :rout:ERR /0:  UNNAMED_TID] No routes defined for TrxId ‘BBANK^ADT^A08’

      #### Is the output from the TrxId script.

      Wildcard routing is checked and I am running 5.1 on Aix 5.1.

      Help.

    Viewing 5 reply threads
    • Author
      Replies
      • #58749
        garry r fisher
        Participant

          Hi,

          How have you defined your route? I can never remember the syntax but you need to define the route using the wildcard syntax. I think you need to use either:

          BBANK^ADT^A* or possibly

          BBANK^ADT^A..

          Regards

          Garry

        • #58750
          Felix Ortiz
          Participant

            Just like this BBANK^ADT^A[1-8].  it was more complex, but I kept reduce it until ihad the most basic.

          • #58751
            garry r fisher
            Participant

              Hi,

              Shouldn’t it be:

              BBANK^ADT^A0[1-8]

              If you are not restricted by the numeric boundary try one of the other options I suggested.

              Garry

            • #58752
              Rentian Huang
              Participant

                Felix,

                I think all these will work.

                BBANK^ADT^A0[1-8]

                BBANK^ADT^A*

                BBANK^ADT^A..

                Also, don’t forget to check the “Wild Card Route” checkbox.

                Sam  8)

              • #58753
                garry r fisher
                Participant

                  Hi,

                  I’m sure I said that:-)

                  Garry

                • #58754
                  Felix Ortiz
                  Participant

                    Thanks

                    BBANK^ADT^A0[1-8]

                    Worked like a charm.  I don’t know why I missed the 0.

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