All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Hi Linda,
There are several things that I reworked in your attribute. One thing that I
will mention is that you should always enclose a complex attribute within an IF
Statement. If the first expression of your attribute is sending nil to a
variable, this can cause the entire attribute to evaluate nil causing the
cursor to skip the query.
Since this attribute evaluates responses to a previous multiple line query on
the same CDS, it should be placed on a subsequent query. This should now work
for you:
IFE=IF{IF{""^ZX^OK,DO{+(/[ANS%0,"NURSK4"]M[ZX],ZV)^ZX IF{ZV|0^QR,(QR="DEC1")
IFE=!(QR="DEC2")!(QR="DEC3")!(QR="DEC4") 1^OK}},OK} %MIS.OA.MSG.auto(
IFE="DECNS",Q),@W.return("NOTICE SENT TO NUTRITIONAL SERVICES"),1;1}
Good luck,
Kenny Whiteside
Kenny Whiteside RN, BSN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]
>>> "Linda Bouissey" <[EMAIL PROTECTED]> 04/14/2006 11:56:22 AM >>>
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
I have looked at the KB article6941 and several attribute web sites. I have
a multiple query
NURSK4. I want an attribute to put on the next query NURSK100 that will
evaluate if any of 4 answers to NURSK4 are DEC1,DEC2,DEC3 or DEC4. If one of
these is present, I want to send an OA message to nutritional services. Here
is what I have so far and I get a magic syntax error:
IFE=""^XX^OK,DO{+[ANS,"NURSK4"]M[XX]^XX&'OK IF{[ANS,"NURSK4"]M[XX]|0^QR=
IFE="DEC1"!(QR="DEC2")!(QR="DEC3")!(QR="DEC4") 1^OK},OK
IFE=%MIS.OA.MSG.auto("DECNS",Q),
[EMAIL PROTECTED]("NOTICE SENT TO NUTRITIONAL SERVICES"),""}
Any help would be greatly appreciated. Thanks.
Alice Hyde Medical Center
Linda Bouissey
Nursing Analyst
[EMAIL PROTECTED]
_______________________________________________
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