Thank you all for your help! I got it! Marc
-----Original Message----- From: Bill Palmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 12:23 PM To: [email protected]; Delsesto, Marc Subject: [SPAM ?] Re: [MEDITECH-L] {Spam?} Pharmacy Rule Importance: Low Marc, This is untested but should get you on the right track. "FPHARMACY"^AA, "PPHARMACY"^BB, "F1CCU"^CC, "P3EAST"^DD, "Cannot Proceed."^MSG, IF{(([f rx order site]=AA)&([f pt location]=DD))! (([f rx order site]=BB)&([f pt location]=CC)) [f rx err msg](MSG); [f rx ok]}; >>> On 7/10/2007 at 7:37 am, in message <[EMAIL PROTECTED]>, "Delsesto, Marc" <[EMAIL PROTECTED]> wrote: > 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 =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= 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
