.br

  • Creator
    Topic
  • #53135
    Omar Ujageer
    Participant

      Hello Clovertechers and happy Friday,

      I have an ORU Message coming in that needs to go to

      Meditech. The messages originate in E-Gate, sent to me in Cloverleaf (5.7) and then I have a corresponding Variant and

      Xlate that does a few things including matching up the result to the correct patient, populating pid3 and pid18 with mr# and account# and then forwarding off to Meditech. That works fine. The challenge that I have is that when I receive the ORU in Cloverleaf, for text results, the message comes in the following format:-

       

      MSH|^~&|LAB|RWJ|MEDITECH|CSH|20120607135238||ORU^R01|Q154395283T184514124|P|2.3|eGate Seq# 6701 ==  499 == Admitted: 20120321162400

      PID|1||4503003^^^MRNNB||NEWBRUNSWICK^LAB||20000428|F||||||||||4990339^^^Account Number NB

      OBR|1|428^CSH Order ID|144797643^HNAM_ORDERID|PROT C^PROT C|||20120509111400||||||CSH# 428,|20120510074800|Blood&Blood|506990^Castello^Frank^~||12-130-0016||||20120607135237|||F||1^^^20120509111400^^DN|||||||||20120509111400

      OBX|1|NM|PROT C^Protein C Activity^Laboratory NB||5|%|65-174|L|||F|||20120607135237||^Castagna^Edward|^^^SHHL||20120607135237||||RWJUH NB – Dept of Laboratories|1 RWJ Place^^New Brunswick^NJ^08901^USA|004073^Kuriyan, MD^Mercy^A.

      NTE|1||Interpretive Data:.br\.brTest Performed by:.br\.brUMDNJ-Robert Wood Johnson Medical School.brSpecial Hemostasis Lab – MEB Room 385.br1 Robert Wood Johnson Plaza.brMedical Director: Claire Philipp, MD.brUDL Laboratory Director: Gratian Salaru, MD.br

      The problem is that Meditech will not accept/honor the .br  in theh OBX NTE segment. Instead the company requires that I  create a separate line of NTE whevever each .br is encountered so the NTE Seg in the outbound message should look like

      NTE|1|L|LINE ONE OF TEXT

      NTE|2|L|LINE TWO OF TEXT

      NTE|3|L|LINE THREE OF TEXT

      How can I get this accomplished ? Do I add an OBX group iterate

      and use a MATH ADD ? I have never used the MATH ADD so it

      is unclear how to use this functionality.

      Can you please help and thanks ~~

      Omar

    Viewing 2 reply threads
    • Author
      Replies
      • #76686
        Charlie Bursell
        Participant

          Certainly easy to do in a Tcl pre proc.

          But the question arises.  What to do with double  .br  and  .br  at the end?  Do you create an empty NTE segment?

          Sounds like they want you to format their data for them  ðŸ˜€

        • #76687
          Omar Ujageer
          Participant

            Hi Charlie,

            Yes, empty note segments sb ok. I checked with our vendor on the

            last .br and they stated that it does not have to be touched so

            only the actual .br that precedes that last one need to go to separate

            NTEs. Do you have a tcl that I can use or point me in the right direction

            on how to get this accomplished ?

            Thanks

            Omar

          • #76688
            Charlie Bursell
            Participant

              Just use string map and map .br to n

              foreach new [string map

                $NTE] {

                     if {[regexp — {^NTE} $new]} {

                           create a new NTE

                     }

                }

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