All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
I have never been able to get Carolyn's suggestion to work. The reason
is the way Meditech checks a field.
In the example of: IFE=[ANS,"QUERY1"]|0=""
Meditech compares the [ANS,"QUERY1"]|0 to "" to see if they are equal.
If they are, the value of [ANS,"QUERY1"]|0 is placed in the value of
IFE. If IFE equals nil (""), the cursor does not stop.
In the above example, if [ANS,"QUERY1"]|0 is nil (no answer) than it
does equal "", so IFE is true, BUT... Meditech places the value of
[ANS,"QUERY1"]|0 into IFE, so it is now nil again, and the cursor
doesn't stop.
One way of getting around this is to check the length of the response.
The length of (no response) is 0 (zero). So, this works:
IFE=L([ANS,"NUNS03502"]|0)=0
REQI=L([ANS,"NUNS03502"]|0)=0
How?
If there isn't a response to NUNS03502, than the length is 0. 0 = 0, so
Meditech puts the value of L([ANS,"NUNS03502"]|0) into IFE (and REQI).
0 is a value greater than nil, so the cursor will stop at that field.
Brian Golden, RN
Southeast Missouri Hospital
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carolyn Bourke
Sent: Friday, June 30, 2006 1:01 PM
To: Guardiola, Suzannah; [email protected]
Subject: RE: [MEDITECH-L] Attribute Help Please
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Hi Suzannah, this works for me. We're Magic 5.4:
(attach to Query#2)
IFE=[ANS,"QUERY1"]|0=""
REQI=[ANS,"QUERY1"]|0=""
We prefer to use REQI instead of REQ so the user knows they have to
answer before going on instead of getting all the way to the end and
trying to file and THEN find out. I hope this helps, Carolyn
Carolyn Bourke R.N., Applications Analyst
Newnan Hospital, 60 Hospital Road
PO Box 997
Newnan, Georgia 30264
Phone: 770-304-4305
Fax: 770-304-4314
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guardiola, Suzannah
Sent: Thursday, June 29, 2006 6:02 PM
To: [email protected]
Subject: [MEDITECH-L] Attribute Help Please
Hello All-
I need some attribute help for a CDS screen. I need to have the second
query skipped if there is an answer in the first query and required if
there is NOT an answer in the first query. Any help you can provide is
greatly appreciated.
Suzannah Guardiola
Unity Project
IT S Module Specialist
Cell: (832) 453-5182
Ph: (281) 599-6888
St. Catherine Hospital
All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
_______________________________________________
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