All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Require if previous query is blank
   previous query is "QUERYP" REQ=[ANS,"QUERYP"]|0_.=.
or
REQ=IF{[ANS,"QUERYP]|0 "";1}

Require if previous query is not blank
   previous query is "QUERYP" REQ=[ANS,"QUERYP"]|0

Bill Mullins RN
Williamson Medical Center
2021 Carothers Road
Franklin,Tn  37067
615-435-5630

-----Original Message-----
From: Bill Mullins 
Sent: Wednesday, July 05, 2006 10:58 AM
To: 'Brian Golden'; Carolyn Bourke; Guardiola, Suzannah;
[email protected]
Subject: RE: [MEDITECH-L] Attribute Help Please - Stop/Require if no
answer

I use this on an OB screen, we are looking for a response to Method of
Delivery:

OELDMOD    7   30  *METHOD OF DELIVERY*
OELDMOD1   7   1   Vaginal/Spontaneous:
OELDMOD2   8   5   Vaginal/Forceps:
OELDMOD3   9   6   Vaginal/Vacuum:
OELDMOD4   7   77  Cesarean:
OELDMOD5   8   43  If C-section, was trial of labo...
OECSINDIC  9   42  Indications for C/S:
OELDMOD7   10  55  Forceps attempted-unsuccessful:  

No attribute on the first query OELDMOD1

There are attributes on each of the following MOD queries, the cursor
stops until we get an answer...

                   Enter/Edit Attributes: OELDMOD2

 IFE=('[ANS,"OELDMOD1"]|0)!([ANS,"OELDMOD1"]|0="N")


                     Enter/Edit Attributes: OELDMOD3

 
IFE=('[ANS,"OELDMOD1"]|0)!([ANS,"OELDMOD1"]|0="N")!('[ANS,"OELDMOD2"]|0)
!
 IFE=([ANS,"OELDMOD2"]|0="N")


                    Enter/Edit Attributes: OELDMOD4

IFE=('[ANS,"OELDMOD1"]|0)!([ANS,"OELDMOD1"]|0="N")!('[ANS,"OELDMOD2"]|0)
!
IFE=([ANS,"OELDMOD2"]|0="N")!('[ANS,"OELDMOD3"]|0)!([ANS,"OELDMOD3"]|0="
N")


                    Enter/Edit Attributes: OELDMOD5

IFE=[ANS,"OELDMOD4"]|0="Y"


                    Enter/Edit Attributes: OELDMOD7

IFE=[ANS,"OELDMOD2"]|0="Y"

----------------------------------------------------------------------

Bill Mullins RN
Williamson Medical Center
2021 Carothers Road
Franklin,Tn  37067
615-435-5630

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Golden
Sent: Saturday, July 01, 2006 2:44 PM
To: Carolyn Bourke; Guardiola, Suzannah; [email protected]
Subject: RE: [MEDITECH-L] Attribute Help Please - Stop/Require if no
answer

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

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. 

This footnote also confirms that this email message has been swept by Sophos 
and MIMEsweeper for the presence of computer viruses.
**********************************************************************


_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to