This is what I use:
IFE=IF{(%Z.elapsed.time(@.today,[ANS,"NURERIVE1"]|0, IFE=[ANS,"NURERDT1"]|0,[ANS,"NURERIVT1"]|0,"hhHrs mmMin"))^/VAR, IFE=/VAR^/[ANS%0,"NURERIVC1"]|0,P(R,S,/VAR)^#,""} @.today is the end date NURERIVE1 is the end time NURERDT1 is the start date NURERIVT1 is the start time NURERIVC1 is the total elapsed time Formula is %Z.elapsed.time(end.date,end.time,begin.date,begin.time,"HH.MM" Returns difference between start and end times in hh.mm format Additional formats: "hh hours", "hh/mm", "hh.hh Hours", "hh Hrs mm Mins" Chuck Lovelace, RN, Clinical Analyst Door County Memorial Hospital Information Systems 323 South 18th Avenue Sturgeon Bay, WI 54235 Office 920-746-3608 Fax 920-743-6204 Email - [EMAIL PROTECTED] _____ From: Becker, Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 1:21 PM To: meditech-l@mtusers.com Subject: [MEDITECH-L] EDM attribute help Hello everyone. I am looking for an attribute to add 2 time queries together, (a start and a stop time on an IV screen) to get a total infusing time (in minutes). We are Magic 5.61. Thanks for your help!! Rick Becker Clinical Analyst Newman Regional Health Emporia, Ks (620)-343-6800, Ext 1143 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> P Save a tree...please don't print this e-mail unless you really need to
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= 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 meditech-l@MTUsers.com http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com