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

Reply via email to