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

Cynthia,

You can try something like this... It should check every value in query
NNURSA until it either finds (FND) the specified value (DP/S) or runs
out of values to check. 

IFE=IF{0^CT,""^FND,
IFE=DO{[ANS,"NNURSA",M,CT+1^CT]|0&'FND 1,
IFE=IF{[ANS,"NNURSA","M",CT]|0="DP/S" 1^FND}},FND}

NOTE: This attribute has not been tested for syntax or logic errors. It
was just written in this e-mail. Please test thoroughly.

Frank Cyr RN
Clinical Systems Development
HCA TriStar Division


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Davis Daniel -
Southern Hills
Sent: Wednesday, September 06, 2006 2:34 PM
To: Kenny Whiteside; Cynthia Frederic; Kimberly Frick;
[email protected]
Subject: RE: [MEDITECH-L] Shortening Attributes

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

Actually Kenny, the original question is about a multiple query.  There
have been multiple responses on the "L" regarding how to evaluate a
multiple.  I'm sure you can those references.

Daniel Davis, RN
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenny Whiteside
Sent: Monday, September 04, 2006 8:32 AM
To: Cynthia Frederic; Kimberly Frick; [email protected]
Subject: RE: [MEDITECH-L] Shortening Attributes

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

Hey Kim,

If you run into a situation like this in the future, rather than
changing the query mnemonic to shorten the attribute a few characters
try sending the value of the query resposne to a variable.  Then
evaluate the value of the variable.  Like this:

IFE=IF{/[ANS%0,"QUERY"]|0^VAR,(VAR="THIS")!(VAR="THAT")!(VAR="SOMETHING"
)
1;""}

You can shorten the attribute even more by using a Do Loop... but these
are a little more complex than the If Statement.



Kenny Whiteside BSN, RN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
(828) 326-3287 - Office
[EMAIL PROTECTED]



>>> "Kimberly Frick" <[EMAIL PROTECTED]> 09/01/2006 10:36:46 AM >>>
All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

The easiest way to shorten the attribute is to change the query name. I
had to do this with a similar lengthy attribute. I think if your query
name was one or two characters shorter, you could make it all fit within
the 256 character limit.

 
Kim Frick, RN
Project Coordinator
Licking Memorial Health Systems
Phone: 740-348-4114
Fax: 740-348-4769
[EMAIL PROTECTED]
www.LMHealth.org 
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Cynthia Frederic
Sent: Wednesday, August 30, 2006 3:14 PM
To: [email protected]
Subject: [MEDITECH-L] (no subject)


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

I have this problem dealing with a multiple query.  I have written an
IFE= attribute found below.

 

IFE=[ANS,"NNURSA","M",1]|0="DP/S"!([ANS,"NNURSA","M",2]|0="DP/S")!

IFE=([ANS,"NNURSA","M",3]|0="DP/S")!([ANS,"NNURSA","M",4]|0="DP/S")!

IFE=([ANS,"NNURSA","M",5]|0="DP/S")!([ANS,"NNURSA","M",6]|0="DP/S")!

IFE=([ANS,"NNURSA","M",7]|0="DP/S")!([ANS,"NNURSA","M",8]|0="DP/S")!

IFE=([ANS,"NNURSA","M",9]|0="DP/S")

 

 

The attribute needs for the cursor to stop at this query when any of the
responses for query: NNURSA in position 1 through 9 are DP/S.  

 

The attribute is correct except for the fact that it is too long. I
think a DO loop may be the answer to this problem, but I am not familiar
with this particular attribute. Currently, I have it working in Live
with 5 positions. 

 

 If someone could help with shortening this attribute but still make it
function in the same way, it would be greatly appreciated.  Any
suggestions are welcome.

 

Thanks, 

 

Cynthia Frederic, RN

Nursing Informatics

Ochsner Medical Center of Baton Rouge




_______________________________________________
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

_______________________________________________
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

Reply via email to