multiple xlateInVals/xlateOutVals

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf multiple xlateInVals/xlateOutVals

  • Creator
    Topic
  • #48727
    Nora Katz
    Participant

      I have an Xlate in which I have several fields that I need to add the letter “N” at the beginning.  I’ve modified the fields, but I don’t see the new values when I run the testing tool.  What am I doing wrong?

      fields that I want to modify:

      1(0).0(0).PV1.00137.[0]

      1(0).0(0).PV1.00138.[0]

      1(0).2(0).0(0).OBR.00226(0).[0]

      1(0).2(0).0(0).OBR.00260(0).[0]

      1(0).2(0).0(0).OBR.00260(1).[0]

      1(0).2(0).0(0).OBR.00260(2).[0]

      code fragment that I am using:

      foreach val $xlateInVals {

      if {![cequal $val “”]} {

       echo xlateInVals $xlateInVals

       set add_N [cconcat N $val]

       echo add_N $add_N

       set xlateOutVals [lappend OutVals $add_N]

       echo xlateOutVals $xlateOutVals

      }

      if { [cequal $val “”]} {

       set xlateOutVals [lappend OutVals $val]

       set xlateOutVals $xlateOutVals

       echo xlateOutVals $xlateOutVals

      }

      }

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

          I took your code and set it up in a test xlate.  It seemed to work fine for me.  How did you test yours?  I did notice that when I ran it through my tester, if I ran it through using the xlate tester, it worked fine.  If I ran it through my route tester, then I had to bounce the process before it worked correctly.

          Hope this helps…

          Thomas G. Rioux

          The Methodist Hospital

        • #59513
          Nora Katz
          Participant

            I used the xlate tester.  My echo statements looks like I am getting the right information, but when I look at the messages I sent thru, I don’t see the new data replacing the fields I need to change.  PV1.7.1 should be N67890 instead of 67890, PV1.8.1 should be N67890 instead of 67890 and OBR.16.1 should be N16626 and not 16626.

            Example message:

            MESSAGE 4

            0(0).MSH(0)  :  >|^~&|LAB||HIS||20040505113325||ORU^R01|26710|P|2.1< 1(0).0(0).PID(0)  :  >|||1000000060^^^N||TEST^SANDRA T||19801231|F||||||||||1000000060040519< 1(0).0(0).PV1(0)  :  >||O|KOL^^^N|||67890|67890|67890< 1(0).1(0).Z01(0)  :  >|987654321|8085476561|1234567890|N/A< 1(0).2(0).0(0).ORC(0)  :  >|RE< 1(0).2(0).0(0).OBR(0)  :  >||P676726|P676726-0|ABC^Automated Bld Cnt|||200405051121|||||||200405051122||16626^WILLIAM,JOHN||||W2390||20040505113325||H|F|O39NU^ABC|^^^^^RO< 1(0).2(0).1(0).OBX(0)  :  >|1|NM|WBC^WBC|1|11.7|10(9)/L|(3.5-10.0)|H|||F||||KR< 1(0).2(0).1(1).OBX(0)  :  >|2|NM|RBC^RBC|1|4.08|10(12)/L|(3.9-5.2)||||F||||KR< 1(0).2(0).1(2).OBX(0)  :  >|3|NM|HGB^Hemoglobin|1|11.7|g/dL|(12-16)|L|||F||||KR< 1(0).2(0).1(3).OBX(0)  :  >|4|NM|HCT^Hematocrit|1|35.3|%|(35-46)||||F||||KR< 1(0).2(0).1(4).OBX(0)  :  >|5|NM|MCV^MCV|1|86.5|fL|(80-100)||||F||||KR< 1(0).2(0).1(5).OBX(0)  :  >|6|NM|MCH^MCH|1|28.8|pg|(27-33)||||F||||KR< 1(0).2(0).1(6).OBX(0)  :  >|7|NM|MCHC^MCHC|1|33.2|g/dL|(32-36)||||F||||KR< 1(0).2(0).1(7).OBX(0)  :  >|8|NM|RDW^RDW|1|13.7|%|(11-15)||||F||||KR< 1(0).2(0).1(8).OBX(0)  :  >|9|NM|PLTC^Platelet Count|1|144|10(9)/L|(150-450)|L|||F||||KR<

          • #59514
            Nora Katz
            Participant

              Dummy me.  I forgot that I had a pathcopy further down the xlate that conflicted with my code.  Thanks for the confirmation that my code was okay.

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