Incoming ORM message – Add OBX to OBR’s

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Incoming ORM message – Add OBX to OBR’s

  • Creator
    Topic
  • #48788
    Femina Jaffer
    Participant

      Hello All,

      I could really use some help on this if possible, as I have burned myself trying to figure this out.

      I need to create an OBX segment for each OBR message in an incoming ORM message.  I could do this in tcl, but we are trying to implement a standard here to use xlates whenever possible.

      I am ABLE to get the first occurence of the OBR to generate an OBX, but I can not do this for the repeating occurences (second or third).  Here is what I have got so far, and help or advice would be much appreciated (the inbound message is coming from a meditech system without an OBX).

      ITERATE BASIS:  group:     2(0).1       %g1

      –>IF 2(%g1).1(0).0(0).OBR(0).00249.[0] ne @null


      > COPY 2(%g1).1(0).0(0).OBR(0).00249.[0]

                          => 2(0).1(0).1(0).0(%g1).OBX(0).00573.[0]

      OBX (output) basis looks like this:

      2.1.1.0   or  2(0).1(0).1(0).0(0)

      ANY HELP or feedback would be so much appreciated.  Thanks.

      Mina

    Viewing 2 reply threads
    • Author
      Replies
      • #59678
        Anonymous
        Participant

          Hi Femina,

          I’m assuming you already checked this, but check your outbound variant to make sure that the OBX segment is set up as repeating.   If this is set up correctly, then the next thing I would try is to take an outbound message to that system that you know already has multiple OBX’s.  Run that message through the HL7tester against your variant.  Take a look at how it is repeating and make sure you have your variable in the correct position.

          If neither of these work, you have my email, feel free to contact me.

          Thanks….

          Tom Rioux

          The Methodist Hospital

        • #59679
          Femina Jaffer
          Participant

            Thank you Tom.  All of this has been checked, and I am still having this problem.

            fj

          • #59680
            Femina Jaffer
            Participant

              Thank you Rentian (Sam), and Tom.  

              I finally got this too work, I had to change the iterate type to segment and basis (%s1) as my bais was:

              2(0).1(0).0(0).OBR

              Thank you again guys!

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