Hi Amira This is actually a common mistake and one I had to make a couple of times before I stopped.
In Meditech if a condition is true the result of the condition is the LEFT HAND SIDE of the condition Examples 1>2="" meaning FALSE 2>1=2 meaning TRUE 2>""=2 meaning TRUE Problem ""<2="" meaning TRUE In the last test "" is less than two which is TRUE, so the LEFT HAND SIDE of the condition is returned. In this case however the left hand side of the condition is "". This evaluates to FALSE and the IFE statement never executes. The proper way to write this statement is IFE=""^INS.ORD,@p.ADM.PAT.insurance.mnemonic.1^INS1, [EMAIL PROTECTED], [EMAIL PROTECTED], IFE=IF{INS1 IF{'@p.MIS.INS.DICT.contract[INS1]) "Primary "}; IFE=INS2 IF{'@p.MIS.INS.DICT.contract[INS2]) "Second "}; IFE=INS3 IF{'@p.MIS.INS.DICT.contract[INS3]) "Third "}}^INS.ORD, IFE=IF{INS.ORD @W.err(INS.ORD_"Insurance Contract is blank"),1 You have to check to see if there is a second or third insurance before you check to see if there is a contract. If there is no second or third insurance then checking to see if there is a contract for that insurance would yield a false positive. You may have to put this code in a macro so it works properly. It may be too long for the IFE clause. Hope this Helps Ken Ken MacPherson Systems Analyst / NPR Team Member NShIS Implementation Project EMail mailto:[EMAIL PROTECTED] Phone 902 237 5153 Confidentiality Notice This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it. Do not open any attachments. Delete this message immediately from your system and notify the sender by e-mail or telephone that you have done so Thank You -----Original Message----- From: meditech-l@MTUSERS.COM [mailto:[EMAIL PROTECTED] On Behalf Of Christiansen, Amira T Sent: Monday, May 21, 2007 1:03 PM To: MEDITECH-L@MTUSERS.COM Subject: [MEDITECH-L] Attribute Help Hi all, I have been trying to get the below attribute to work for a couple of days but unsuccessful. I need the Meditech-L assistant. What I am trying to do is to notify the registrar that one of the insurance's contract is blank. I have added the below to a query on an ADM CDS: IFE=IF{(@[EMAIL PROTECTED])="", [EMAIL PROTECTED]("Primary Insurance Contract is blank")}; IFE=IF{(@[EMAIL PROTECTED])="", [EMAIL PROTECTED]("Second Insurance Contract is blank")}; IFE=IF{(@[EMAIL PROTECTED])="", [EMAIL PROTECTED]("Third Insurance Contract is blank")},1 Thanks much! Amira Christiansen Information Systems SwedishAmerican Health System Rockford IL, 61104 (815)315-6840 ________________________________ ------------------------------------------- NOTICE OF CONFIDENTIALITY ------------------------------------------- The information in this email, including attachments, may be confidential and/or privileged. This email is intended to be reviewed only by the individual or organization named as addressee. If you are not the intended recipient, consider yourself notified that any disclosure, copying, distribution, use, or reliance on this transmission is STRICTLY PROHIBITED. Please destroy all copies and formats of this message including attachments. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of SwedishAmerican Health System. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= 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