Frank Urbanija

Forum Replies Created

Viewing 8 replies – 1 through 8 (of 8 total)
  • Author
    Replies
  • in reply to: Need to replace the | (pipe) in OBX.5 with F #83647
    Frank Urbanija
    Participant

      Doing following in testing but also replacing the field seperators – | pipe after OBX.5. with F and I just want OBX.5 to be changed if | appears within OBX.5

      set sep [csubstr $msg 3 1] ;# HL7 field separator    

         set sub [csubstr $msg 4 1] ;# HL7 subfield separator    

         set segments [split $msg r] ;# Get segments

         set outbuf “” ;# Holds outbound message

      foreach seg $segments {

      if [cequal $seg “”] { continue } ;# Just in case

      set segtype [csubstr $seg 0 3] ;# segment type

      echo >>>>>> SEGTYPE $segtype

      if [cequal $segtype OBX ] { ;# OBX?

      set fields [split $seg $sep] ;# Fields

         echo >>>>>>>>>>> $fields $seg $sep

            set sep “|”

      set obx5 [string trimright [join [lrange $fields 5 end] $sep] $sep]

                # regsub -all “|” $obx5 “\F\” obx5

      regsub -all  — {(|)} $obx5 {\F\} obx5

      set obx [join [lreplace $fields 5 end $obx5] $sep]

      in reply to: Need to replace the | (pipe) in OBX.5 with F #83646
      Frank Urbanija
      Participant

        Need to do this just for OBX.5  The regsub

        in reply to: Changing ^ to & in the OBR segment- but only OBR 32 #78308
        Frank Urbanija
        Participant

          Thanks just had to add the set newmsg [join $newmsg “r”] before doing the msgset $mh $newmsg.

          You Clovertecher’s are great!!!

          in reply to: Changing ^ to & in the OBR segment- but only OBR 32 #78307
          Frank Urbanija
          Participant

            Ran Robert’s through testing tool and works but for some reason the join does not work and I am looking at that now.  When echo the message after the join does not display the joined message – it is blank.

            Thanks for your info and I reall appreciate the suggestions.

            in reply to: XLATE ? #77338
            Frank Urbanija
            Participant

              Disregard the previous message.  Found the problem..

              in reply to: Need to Move PV1.7.0 into FT1.3 #77313
              Frank Urbanija
              Participant

                Levy,

                THANK YOU!!!!!

                in reply to: Need to Move PV1.7.0 into FT1.3 #77312
                Frank Urbanija
                Participant

                  Levy,

                  It worked like a charm when I put through the testing tool.

                  in reply to: Need to Move PV1.7.0 into FT1.3 #77309
                  Frank Urbanija
                  Participant

                    Levy Lazarre wrote:

                    Frank,

                    A sample would be useful.

                    What does the data look like when yyyy is blank? Is it xx–zzz or xx-zzz?

                    looks like xx–zzzzz so when populate with PV1.7 would have the 2nd number and look like xxx-yyyy-zzzzzz

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