OBX to OBR Mapping using TCL procs

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf OBX to OBR Mapping using TCL procs

  • Creator
    Topic
  • #53549
    Raj
    Participant

      Below is an example.

      OBX|1|ST|ioversol (OPTIRAY-320) 320 mg/mL injection 75 mL^IOVERSOL 320 MG/ML IV|1|||||||E

      OBX|2|ST|&TCM|2|Here is a study note. nbsp; Entered by the tech.||||||E

      OBX|3|ST|SIGNS^Relevant signs and symptoms||Testing Signs and Symptoms 2

      OBX 1 contains medication; but if you look at OBX 3, there is no generic value contained to indicate it is a med.  Note how the other two OBX segments have indicators in OBX 3 to tell us what kind of data is contained.  

      This Case i have ignore 2nd and 3rd  send only the first OBX segment

      Here is the TCL proc  i am using

      lassign $xlateInVals OBX3_0 OBX3_1

      echo $OBX3_0

      echo $OBX3_1

      set outval “”

      if {![lcontain

        $OBX3_0]} {

            set outval  $OBX3_1

        } else {

            set outval “”

        }

        set xlateOutVals

        XlateOutVals is empty any idea what i am missing ?

        Thanks

        Raj

    Viewing 2 reply threads
    • Author
      Replies
      • #78095
        Raj
        Participant

          OBX|1|ST|ioversol (OPTIRAY-320) 320 mg/mL injection 75 mL^IOVERSOL 320 MG/ML IV|1|||||||E

          OBX|2|ST|&TCM|2|Here is a study note. nbsp; Entered by the tech.||||||E

          OBX|3|ST|SIGNS^Relevant signs and symptoms||Testing Signs and Symptoms 2

          I wanted some body help to tell how i can take onlythe  whole OBX segment by discarding  the other two OBS since they one OBX-3_0 has &TCM and other has lietral SIGNS.

          any help on this would be very much helpful

          Thanks

          Raj

        • #78096
          Jim Kosloskey
          Participant

            Raj,

            Are you absolutley committed to doing this with Tcl?

            I think it can be accomplished with no Tcl just the Xlate.

            One thing to check for though is to make sure in your Xlate there is nothing else going on that builds the message diferently than you want maybe like a BULKCOPY.

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #78097
            Garrett Cantrell
            Participant

              Raj,

              It looks like you’re trying to do this in a Xlate proc.  Your best bet would be to either do it in the Xlate, as Jim suggested, or in a pre-proc.

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