Hey again L,

I am trying to create a rule that will prevent a user from entering an order
for a patient who's location is not assigned to the appropriate site.

We have two PHA Sites with about 5 inpatient locations tied to each:
FPHARMACY and PPHARMACY 

Here is the rule I have so far (evaluated at MED):

[f rx order site]="FPHARMACY"^AA,
[f rx order site]="PPHARMACY"^BB,
[f pt location]="F1CCU"^CC,
[f pt location]="P3EAST"^DD,
"Cannot Proceed."^MSG,
IF{(AA&DD)!(BB&CC) [f rx err msg](MSG);
[f rx ok]};

I think the problem is the [f rx order site] data field but am not sure.

Thanks again

Marc

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

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

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

Reply via email to