FCL attributes are only evaluated when there is a non-nil entry that is different from the prior entry.
This means your total is not updated if a query has an answer deleted.
Also, the cursor has to get to the total query for the total to be computed and saved.
Finally, a user could edit a value and file and you would not re-compute.
I usually add a macro to IFE attributes surrounding all the queries involved in the total, compute the total in the macro and print to the screen by checking /G.MSE.CDS structure to find row and column of the "total" query (and this tells you if it is on the current screen and in need of update) For good measure I recompute and store the total with an REQ attribute just in case the user terminates a field read with F12 and goes right to the file prompt w/o executing another IFE attribute.
Look at the handout, powerpoint and report examples from MUSE presentation 2013 called "Advanced Attributes".
www.iatric.com/muse2013
From: Meditech-l [mailto:
meditech-...@mtusers.com] On Behalf Of Yannotti, Janis L
Sent: Wednesday, July 16, 2014 3:32 PM
To: Meditech L-List (
medit...@mtusers.com)
Subject: [MT-L] An attribute that totals and allows edits
I have an attribute that totals the responses. The problem is that sometimes when the screen is edited the score is not updated properly. Does anyone have a totaling attribute that allows edits to the score. Here is what I use:
This attribute is on each query
FCL1=@.response^/T1
This attribute is on the Total query
IFE=IF{/T1+/T2+/T3+/T4+/T5+/T6+/T7+/T8+/T9+/T10^/VAR,
IFE=/VAR^/[ANS%0,/S.LAST.QUERY]|0,P(R,S,/VAR)^#,""}
Any help would be appreciated,
Thanks,
Janis Yannotti RN
Clinical Application Support
Phone:
802.447.5194
Janis.Y...@svhealthcare.org
DISCLAIMER: The information contained in this electronic message is
legally privileged and confidential under applicable law and is intended
for a particular addressee(s). If it is not clear that you are the intended
recipient, you are hereby notified that you have received this transmittal
in error; any review, copying or distribution or dissemination is strictly
prohibited. If you suspect that you have received this transmittal in
error, please notify Southwestern VT Health Care Corporation
immediately by return email reply to (
help...@phin.org), and
immediately delete the transmittal and any attachments without making
any copy or distribution. Thank you.
Joe Cocuzzo
Sr. Vice President
Reporting Services
Iatric Systems, Inc.
Phone/Fax:
(978) 805-4115
Email: mailto:
Joe.C...@iatric.com
Web:
http://www.iatric.com/
Iatric Systems helps healthcare providers achieve success by delivering the most comprehensive healthcare IT integration.
__________
===###===###===###===###===###===###===
To unsubscribe from the meditech-l, follow the instructions at the URL
http://mtusers.com/mailman/options/meditech-l_mtusers.com/
Please do NOT send messages that ask "Please post to the list" or "I'd like to see your answers" or "Send that info to me, too" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.
Go to
http://MTUsers.net for other information on the list, as well as:
1) reading meditech-l messages online
2) job opportunities
3) vendor products and service
Do NOT send email to meditech...@MTUsers.com. This is a system email box that is NOT monitored by a human. If you need help or advice on how to use the meditech-l, email ju...@MTUsers.net. Julia helps manage the meditech-l, so she is your best resource.
===***===***===***===***===***===***===