ITERATE need help.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf ITERATE need help.

  • Creator
    Topic
  • #54492
    jos phili
    Participant

      Hello

      I need to copy OBR 4.1 into OBX 3.1. However, when i finish making my iterate, a NTE segment comes in between my OBX segment and null my iterate. How can I stop this from happening?

      OBR|1|402485836^HNAM_ORDERID||BMP^BMP|||20141211101800||||||5|20141211101816|Serum&Serum^^^^^Venous Draw|

      OBX|1|NM|BMP^BMP^LN^BUN^BUN^HL7STDSRC||12|mg/dL^mg/dL|7-18^7^18|||? |F|||20141211101929||^Test^TEST TESTTEST|^^^TEST TEST

      OBX|2|NM|BMP^BMP^LN^Creatinine^Creatinine^HL7STDSRC||1.00|mg/dL^mg/dL|0.70-1.40^0.70^1.40|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

      NTE|1||Effective 8/4/2014, the anion gap calculation no longer includes the potassium level.

      OBX|3|NM|17861-6^CALCIUM:MCNC:PT:SER/PLAS:QN:^LN^Calcium Lvl^Calcium Lvl^HL7STDSRC||9.0|mg/dL^mg/dL|8.5-10.1^8.5^10.1|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

      OBX|4|NM|2345-7^GLUCOSE:MCNC:PT:SER/PLAS:QN:^LN^Glucose Lvl^Glucose Lvl^HL7STDSRC||66|mg/dL^mg/dL|65-110^65^110|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

    Viewing 15 reply threads
    • Author
      Replies
      • #81710
        Jim Kosloskey
        Participant

          Are you using BULKCOPY?

          Do you not want NTE segments in the OBX Grop to go to the receiving system?

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

        • #81711
          jos phili
          Participant

            yes, I am using Bulkcopy. However, i need the nte segment to go out, and i need the obx 3.1 to show whats in obr 4.1

          • #81712
            Jim Kosloskey
            Participant

              Give us a screen shot of your ITERATE and Actions inside.

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

            • #81713
              jos phili
              Participant

                here is a pic of the iterate. really simple.

              • #81714
                Jim Kosloskey
                Participant

                  Show us the properties of the ITERATE.

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

                • #81715
                  jos phili
                  Participant

                    the property of the iterate

                  • #81716
                    Jim Kosloskey
                    Participant

                      Now show us the innbound and outbound variant structures for this message type.

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

                    • #81717
                      jos phili
                      Participant

                        Inbound

                        OBR|1|402485836^HNAM_ORDERID||BMP^BMP|||20141211101800|||||||20141211101816|Serum&Serum^^^^^Venous Draw|

                        OBX|1|NM|3094-0^UREA NITROGEN:MCNC:PT:SER/PLAS:QN:^LN^BUN^BUN^HL7STDSRC||12|mg/dL^mg/dL|7-18^7^18|||? Unknown|F|||20141211101929||^Test^TEST|^^^TEST

                        OBX|2|NM|2160-0^CREATININE:MCNC:PT:SER/PLAS:QN:^LN^Creatinine^Creatinine^HL7STDSRC||1.00|mg/dL^mg/dL|0.70-1.40^0.70^1.40|||? Unknown|F|||20141211101929||^Test^TEST|^^^TEST

                        NTE|1||Effective 8/4/2014, the anion gap calculation no longer includes the potassium level.

                        OBX|3|NM|17861-6^CALCIUM:MCNC:PT:SER/PLAS:QN:^LN^Calcium Lvl^Calcium Lvl^HL7STDSRC||9.0|mg/dL^mg/dL|8.5-10.1^8.5^10.1|||? Unknown|F|||20141211101929||^Test^TEST|^^^TEST

                        OBX|4|NM|2345-7^GLUCOSE:MCNC:PT:SER/PLAS:QN:^LN^Glucose Lvl^Glucose Lvl^HL7STDSRC||66|mg/dL^mg/dL|65-110^65^110|||? Unknown|F|||20141211101929||^Test^TEST|^^^TEST

                        Outbound

                        OBR|1|402485836^HNAM_ORDERID||BMP^BMP|||20141211101800||||||5|20141211101816|Serum&Serum^^^^^Venous Draw|

                        OBX|1|NM|BMP^BMP^LN^BUN^BUN^HL7STDSRC||12|mg/dL^mg/dL|7-18^7^18|||? |F|||20141211101929||^Test^TEST TESTTEST|^^^TEST TEST

                        OBX|2|NM|BMP^BMP^LN^Creatinine^Creatinine^HL7STDSRC||1.00|mg/dL^mg/dL|0.70-1.40^0.70^1.40|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                        NTE|1||Effective 8/4/2014, the anion gap calculation no longer includes the potassium level.

                        OBX|3|NM|17861-6^CALCIUM:MCNC:PT:SER/PLAS:QN:^LN^Calcium Lvl^Calcium Lvl^HL7STDSRC||9.0|mg/dL^mg/dL|8.5-10.1^8.5^10.1|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                        OBX|4|NM|2345-7^GLUCOSE:MCNC:PT:SER/PLAS:QN:^LN^Glucose Lvl^Glucose Lvl^HL7STDSRC||66|mg/dL^mg/dL|65-110^65^110|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                      • #81718
                        Jim Kosloskey
                        Participant

                          No I need to see the HL/7 Configurator Message Structure for the inbound and outbound variants not the actual messages.

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

                        • #81719
                          jos phili
                          Participant

                            oh, okay.

                          • #81720
                            Jim Kosloskey
                            Participant

                              You are using thee same variant for inbound and outbound?

                              I am going to assume that is true.

                              OK your OBX repeatss at the Group level (as I suspected).

                              You need to reset the basis in your ITERATE to the proper point for the OBX Group, then set the Iteration Type to ‘Group’, then use something like %g1 for your variable.

                              Then in the Actions inside the ITERATE, replace %s1 with a zero and place %g1 in the proper location of the address path.

                              You are iteerating at the segment level but it is a group repetition.

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

                            • #81721
                              jos phili
                              Participant

                                Thank you so much. i made those changes. It got the job done for OBX|3|, but OBX|4| wont take the changes. And it change the OBX|2| back to the original inbound message. my outbound message is coming out like the following:

                                OBR|1|402485836^HNAM_ORDERID||BMP^BMP|||20141211101800||||||5|20141211101816|Serum&Serum^^^^^Venous Draw|

                                OBX|1|NM|BMP^BMP^LN^BUN^BUN^HL7STDSRC||12|mg/dL^mg/dL|7-18^7^18|||? |F|||20141211101929||^Test^TEST TESTTEST|^^^TEST TEST

                                OBX|2|NM|BMP^BMP^LN^Creatinine^Creatinine^HL7STDSRC||1.00|mg/dL^mg/dL|0.70-1.40^0.70^1.40|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                                NTE|1||Effective 8/4/2014, the anion gap calculation no longer includes the potassium level.

                                OBX|3|NM|BMP^BMP^LN^Calcium Lvl^Calcium Lvl^HL7STDSRC||9.0|mg/dL^mg/dL|8.5-10.1^8.5^10.1|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                                OBX|4|NM|2345-7^GLUCOSE:MCNC:PT:SER/PLAS:QN:^LN^Glucose Lvl^Glucose Lvl^HL7STDSRC||66|mg/dL^mg/dL|65-110^65^110|||? |F|||20141211101929||^Test^TEST TEST|^^^TEST TEST

                              • #81722
                                Jim Kosloskey
                                Participant

                                  Show me your changes including the ITERATE properties..

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

                                • #81723
                                  Andre Houtzager
                                  Participant

                                    When you test it in the HL7 testing tool it will parsed as follow

                                    1(0).1(0).0(0).OBR(0)  :  >|1|402485836

                                    1(0).1(0).1(0).OBX(0)  :  >|1|NM|3094-0^

                                    1(0).1(0).1(0).OBX(1)  :  >|2|NM|2160-0^

                                    1(0).1(0).1(0).NTE(0)  :  >|1||Effective 8/4

                                    1(0).1(0).1(1).OBX(0)  :  >|3|NM|17861-6^

                                    1(0).1(0).1(1).OBX(1)  :  >|4|NM|2345-7^G

                                    So there are two groups and the iterate will pass two times.

                                    changing only outbound 1(0).1(0).1(0).OBX(0) and 1(0).1(0).1(1).OBX(0)

                                    As suspected:

                                    1(0).1(0).1(0).OBX(0)  :  >|1|NM|BMP^BMP^

                                    1(0).1(0).1(0).OBX(1)  :  >|2|NM|2160-0^

                                    1(0).1(0).1(0).NTE(0)  :  >|1||Effective 8/4

                                    1(0).1(0).1(1).OBX(0)  :  >|3|NM|BMP^BMP^C

                                    1(0).1(0).1(1).OBX(1)  :  >|4|NM|2345-7

                                    a solution is to do an OBX segment iteration in the OBX groups iteration

                                    The result will be what you want i think

                                    1(0).1(0).1(0).OBX(0)  :  >|1|NM|BMP^BMP

                                    1(0).1(0).1(0).OBX(1)  :  >|2|NM|BMP^BMP

                                    1(0).1(0).1(0).NTE(0)  :  >|1||Effective 8/4/

                                    1(0).1(0).1(1).OBX(0)  :  >|3|NM|BMP^BMP

                                    1(0).1(0).1(1).OBX(1)  :  >|4|NM|BMP^BMP

                                  • #81724
                                    Jim Kosloskey
                                    Participant

                                      Remove repetition for OBX segment (the OBX repeats as a part of the group not as a segment) from the variant(s) then ITERATE at the group level and use that group position in the address path.

                                      Normally the OBX is also required but that is not affecting you.

                                      It is pretty common for me to see people modify the variant at the OBX group because they do not understand the OBX repeats as a part of the group not as a segment.

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

                                    • #81725
                                      jos phili
                                      Participant

                                        Thank you for all your help.

                                        Solution:

                                        i had to remove the segment iterate.  set my basis value to the group level. and change my variable to “%g1”. Unfortunately, my inbound and outbound HL7 variant message structure was a little funny. so i change the variant by removing the repeats and optional from OBX.

                                        Thank you again for your help.   😀

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