All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
Sharon's code should work IF the response is stored in ADM.PAT. So first thing I would check out is to verify where the query response was stored. If it is a "ccdqr" response than I would suggest the following changes: [EMAIL PROTECTED]"MYQUERY"]^RES, IFE=P(R,S,RES^/[ANS%0,/S.LAST.QUERY]|0)^#,""} By the way --- DO NOT use SLASH VARIABLES in attributes!!! There is ABSOLUTELY no need to do this!!!! Also, make your variable names meaningful, don't just use VAR all the time. 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 Witt, Sharon L. Sent: Thursday, May 11, 2006 3:53 PM To: 'Mark Johnson'; Meditech-L (E-mail) Subject: RE: [MEDITECH-L] Last Query Entry as default- Is it still possib le? All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== I haven't actually tried to default the answer from one CDS into another by an attribute but have you tried substituting the actual Query mnemonic for the /S.LAST.QUERY. [EMAIL PROTECTED]"MYQUERY"]^/VAR, IFE=/VAR^/[ANS%0,"MYQUERY"]|0,P(R,S,/VAR)^#,""} That is what fixed most of the /S.LAST.QUERY issues. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson Sent: Thursday, May 11, 2006 7:15 AM To: Meditech-L (E-mail) Subject: [MEDITECH-L] Last Query Entry as default- Is it still possible? All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== After searching ITNurse and MeditechTalk without success, I am beginning to think this might not be possible any more- can you have a query's last answer (from another CDS) populate a field on another CDS as the default that can't be edited by the current user? I do recall reading some post regarding problems with the /S.Last.Query function but can't find anything. I found some attributes on the Iatrics L-Med search but they are from 2001 and 2002 and I am not getting anywhere with these in TEST using Magic 5.4.3 moving to 5.5 this fall. [EMAIL PROTECTED]/S.LAST.QUERY]^/VAR, IFE=/VAR^/[ANS%0,/S.LAST.QUERY]|0,P(R,S,/VAR)^#,""} Quick question, does the query need to be set to Demo Recall in MIS query dictionary for this to work? Any help from the attribute experts is greatly appreciated. Mark H. Johnson, RN,C MHA Clinical Informatics Administrator http://www.tuomey.com Tuomey Healthcare System Sumter, SC (803)774-1718 Fax: (803)778-9031 _______________________________________________ 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 _______________________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l
