Insert an ORC segment into repeating OBR segments

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Insert an ORC segment into repeating OBR segments

  • Creator
    Topic
  • #53309
    Robert Denny
    Participant

      We are receiving one ORC segment with data only listed in the first two fields.

      For each order we receive a OBR segment followed by OBX segments.

      If the message has more than one Lab order we receive multiple OBR, OBX segments, but not the ORC segment.

      The recieving system needs to have the OBR, OBX segments preceded with the ORC segment.

      Has anyone copied a single segment and then inserted into a message in a location where there is no place for that segment?

      I am wondering if I need to modify the variant?

      Here is an example of what we receive.

      MSH|^~&|ORCHARD|OSU|GS|GS|20121004075649||ORM^O01|2012100407564920871|T|2.3

      PID|1|111-11-1001|111-11-1001||OSUTEST^LAB ONE||19800101|F|||11 OSU DRIVE^^Corvallis^OR^97331||(541) 111-1001|||||||||||||||||

      PV1|1||^^^OSU Lab||||WRENROD^Wren^Rodney||||||||||||55117|||||||||||||||||||||||||20121004075602||||||

      ORC|NW|55117||||||||||||||||||

      OBR|1|55117||BMP^BASIC METABOLIC PANEL|R||20121004075602|||^Lee^Allison||||201210040756||WRENROD^Wren^Rodney|||||||||||^^^^^R||||||||||||||||||||||||||||

      OBX|1|ST|LFASTING||N-NON-FASTING

      OBX|2|ST|OEBMPP||

      OBX|3|ST|OEBMPP1||

      OBR|2|55117||UC^CULTURE, URINE COLONY COUNT|R||20121004075602|||^Lee^Allison||||201210040756||WRENROD^Wren^Rodney|||||||||||^^^^^R||||||||||||||||||||||||||||

      OBX|1|ST|LMICCOM||

      OBX|2|ST|OESR||UR-URINE

      OBX|3|ST|OEDQ||CC-CLEAN CATCH

      Here is what we need it to look like

      MSH|^~&|ORCHARD|OSU|GS|GS|20121004075649||ORM^O01|2012100407564920871|T|2.3

      PID|1|111-11-1001|111-11-1001||OSUTEST^LAB ONE||19800101|F|||11 OSU DRIVE^^Corvallis^OR^97331||(541) 111-1001|||||||||||||||||

      PV1|1||^^^OSU Lab||||WRENROD^Wren^Rodney||||||||||||55117|||||||||||||||||||||||||20121004075602||||||

      ORC|NW|55117||||||||||||||||||

      OBR|1|55117||BMP^BASIC METABOLIC PANEL|R||20121004075602|||^Lee^Allison||||201210040756||WRENROD^Wren^Rodney|||||||||||^^^^^R||||||||||||||||||||||||||||

      OBX|1|ST|LFASTING||N-NON-FASTING

      OBX|2|ST|OEBMPP||

      OBX|3|ST|OEBMPP1||

      ORC|NW|55117||||||||||||||||||

      OBR|2|55117||UC^CULTURE, URINE COLONY COUNT|R||20121004075602|||^Lee^Allison||||201210040756||WRENROD^Wren^Rodney|||||||||||^^^^^R||||||||||||||||||||||||||||

      OBX|1|ST|LMICCOM||

      OBX|2|ST|OESR||UR-URINE

      OBX|3|ST|OEDQ||CC-CLEAN CATCH

    Viewing 2 reply threads
    • Author
      Replies
      • #77236
        Jim Kosloskey
        Participant

          Robert,

          The HL/7 standard for an ORU is that the ORC be part of a repeating group – like this:

          {

           [ORC]

           OBR

           [{NTE}]

           {

              [OBX]

              [{NTE}]

            }

            [{CTI}]

          }

          The above taken from 2.3.

          So you need to manage your own counter for the ORC group repetition but this is definitely doable inside the Xlate.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #77237
          Daniel Lee
          Participant

            While doing this, I would also double check with the receiving system to see if they are expecting a unique order number in the ORC-2.  The transactions you have as samples are using the same order number.  This ‘may’ be ok, just something I would verify with them because it may be a more significant issue than just getting Cloverleaf to format it correctly.

          • #77238
            Robert Milfajt
            Participant

              Many vendors interpret HL7 in many different ways.  If you’re vendor is unwilling to change, you will need to modify your inbound variant to accomodate the single ORC and repeating OBR/OBX group underneath.  You should be able to do all you need within an Xlate if your variants are set up properly.

              Get your vendors to send you copies of their specifications, it will make building the formats easier.

              Hope this helps,

              Robert Milfajt
              Northwestern Medicine
              Chicago, IL

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