You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
42 lines
1.6 KiB
<?php |
|
|
|
/** |
|
* Process/send clinical reminders. |
|
* |
|
* @package OpenEMR |
|
* @link https://www.open-emr.org |
|
* @author Brady Miller <brady.g.miller@gmail.com> |
|
* @copyright Copyright (c) 2012-2018 Brady Miller <brady.g.miller@gmail.com> |
|
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 |
|
*/ |
|
|
|
require_once(dirname(__FILE__) . "/../../interface/globals.php"); |
|
require_once(dirname(__FILE__) . "/../reminders.php"); |
|
|
|
use OpenEMR\Common\Csrf\CsrfUtils; |
|
|
|
if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { |
|
CsrfUtils::csrfNotVerified(); |
|
} |
|
|
|
//Remove time limit, since script can take many minutes |
|
set_time_limit(0); |
|
|
|
// Set the "nice" level of the process for these reports. When the "nice" level |
|
// is increased, these cpu intensive reports will have less affect on the performance |
|
// of other server activities, albeit it may negatively impact the performance |
|
// of this report (note this is only applicable for linux). |
|
if (!empty($GLOBALS['pat_rem_clin_nice'])) { |
|
proc_nice($GLOBALS['pat_rem_clin_nice']); |
|
} |
|
|
|
// Start a report, which will be stored in the report_results sql table.. |
|
if ((!empty($_POST['execute_report_id']) && !empty($_POST['process_type'])) && (($_POST['process_type'] == "process" ) || ($_POST['process_type'] == "process_send"))) { |
|
if ($_POST['process_type'] == "process_send") { |
|
update_reminders_batch_method('', '', $_POST['execute_report_id'], true); |
|
} else { // $_POST['process_type'] == "process" |
|
update_reminders_batch_method('', '', $_POST['execute_report_id']); |
|
} |
|
} else { |
|
echo "ERROR"; |
|
}
|
|
|