Announcement

Collapse
No announcement yet.

MSH 9.2 ORU^R01

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MSH 9.2 ORU^R01


    Mirth cannot parse an ORU message that is missing MSH 9.2. ORU^R01

    Can someone provide some pre parse transformer examples on how to add the R01 to the message?

    Thanks in advance.

  • #2
    Re: MSH 9.2 ORU^R01

    Try:

    Code:
    message = message.replace("ORU","ORU^R01");
    or


    Code:
    message = message.replaceAll("ORU","ORU^R01");
    or


    Code:
    message = message.replace(\ORU\g,"ORU^R01");
    Chris Lang

    Comment


    • #3
      Re: MSH 9.2 ORU^R01

      I noticed that this command looks thru the entire HL7 message and replaces the text string ORU with ORU^R01

      Is there a potential where for example the word "CHORUS" would be replaced by "CHORU^R01S" ?

      Is the string match case sensitive?

      Thanks!

      Comment


      • #4
        Re: MSH 9.2 ORU^R01

        Thanks Chris! No more problem..

        Comment


        • #5
          Re: MSH 9.2 ORU^R01

          Cableops - Great point! (Although I can't imagine a situation where an HL7 message would mention "CHORUS", but I digress)

          The optimal solution would be to capture the exact string in the MSH header, so maybe:

          Code:
          message = message.replace("|ORU|","|ORU^R01|");
          Chris Lang

          Comment


          • #6
            Re: MSH 9.2 ORU^R01

            Just because I'm in that kind of mood....

            Can't imagine a situation like that?

            "DECORUM HEALTH CARE" - for patients who are way too obsessed with what color the furniture is.

            (Real-life experience: we once had to purchase a $400 printer stand for a client. The "simulated walnut veneer" printer stand we normally supply didn't match with their oak furniture, and they threw a fit.)

            mike

            Comment

            Working...
            X