The MIS screen program runs your line as a line of code, so I am
guessing that the P(R,S,) expression has a value so the cursor stops
even though you have a nil as the second expression.

To fix this, wrap the whole thing in an "IF" so that you can be sure the
expression will evaluate to nil

 

Like so:

 

IFE=IF{P(R,S,"Given to all pts."^/[ANS%0,"NUR010561E"]|0)^#,""}

In a report an LC expression becomes the condition of an IF statement
wrapped around the line printing code, so that

 

LC=1^oper.seq.no, @oper.proc     would be sufficient to cause a line to
print only if @oper.proc has a value

 

In a CDS, the screen program does a V() of the attribute so that if you
do this:

 

IFE=1^oper.seq.no,@oper.proc   the cursor will stop at the prompt every
time because  the first expression in the string evaluates to a 1

 

Wrapping an IF around the whole thing in the IFE changes this:

 

IFE=IF{1^oper.seq.no,@oper.proc}

 

Because the value of an IF statement is either the final expression of
the condition (if no statement) or the value of the statement

 

If you like to write extra code you can do something like this, but I
take points off for extra keystrokes:

 

IFE=IF{1^oper.seq.no,@oper.proc<space>"Y"}

 

Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Web:  www.iatric.com <http://www.iatric.com>  

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cynthia Downing
Sent: Friday, July 20, 2007 10:07 AM
To: [email protected]
Subject: [MEDITECH-L] Help with a simple Default Attribute

 


Hey from NC- I am trying to put a simple default attribute on a query
that will not allow the user to edit it and should skip to the next
query. I have tried several which default the answer but then hangs and
also this one which still allows the user to edit it... 

IFE=P(R,S,"Given to all pts."^/[ANS%0,"NUR010561E"]|0)^#,"" 

Any suggestions??? Thanks for any help you can give me.


Cindy Downing, RN, BSN
Clinical Systems Analyst
Duke Raleigh Hospital
3400 Wake Forest Road
Raleigh, NC 27609
(919) 862-5942
Fax: (919) 954-3869
Email: [EMAIL PROTECTED]

****NOTICE- The information in this electronic mail is sensitive,
protected information intended only for the addressee(s). Any other
person, including anyone who believes he/she might have received it due
to an addressing error, is requested to notify the sender immediately by
return electronic mail, and to delete it without further reading or
retention. The information is not to be forwarded or shared unless in
compliance with DUHS policies on confidentiality and /or with the
approval of the sender.**** 

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
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
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

Reply via email to