Your if statements are all messed up.

 

Are you trying to assign the range of 21-74 for code 99289, 77-119 for
code 99290, and 122-149 for code 99291?  (I don't think that's what you
want to do)

 

or are you trying to do the following:

 

If (time > 19) & (time < 76) then

  code = 99289

ElseIf (time > 75) & (time < 121) then

  code = 99290

ElseIf (time > 120) & (time < 151) then

  code = 99291

EndIf

 

Thank you,

Mitch Lawrence

Lead Applications Analyst

Technical Support - NPR/Automation

CHRISTUS Information Management

*: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

 

Send a "thank you
<http://intranet.christushealth.org/spiritBuck/Default.asp> " to
someone!

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary Williams
Sent: Thursday, February 14, 2008 9:46 AM
To: [email protected]
Subject: [Talk] greater and less than

 

I am working on a script that will take the time spent in our ER and
compare it with a chart to determine the CPT code to enter into
meditech. Right now I am trying something along these lines,

 

if time > 20 or < 75 then code = 99289

if time > 76 or <120 then code = 99290

if time >121 or < 150 then code = 99291

 

it seems like the first line will work but not go on to the second. Is
there a better way to do this? This is something my VB training hasn't
covered yet.

 

Thanks,

Gary Williams

<<image001.png>>

Reply via email to