Sending / Printing Reports on a schedule

mdsupport wrote on Friday, September 10, 2010:

We have a request for unattended printing and / or email of some of the reports - e.g. the appointments report to be emailed at midnight or it can printed to a fax printer set up on the server.

Unlike reminder emails for appointments which are working very well, when other reports are invoked through cron, they produce no output or email to the unix user as PHP is supposed to do.

Can anyone provide guidelines to make a standard report 'cron’able?

visolveemr wrote on Monday, September 13, 2010:

Hi,

As of our understanding, you are trying to cron the reports that are generated under OpenEMR Reports section. If so, then you need to write some separate scripts, which does this functionality.  IgnoreAuth variable plays a major role.

You can refer the file  modules/sms_email_reminder/cron_email_notification.php for more information on cron scripts with OpenEMR.

Do let us know for any help.

Thanks
VicarePlus Team
www.vicareplus.com

mdsupport wrote on Tuesday, September 14, 2010:

Thank you for the response. 
Looking at the email notification code, it appears that we will have to replicate the original / released report processing code as another script which makes it harder to keep the code current.
In the past we have used general purpose shells around existing reports and routed the selected output.  We were looking for something along those lines.
Will keep you posted if are able to implement such a scheme.