Variable Length OBX 5

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Variable Length OBX 5

  • Creator
    Topic
  • #49348
    Paul Johnston
    Participant

      Hi All,

      Does anyone know how I might be able to break a variable length OBX 5 field (from PACS TALK dictation ) into separate 72 length OBX segments

      OR

      break when ever a \.br\ set of characters is encountered.

      Paul

    Viewing 0 reply threads
    • Author
      Replies
      • #61598
        Tom Rioux
        Participant

          Paul,

          Try using a pre-tcl with regsub to turn the breaks into tildes (see example below).  Then that will allow you iterate the OBX-5 subfields and split it out into multiple OBX’s.   Let me know if you have any questions.

          Tom Rioux

          Memorial Hermann Hospital

          Example:

          hcitcl>set a tom\.br.\rioux

          hcitcl>regsub

          Error: wrong # args: should be “regsub ?switches? exp string subSpec varName”

          hcitcl>regsub -all {\.br.\} $a ~ b

          1

          hcitcl>echo $b

          tom~rioux

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