If you are trying to send a message to a user who you have not yet filed, the attempt to send will fail, as there is no recipient created in the system.
Another approach would be to write a scheduled report that generates the OA message to the user when the fields you need are blank. You would use the MIS.OA.MSG.auto program using the B argument and build the message yourself. For details on that, search the Meditech-L list on "Cocuzzo" and "MIS.OA.MSG.auto" Since the new user will have been filed before the report tries to send the message, you will not have the issue that there is no user (yet) to send to. You could check @last.update in the MIS.USER dictionary to make sure you only send to users that have been filed within some time period. There is some kind of audit trail of the password activity that might be more useful instead. Joe Cocuzzo Vice President NPR Services Iatric Systems, Inc. Phone/Fax: (978) 805-4115 Email: [EMAIL PROTECTED] Web: www.iatric.com -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Gilmore Sent: Wednesday, December 06, 2006 3:50 PM To: 'MEDITECH-L' Subject: [MEDITECH-L] OA Message Question - MAGIC 5.5.2 I have a question about the %MIS.OA.MSG.auto program for an attribute I am writing... I realize that the program has 2 arguments. A = Message in OA Message Dictionary or Activity Message Dictionary B = Custom message to custom users I would like to know if it is possible for the program to send a message out of the OA message dictionary with a user that I define in the attribute instead of looking to the "Users" field of the OA message dictionary. The contents of the OA message will be lengthy, so this is why I am asking. This would be for a CDS in our User dictionary. Here's the scenario: When setting up a new user, I would like for an OA message to be sent to the new user asking for 2 pieces of information to be sent back to me so that I can store them in 2 queries on the CDS. One query is based on if the previous query has been answered. If the first query has not been answered, the IFE attribute in the second query allows a question to pop up (using the @W.yes.no macro) that asks if the OA message should be sent to the new user. If answered Yes, the message is sent and the cursor moves to the next query. If answered No, the cursor just moves to the next query. I have the attributes working for what I described above. The problem is setting up the %MIS.OA.MSG.auto program to send the message defined in the OA Message dictionary to the user whose account I am editing. I have no users defined in the "Users" field for this message. I have tried different ways to do this, but I usually get kicked to Goodbye with these methods. Please let me know if this is possible to do! Thanks, Jay Gilmore Systems Analyst Crisp Regional Hospital (229) 276-3173 ====================================== 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 ====================================== 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
