Announcement

Collapse
No announcement yet.

obx[i] not adding subcomponents

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • obx[i] not adding subcomponents

    hi
    I'm using MC 3.3.1.7856.

    I have to add a text in obx.18 like that 'analizador'

    var len=msg['OBX'].length();
    for(i=0;i<len;i++)
    {
    tmp['OBX'][i]['OBX']['OBX.18']['OBX.18.1']='analizador'



    }

    but what I finally get in the output is that:

    OBX|1|ST|^FIO2^I||21.0|%|||||F|||20160511111551|OB X||||||||||||||||||analizador

    Can you please help?

  • #2
    You want to insert analizador in OBX.18 of all OBXes?
    HL7v2.7 Certified Control Specialist!

    Comment


    • #3
      Originally posted by siddharth View Post
      You want to insert analizador in OBX.18 of all OBXes?


      Yes, thats what I want to do, basically

      Comment


      • #4
        tmp['OBX'][i]['OBX']['OBX.18']['OBX.18.1']='analizador'

        Should be
        tmp['OBX'][i]['OBX.18']['OBX.18.1']='analizador';
        Best,

        Kirby

        Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

        Appliance Version 3.11.4
        Mirth Connect Version 3.8.0
        Java Version 1.6.0_45-b06
        Java (64 bit) Version 1.6.0_45-b06
        Java 7 (64 bit) Version 1.7.0_151-b15
        Java 8 (64 bit) Version 1.8.0_181-b13
        PostgreSQL Version 9.6.8

        Comment


        • #5
          Exactly like kibykn2 said:

          Originally posted by kirbykn2 View Post
          tmp['OBX'][i]['OBX']['OBX.18']['OBX.18.1']='analizador'

          Should be
          tmp['OBX'][i]['OBX.18']['OBX.18.1']='analizador';
          Best Regards,
          Alex Neiva

          Comment


          • #6
            Thanks guys,
            I feel a little stupid, too many hours in front of the computer...

            Comment


            • #7
              We've all been there.



              I spend way to much time fixing my own mistakes(job security I guess)
              Best,

              Kirby

              Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

              Appliance Version 3.11.4
              Mirth Connect Version 3.8.0
              Java Version 1.6.0_45-b06
              Java (64 bit) Version 1.6.0_45-b06
              Java 7 (64 bit) Version 1.7.0_151-b15
              Java 8 (64 bit) Version 1.8.0_181-b13
              PostgreSQL Version 9.6.8

              Comment

              Working...
              X