fix: Update patient_tracker.php (#6595)
[openemr.git] / library / ajax / status_report.php
bloba5fc86d28c58871e867d3fefea62f8a30a38d542
1 <?php
3 /**
4 * Collect status of a report in report_results sql table.
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2012-2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once(dirname(__FILE__) . "/../../interface/globals.php");
14 require_once(dirname(__FILE__) . "/../report_database.inc.php");
16 use OpenEMR\Common\Csrf\CsrfUtils;
18 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
19 CsrfUtils::csrfNotVerified();
22 // Collect/bookmark a new report id in report_results sql table and send it back.
23 if (!empty($_POST['status_report_id'])) {
24 echo getStatusReportDatabase($_POST['status_report_id']);
25 } else {
26 echo "ERROR";