Try this:
; Rule will warn  and stop users when filing an order that this
procedure
; cannot be ordered STAT inless pt is in ED or NBN-SCU
" Procedure cannot be processed STAT, use U and time of NOW"^MSG,
"ED"^ED,
"NBN-SCU"^NB,
[f pt location]^LOC,
[f ord pri]^PR,
[f ord proc]^PC,
IF{(((LOC'=ED)&(LOC'=NB))&(PR="S")) [f ord err msg](PC_MSG);
[f ord ok]}; 

Marge Usher
Clinical Systems Manager
The New York Eye & Ear Infirmary
310 E 14th Street
New York, NY 10003
212-979-4134
[EMAIL PROTECTED]


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Lisee, Jan
Sent: Tuesday, February 20, 2007 4:58 PM
To: Meditech-L (E-mail)
Subject: [MEDITECH-L] Struggling with "simple" Order Rules

I have been tasked with making an order rule that will stop staff from
ordering MOST lab/mic/bbk procedures STAT.
The exception is for patients in the ED.. we already have every OE
procedure set up on Page 2 with the default priority of S for the
location of ED. My plan was to create a general rule I could apply to
ALL procedures then take if off the 50 or so that are OK to order STAT.
My problem comes in when I have to say, if the priority is STAT, and the
location is NOT the ED, or is NOT Labor & Delivery, send error message,
else OK to order.

I have tried from the not equal to, as below, that works. When I try for
more that one location, I have trouble. Also my resource (Meditech OR
Rule Training Guide) doesn't tell the novice like me how to have
multiple lines of nested IFs.

The following rule works just fine:

  "Procedure "_[f ord proc]_" can not be processed STAT, use U and time
of NOW"^M,
  IF{[f ord pri]="S"&[f pt location]'="ED" [f ord err msg](M);
  [f ord ok]};


There are some procedures that will be OK for ED and one other location
so I did this. BUT, now I get the error message when I enter the test as
Routine, Urgent or Stat:

 "Procedure "_[f ord proc]_" can not be processed STAT, use U and time
of NOW"^M,  IF{[f ord pri]="S"&([f pt location]="ED"![f pt
location]="NBN-SCU") [f ord ok];  [f ord err msg](M)};

Any help appreciated!!!

Janice B Lisee, RNC BSN
Senior Systems Analyst
Frederick Memorial Hospital
Frederick, Maryland 21701
240-566-3437
mailto:[EMAIL PROTECTED]


=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to