ORU message and Organisms to OBR

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf ORU message and Organisms to OBR

  • Creator
    Topic
  • #53605
    Tim Pashon
    Participant

      Here is my incoming HL7 message coming from our Lab system and going into Cerner.  There are 2 OBX segments that are ORGANISMS, number 3 and number 8.  I’m trying to create an OBR segment for each of these to send into Cerner.

      MSH|^~&|MIC|SCC||SLAB|201303251408||ORU^R01|00011666|P|2.4

      PID|||99999998||TEST^ACCOUNT||19410101|F||U|ADDRESS^^STERLING^IL^61081|||||||5326133

      PV1|1|O|20^^^^^^^^S1||5326133||SRMS|||||||||H|SRMS||||||||||||||||||||||SLAB|||||201303211024

      ORC|RE|1249940X1|1|L9210006|||^^^20130321^^R||201303211024|MSLAT||SRMS|20^S1

      OBR|1|1249940X1|1|87040^BLOOD C AND S|||201303211159|||WM||||201303211159||SRMS|||||+||||F

      OBX|1|ST|87040^BLOOD C AND S||||||||F||+

      OBX|2|ST|PCOM||Gram negative rod isolated from anaerobic bottle from this~blood culture set.||||||F||+

      OBX|3|ST|ORG^Organism|1|esccol^Escherichia coli||||||F

      OBX|4|ST|OCOM|1|ESBL||||||F

      OBX|5|ST|am^Ampicillin|1|8|||R

      OBX|6|ST|sam^Ampicillin/Sulbactam|1|8|||R

      OBX|7|ST|cz^Cefazolin|1|1|||S

      OBX|8|ST|ORG^Organism|2|pseaer^Pseudomonas aeruginosa||||||F

      OBX|9|ST|caz^Ceftazidime|2|1|||S

      OBX|10|ST|cip^Ciprofloxacin|2|1|||S

      I’m not having much luck.  Can I get some help?

      Thanks!

      Tim

    Viewing 6 reply threads
    • Author
      Replies
      • #78266
        Robert Kersemakers
        Participant

          You will need a segmentcounter (%s9) or most probably a groupcounter (%g9) to keep track of the outbound OBR-segments.

          In short:

          * Initiate counter: COPY =0 -> $%g9

          * Iterate through inbound OBX segments; probably using one or more groupvariables %g1 and %g2.

          * IF OBX-3[0] eq =ORG then copy all the needed information from inbound OBR/OBC into outbound OBX, using %g9 as the groupcounter for the outbound OBX. After this increment %g9: MATH ADD $%g9 =1 -> $%g9

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #78267
          Tim Pashon
          Participant

            I got the message to work as I originally asked the question but now a change has occurred.  We want to create a new message each time there is to be a new OBR segment.  I have tried using “CONTINUE” with “SUPPRESS” but haven’t gotten my desired results.

            Any thoughts?

            Thanks!

          • #78268
            Jim Kosloskey
            Participant

              Tim,

              Normally you only need the SUPRESS once (I typically place mine at the beginning of the Xlate to remind me I am controlling the creation of the messages).

              Then the CONTINUE goes at the point you realize you need a new message.

              What exactly is not working for you?

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

            • #78269
              Tim Pashon
              Participant

                Currently, when I don’t use a CONTINUE, I have all the segments I want in the output, just not broken into separate messages.  When I put the CONTINUE in where I think it should go, my output is missing the last several segments.

              • #78270
                James Cobane
                Participant

                  Tim,

                  At whatever point in the translation you place the CONTINUE, that is where the message will get generated.  So, if you are placing the CONTINUE before the COPY statements of some other fields/segments that are needed, you will need to adjust the placement of your CONTINUE statement.

                  Jim Cobane

                  Henry Ford Health

                • #78271
                  Alise Blankenship
                  Participant

                    I need to add OBR segments to an ORU message also. I have made the suggested changes from this post and the OBX segment now looks like an OBR segment. But don’t I need to change the segment identifier from OBX to OBR? If so, how do I do that?

                    Thank you in advance for any help you can give me!

                    Alise Blankenship

                    Interface Programmer/Analyst

                    Tricore Reference Laboratories

                  • #78272
                    Jon Blanchard
                    Participant

                      It sounds like you are copying the contents of the source OBX segment into a customized destination OBX segment.

                      Whether you send a single message with multiple OBR/OBX groups or multiple messages containing a single OBR/OBX group, you will need to copy the contents of the OBX segment into the outbound OBR segment. Then populate the subordinate OBX segments for that group.

                      Migration Consultant
                      Coffee Regional Medical Center
                      Eastern Time Zone

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