Originally posted by Duy Nguyen
Originally posted by David Gordon
if {[string equal [string toupper $subField] "TEST"]} { #Do whatever }
Keith McLeod wrote:you could also use something like:regexp -nocase {^test$} $subFieldThis should match any flave of test, TeSt, tesT, etc.... and returns a 1 for a match.
Keith McLeod wrote:
set subfield [lindex [split $field $fieldSep] 0]
Keith McLeod wrote:You probably want index 4 for the ^ to grab the component separator.
Keith McLeod wrote:for your field and component separators:set fieldSep [string range $msg 3 3]
Charlie Bursell wrote:Boy, you guys haven't sat in on one of my Tcl classes lately, have you?
Charlie Bursell wrote:
Charlie Bursell wrote:You lefy off the else clause in your if statement
Originally posted by Scott Lee
CONTINUE: 'MSH|^~&|QUEST|TDL||00050046|200702112258|TOPNET2NEON|ORU^R01|XO000565A|D|2.3|||||' [0:TEST] 'kill_pid_5_0 ' returned bogus strMsgId 'message0' KILL: 'PID|1|08000815|XO000565A||TEST1^PATIENT^^^^||19560404|M|||||||||||965781278||||||||'CONTINUE: 'ORC|RE||' CONTINUE: 'OBR|1||XO000565A|^^^10165^BASIC METABOLIC PANEL W/EGFR^|||200702041200|||||||200702050017|S|KREMPL GREG^^A^^^^||||^^|XO^DIAGNOSTIC LABORATORY OF OKLAHOMA^1001 CORNELL PARKWAY^OKLAHOMA CITY^OK^73108^RONNIE G. SCHLESINGER, M.D.|200702112200|||F|||||||' CONTINUE: 'OBX|1|TX|^^^25000000^GLUCOSE^||65|mg/dL|65-99|N|||F|||200702112200|XO|'
Scott Lee wrote:CONTINUE: 'MSH|^~&|QUEST|TDL||00050046|200702112258|TOPNET2NEON|ORU^R01|XO000565A|D|2.3|||||' [0:TEST] 'kill_pid_5_0 ' returned bogus strMsgId 'message0'
Scott Lee wrote:
CONTINUE: 'MSH|^~&|QUEST|TDL||00050046|200702112258|TOPNET2NEON|ORU^R01|XO000565A|D|2.3|||||' [0:TEST] 'kill_pid_5_0 ' returned bogus strMsgId 'message0'
Scott Lee wrote:I wouldn't say it is 'correct' until it is tested with good data.
Duy Nguyen wrote:So then my logic is wrong, then..because i'm not wanting to split on a "1" for the subfields..i want to split on a " ^ " ???
Duy Nguyen wrote: