Pat, Based on the information you provided.... I'm assuming that this is the attribute that you have placed on query NURFALL1. I'm not sure what you are wanting to do with your IFE attribute but it is not needed for what you requested. Instead, you only need the field check attributes but they need to be written differently.
The standard way to write field check attributes involves using two attributes which work together as a pair. The first is the FCLn, followed by the FCLnA. (The n represents a number. If you use only one pair of FCLn/FCLnA attributes, the n would be 1. You can have as many pairs as you like.) The FCLn attribute evaluates a condition. If this condition is true (non-nil), then the FCLnA attribute is executed and this attribute is the logic that determines what happens if the FCLn condition is true. If the FCLnA attribute executes and ends with a non-nil value, the Meditech program prevents the user from entering the current response and the cursor remains in the query's response field. So if you wanted to prevent the user from entering a "N" response and display a message if they did, you would use: [EMAIL PROTECTED]"N" [EMAIL PROTECTED]("Your message here!"),1 FCLn attributes can be written without using a paired FCLnA. Since you don't want to prevent the user from using a "Y" or "N" response but you do want to display a message based on the response, you can do this using an IF Control Structure (often called the IF/THEN/ELSE statement) in the FCLn attribute. This would be: [EMAIL PROTECTED]"Y" @W.err("Your message here!")} Since you want one message for a "Y" response and another one for the "N" response and since these would be the only two possible responses, you could write this one of two ways: [EMAIL PROTECTED]"Y" @W.return("You must document fall checks at a minimum of every 2 hours.")} [EMAIL PROTECTED]"N" @W.return("You must place patient on fall protocol.")} OR [EMAIL PROTECTED]"Y" @W.return("You must document fall checks at a minimum of every 2 hours."); [EMAIL PROTECTED]("You must place patient on fall protocol.")} *** Things to remember about FCLn/FCLnA attributes: 1) These attributes only evaluate/execute if a NEW response has been entered into the query response. If a response is demo recalled or "defaulted" using an IFE, the FCLn/FCLnA attributes do not evaluate! 2) These attributes are evaluated in numerical order. If one is failed (the FCLnA is non-nil), the cursor goes back to the response field without evaluating subsequent FCL's. Although, if the user enters a new response, this process is repeated. 3) The logic of @W.err("message") calls the message box that has a red "X" and says ERROR. If you prefer the message box the displays the "!" and looks more like information instead of something wrong, use the logic of @W.return("message") Hope this helps, Kenny Whiteside Kenny Whiteside BSN, RN Patient Care Information Systems Catawba Valley Medical Center 810 Fairgrove Church Road Hickory, NC 28602 [EMAIL PROTECTED] >>> Patricia Standifer <[EMAIL PROTECTED]> 04/23/2007 10:12:02 AM >>> Hi all, I am attempting to write an attribute so that if the user answers "Y" to the patient is at risk for fall they are flagged to perform an action but if they answer the prior query "N" they receive a reminder that the patient must be placed on fall precautions. IFE=IF{[ANS,"NURFALL1"]|0="Y";1^/INPUT.ON.PAGE,""} FCL1=IF[ANS,"NURFALL1"]|0="Y" [EMAIL PROTECTED]"Y" [EMAIL PROTECTED]("You must document fall checks at a minimum of every 2 hours.") [EMAIL PROTECTED]"N" [EMAIL PROTECTED]("You must place patient on fall protocol.") Thanks in advance for any assistance. Pat Standifer, MS RN Nursing Informatics Coordinator Haywood Regional Medical Center 262 Leroy George Dr Clyde, NC 28721 828-452-8819 -- This message has been scanned for viruses and dangerous content, and is believed to be clean. -- This message has been scanned for viruses and dangerous content, and is believed to be clean. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit MTUsers.NET. To check the status of the meditech-l, visit MTUsers.NET. For help, email [EMAIL PROTECTED] Visit the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list meditech-l@MTUsers.com http://mtusers.com/mailman/listinfo/meditech-l