All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Monica,

Thanks for sharing on the L!  Doing so helps us all become more aware of issues 
and to make better use of our Meditech systems.

I would, however, like to offer a little more information on the use of 
variables.  I frequently use slash variables in attributes and here's why!  If 
the variable is to be used immediately (within the same attribute), you are 
absolutely correct in that there is no need to use a slash variable.  However, 
if you are defining a variable to be used elsewhere in the CDS, the local 
variables (non-slashed variables) will be "erased" if the user selects the exit 
or file function and then selects "No" to the confirmation.

This can cause a real problem if you are using attributes to define local 
variables to determine where the cursor should/shouldn't stop.  I have built 
many CDS's for NUR that depend on defined variables to determine where to stop, 
responses to default, queries to require, etc.  But for these variables, I 
ALWAYS use slash variables.  Furthermore, if you define a local variable in an 
FCL attribute, that variable will be erased when the cursor moves to the next 
query.

That having been said... there is one caveat about slash variables to be aware 
of.  If you use an attribute to define a slash variable on a CDS and the user 
then completely exits from the screen and then returns to start over, or if the 
user is using the Loop Documentation to document multiple occurrences, the 
slash variables DO NOT reset automatically when the user enters the CDS.  
Therefore, if using slash variables to control the cursor in a CDS, ALWAYS use 
an IFE attribute on the very first query to assign a value of nil to each slash 
variable you will use.  This will prevent slash variables from previous screens 
from corrupting the current CDS.

Also, I NEVER use the /S.LAST.QUERY as this depends on Meditech defining the 
current query as /S.LAST.QUERY.  Because this functionality has recently 
changed, it has caused many problems.  I always replace the /S.LAST.QUERY with 
/[ANS%0,"THEQUERY"]|0 to avoid any potential problems.

Hope this information is helpful,
Kenny Whiteside


Kenny Whiteside RN, BSN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]



>>> "Summers Monica" <[EMAIL PROTECTED]> 05/17/2006 4:59:04 PM >>>
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

_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to