Jeff,

The IFE attribute is something that is translated from beginning to end
as one complete thought, or sentence.  That first line that you have
been using to decide to stop or not is really a contracted way of
writing the basic IF Statement that relies on some assumptions that
Meditech makes.  Written in it's entirety it would be:

 

IFE=IF{[ANS,"EDMTR04"]|0="Y" 1;""}

 

This is written in the standard IF{"condition" "action";"alternate
action"}.  When you write it completely it is easy to see that any
action you want to happen once the cursor stops at the query would need
to be inserted where the 1 is located.  When you look at your second
attribute which begins on line two, you see that it is complete down to
the last curly brace on the last line, and the comma 1 that ends that
line is added to ensure that the cursor stops there.  That is based on
the fact that if the IFE attribute ends in a value it is true and the
cursor will stop there, if it ends in nothing ("nil") the cursor will
not stop there.  So, if your condition is true in the above sample, the
first action should result in a value while the alternate action should
end in nil.

 

IFE=IF{[ANS,"EDMTR04"]|0="Y" 1,
[EMAIL PROTECTED]@Z.mouse.click IF{E(/["buL"]#0)=64 "Y";
IFE="N"}^/[ANS%0,"EDMTRM7"]|0,
IFE=P(R,S,[ANS,"EDMTRM7"]|0)^#},1;""}

 

On the first line, I am using the 1 comma simply as a place holder so I
don't forget that there is a space at the end of that line.  The actual
action begins on the second line.

 

Daniel Davis, RN

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Brogneaux, Jeffrey
Sent: Tuesday, March 06, 2007 8:54 AM
To: [email protected]
Subject: [MEDITECH-L] Combining attributes

 

I am trying to find an attribute that will allow me to stop in one field
based on a "Y" answer in another field.  I also want the second field to
use the mousetribute that alternates between Y & N.  So far I have only
been able to get one or the other to work but not both.

IFE=IF{[ANS,"EDMTR04"]|0="Y"} This allows the stop here 
[EMAIL PROTECTED]@Z.mouse.click IF{E(/["buL"]#0)=64 "Y";
IFE="N"}^/[ANS%0,"EDMTRM7"]|0,
IFE=P(R,S,[ANS,"EDMTRM7"]|0)^#},1                     This is the Y/N
mouse tribute. 
I am using Meditech Magic version 5.5  I hope someone can help. 
Jeff Brogneaux RN 
Clinical Administrator 
Wayne Memorial Hospital 
Goldsboro, NC 27533 
919-731-6954  office 





=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to