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

Hi Lorna,

You can pull the element name from the group response.

Here's an example of an IFE that grabs the element response for the
last filed response to another query and defaults it into this query's
response and skips.

[EMAIL PROTECTED]"GRMNEMONIC", 
[EMAIL PROTECTED]"OTHERQUERY"]]^VAR,
IFE=VAR^/[ANS%0,"QUERY"]|0,P(R,S,VAR)^#,""}

- Replace GRMNEMONIC with the group lookup mnemonic,
- Replace OTHERQUERY with the mnemonic of the query whose last response
you want to display,
- Replace QUERY with the mnemonic of the query on which you place the
attribute.

Words of Caution!!!  If the otherquery is an Optional type, you may get
a nil value if you are looking for a mnemonic that matches.  You can
avoid this problem using the attribute below.  Also, since Meditech
standard function stores only the mnemonics of filed responses for group
type queries, be sure not to send the element name to the
/[ANS%0,"QUERY"]|0 if this query is also a group query with the same
responses.  Instead, the attribute needs to first assign the last filed
response to the query to the /[ANS%0,"QUERY"]|0 and then find and
display the element name to the screen.  

[EMAIL PROTECTED]"QUERY"]^VAR^/[ANS%0,"QUERY"]|0
[EMAIL PROTECTED]
IFE=MIS.GROUP.RESP.element.response["GLMNEMONIC",VAR]^VAR;VAR}^VAR,
IFE=P(R,S,VAR)^#,""}

Hope this helps,
Kenny Whiteside

Kenny Whiteside RN, BSN
Patient Care Information Systems
Catawba Valley Medical Center
810 Fairgrove Church Road
Hickory, NC 28602
[EMAIL PROTECTED]



>>> "Johnson, Lorna" <[EMAIL PROTECTED]> 07/25/2006 5:41:59
PM >>>
All messages should be posted in plain text.  HTML will be converted
to
attachments.    The meditech-l web site is MTUsers.com
======================================

I'm certain that I'm just overlooking something simple.......
 
I am trying to default, into a CDS field, the element response from a
group response, based on the response to a previous field.  
 
I have a clinic name defaulting into a field.  Easy enough.  But I
want
to use that clinic's element mnemonic to reference the element
mnemonic
of a group response that contains clinic telephone numbers, and put
the
element response (aka telephone number) into my CDS field.   I have
tried subscripting and DFT, and IFE, but I'm missing something.
 
Would someone please stir the mud for me?   

TIA
 
Lorna Johnson
Systems Analyst
Tenet St. Louis
314-256-3415
[EMAIL PROTECTED] 
 
 
Confidentiality Notice:  This email transmission, and any attachments,
or hyperlinks is intended only for the use of the designated
recipient(s) named above.  This message is intended to be a
confidential
communication and may involve information or material, which is
protected under state or federal privacy laws.  If you are NOT the
intended recipient, please notify the sender immediately, and
permanently delete this message. Thank you.
 
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to