All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
Thanks to Brian! This worked... '= (not equal) logic requires AND, not OR. Try this: [EMAIL PROTECTED]'="ADM"& DFT=(@p.ADM.PAT.status%3'="ER") @p.ADM.PAT.reason.for.visit} Brian -----Original Message----- From: Summers Monica [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 10:50 AM To: Heim,Nicole A. (Mount Auburn); [email protected] Subject: RE: [MEDITECH-L] Attribute help please!! Your on the right track but your IF statement syntax is really off... [EMAIL PROTECTED]'="ADM")! DFT=(@p.ADM.PAT.status%3'="ER") @p.ADM.PAT.reason.for.visit} You are using braces where you need parentheses and the statement continues on the next line so there is no need to add an "IF" to line 2. Remember an IF statement syntax is: IF{condition statement} You might want to go back and review the basics of NPR IF statements. Monica Monica Summers System Education Consultant - NPR Training, eLearning and Knowledge Management HCA Information Technology & Services 2555 Park Plaza Nashville TN 37203 t: 615-344-6962 f: 615-344-8550 e: [EMAIL PROTECTED] w: www.hcahealthcare.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, June 09, 2006 1:07 PM To: [email protected] Subject: [MEDITECH-L] Attribute help please!! All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== Hello, I am hoping someone can help me with this attribute....MEDITECH cannot help! I need to default in the reason for visit for all except if the patient is an inpatient (only have 2 inpatient locations - G.S2 and G.ICU) or if their location is G.ER. This is what I tried.... [EMAIL PROTECTED]'="ADM"}! [EMAIL PROTECTED]'="ER" @p.ADM.PAT.reason.for.visit} this did not work either: [EMAIL PROTECTED]'="ADM"! [EMAIL PROTECTED]'="ER" @p.ADM.PAT.reason.for.visit} I think I might need to use a IFE, but don't know how to get that to work...something like this: [EMAIL PROTECTED], [EMAIL PROTECTED],IF{LOC'="G.ER"!"G.S2"!"G.ICU" [EMAIL PROTECTED]"OERADEX"],P(R,S,ANS)^#,1}} Any assistance would be greatly appreciated!! Thanks! Nicole A. Heim Senior Systems Analyst Information Systems Mount Auburn Hospital Beth Israel Deaconess- Needham Phone: (781) 453-5201 Page: (617) 632-7243 ID#39809 email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> This document is intended only for the use of the person to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying or use of this document is strictly prohibited. If you have received this communication in error, please notify us and erase this email immediately. _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l
