Check for either E/R pat type or Q/R pat type

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Check for either E/R pat type or Q/R pat type

  • Creator
    Topic
  • #47604
    Misti Wannamaker
    Participant

    I have a tclproc that I use to check for an E/R patient type.  I want to now check for either E/R or Q/R in the PV1-18 field.  Here is part of my code.  I can’t figure out how to do this.  Thanks for any help.

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

                                   set pv1tmp [split $seg $field_sep]

    ;# split PV1 fields.

                                   set pv118 [lindex $pv1tmp 18]

    ;#get PV1-18

                                   set pv118_0 [csubstr $pv118 0 3]

                                   if [cequal $pv118_0 “E/R”]  {

                                           set disp “”

                                           set disp “CONTINUE $mh”

    :q

Viewing 1 reply thread
  • Author
    Replies
    • #56237
      Ryan Spires
      Participant

      if [cequal $segtype PV1] {

    • #56238
      Misti Wannamaker
      Participant

      Thanks so much for your help.  I was coding it sort of like that but didn’t have the right ‘|’ or ‘(‘ …

      It has been driving me nuts all morning.  Thanks!!!!

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,295
Replies
34,439
Topic Tags
287
Empty Topic Tags
10