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?
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.
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.