ohrhull

Forum Replies Created

Viewing 2 replies – 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: Strip units in OBX-5 #122419
    ohrhull
    Participant

      Thank you all very much.  Jason, your line was what I needed to get the units put into OBX-6.  I believe I actually do not have to worry about the gestational age segments as those are not in our mapping list and will be handled another way.  So I think this line will work.  Really excited to get this done and see it work live.  I appreciate each of your input!!

      in reply to: Strip units in OBX-5 #122387
      ohrhull
      Participant

        Yes the value is consistently coming over as this kind of example: “<measurement> <unit>”

        To my knowledge we are not going to be getting any embedded spaces in the measurement or unit, just the space between.

        I also just noticed the first OBX will have all text in it “OB-GYN Ultrasound Report” which I don’t want to do anything with.  I am also getting some OBX-5 for gestational age formatted as example: “14 weeks 3 days”   … I would just intend to leave those as those have been filing okay because they are not Fetus measurements.

        So currently I have this in one COPY command.  When I add “set xlateOutVals $out_obx_6 it just puts the units in OBX-5 so I still have some work to do.  Along with figuring out the gestational age examples.

        =================================================================

        Source: 0(0).OBX(%s1).#5(0).[0]

        Pre Proc:

        lassign $xlateInVals in_obx_5
        set out_obx_5 [lindex $in_obx_5 0]
        set out_obx_6 [lrange $in_obx_5 1 end]
        set xlateOutVals $out_obx_5

         

        Destination:

        1(0).1(0).1(%s1).OBX(0).#5(0).[0]
        1(0).1(0).1(%s1).OBX(0).#6(0).[0]

         

      Viewing 2 replies – 1 through 2 (of 2 total)