[MT-L] MEDITECH MG Attribute Help

2 views
Skip to first unread message

VADEBONCOEUR, ERIC

unread,
Nov 11, 2014, 3:59:40 PM11/11/14
to medit...@mtusers.com

Hello Everyone,

 

I am in need of an attribute that defaults the last documented instance of the query (it will be Y or blank) and does not allow the end user to f6 back and change the value. I found this:

 

We’ve gotten this far courtesy of our programmer, but we are unsure if IFE evaluates going backward as it does forward:

IFE=P(R,S,@p.ADM.PAT.ccdqr.response["QUERYMNEMONIC"]^/[ANS%0," QUERYMNEMONIC "]|0)^#,

IFE=""

 

But this allows me to change it, so it is not quite working.

 

Thank you for your help!

 

Eric J. Vadeboncoeur

Clinical Systems Analyst

Milford Regional Medical Center

14 Prospect St.

Milford, MA 01757

email: evadeb...@milreg.org

tel: 508-422-2715                        cell: 774-462-2418

 

 

Joe Cocuzzo

unread,
Nov 11, 2014, 4:31:54 PM11/11/14
to VADEBONCOEUR, ERIC, medit...@mtusers.com

In the words of Lenny Weisberg of Bobcat Software, you need the “IF for good luck”

 

The problem is that the Screen program executes the IFE attribute as a line of Magic code and if any of the expressions in the line have a value, the V() returns a true and the cursor stops. 

 

One method to fix is to carefully examine each expression to figure out if it will return a value and therefore make the V(line of attribute) be TRUE

The other method it to take advantage of the fact that only the last expression of an IF statement controls the value of the entire IF statement and wrap the whole of the expression in the “IF FOR GOOD LUCK”.

 

After you do this, since the last expression of the IF condition is “”  you can be sure the IFE will always fail and the cursor will never stop at the field.

 

IFE=IF{P(R,S,@p.ADM.PAT.ccdqr.response["QUERYMNEMONIC"]^/[ANS%0," QUERYMNEMONIC "]|0)^#,

IFE=""}

 

 

 

Joe Cocuzzo
Sr. Vice President
Reporting Services
Iatric Systems, Inc.
Phone/Fax:
(978) 805-4115
Email: Joe.C...@iatric.com
Web: www.iatric.com

Reply all
Reply to author
Forward
0 new messages