Routing with help of USERDATA

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Routing with help of USERDATA

  • Creator
    Topic
  • #51502
    Vidya Sridhar
    Participant

      Hello,

      I am to send ADT’s to a system whenever PID.4 and PID.21 are not populated with an ID like ECW1234 or ECW9876. The absense of an ID that starts with “ECW” qualifies the message as an inpatient/er patient’s ADT. However, all systems including the system that I am routing the ADT to, do not want the string “ECW” in front, only the ID or the numeric part.

      Currently in production, we are removing “ECW” in front of the ID’s in PID.4 and PID.21 with a tcl proc in the Inbound TPS on the adt_in thread (or source thread). Can I use the message metadata USERDATA to mark my ADT with the string “inpat_er_pat” or something like that and then use a KILL condition based on the value in USERDATA on the route detail in the same thread as above to filter out inpatient/er patients? I can put this new proc in the Inbound TPS Stack before the proc that takes out the “ECW”. Will this work?  Will the string I put in the USERDATA “stick” to the metadata in the route detail?  

      Vidya

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

          The metadata (including USERDATA) goes with the message.

          So it will survive.

          Personally I would not do that sort of unilateral change to the message at the Inbound TPS. As you are finding ou not many changes to a message are universal.

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

        • #70532
          Vidya Sridhar
          Participant

            Thanks, Jim.

            I am working with a design that was put in previously. I think, if none of the downstreams including the new system want the alphanumeric ID, I would have put the tcl proc in Inbound TPS myself too. How differently would you have done it in your env?

            Vidya

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