All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ======================================
A word of caution: Using this logic will appear to work, but there is a problem that needs to be considered. When Meditech stores the previous responses for a Group type query, it only stores the mnemonic. (This was the problem with just defaulting the previous response with the IFE and skipping to begin with, right!) If you default with an DFT attribute, the cursor passes through the query response which converts the mnemonic, but if defaulting with an IFE, that won't happen! We can do that manually but you still need to save the mnemonic, not the name! If you pull the previously filed response, convert it to the element name from the group response and then saved that as the response, you have changed the response value! For example: If the previously filed response was WNL (the mnemonic for "Within Normal Limits") and you pull that response, convert it to "Within Normal Limits" and save that to the query, you have changed the response from WNL to Within Normal Limits. This can cause problems. A better idea is to pull the previously filed response and go ahead and assign that value to the temporary variable for the query's response. Then, convert the mnemonic to the element name and display that on the screen. Doing it this way will preserve the integrity of the data as it was previously stored while also displaying the name for the user. Try this: (This attribute will also compensate if the query is an Optional type and the previously filed response is not in the lookup) [EMAIL PROTECTED]"DFTQUERY"]^VAR^/[ANS%0,"QUERY"]|0 [EMAIL PROTECTED] IFE=MIS.GROUP.RESP.element.response["GLMENONIC",VAR]^VAR;VAR}^VAR, IFE=P(R,S,VAR)^#,""} - Replace DFTQUERY with the mnemonic of the query whose last response you want to default, - Replace QUERY with the query that you are placing the attribute on, - Replace GLMNEMONIC with the mnemonic of the group lookup in which the defaulting mnemonic is found. I hope this information is helpful! Kenny Whiteside Kenny Whiteside RN, BSN Patient Care Information Systems Catawba Valley Medical Center 810 Fairgrove Church Road Hickory, NC 28602 [EMAIL PROTECTED] >>> "Grayson George" <[EMAIL PROTECTED]> 05/04/2006 11:37:00 AM >>> All messages should be posted in plain text. HTML will be converted to attachments. The meditech-l web site is MTUsers.com ====================================== Deb, Try this: [EMAIL PROTECTED],p.ADM.PAT.ccdqr.respon se["NURS04A1"]]^/VAR, IFE=P(R,S,/VAR^/[ANS%0,/S.LAST.QUERY]|0)^#,""} Where GROUPRESP is the group response mnemonic. George George T. Grayson [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DEBORAH STONE Sent: Wednesday, May 03, 2006 5:55 PM To: [email protected] Subject: [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 ====================================== I have an attribute that is defaulting the response from query A, screen A into query B screen B. It works fine except the element code displays instead of the element name even though both queries are Group Response types and are set to Display 'Name' Y and 'Name' Only Y. Is there a way to tweak this attribute to display the name or is there some other issue I'm missing? [EMAIL PROTECTED]"NURS04A1"]^/VAR, IFE=P(R,S,/VAR^/[ANS%0,/S.LAST.QUERY]|0)^#,""} Thanks in advance, Deb Stone, RN Informatics Consultant _______________________________________________ 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
