fix: Update patient_tracker.php (#6595)
[openemr.git] / library / ajax / rule_setting.php
blobeef396327a55012a5ded72d223aba505665bb885
1 <?php
3 /**
4 * This file contains functions that manage custom user
5 * settings
7 * @package OpenEMR
8 * @link https://www.open-emr.org
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2011-2018 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 require_once(dirname(__FILE__) . "/../../interface/globals.php");
15 require_once(dirname(__FILE__) . "/../clinical_rules.php");
17 use OpenEMR\Common\Csrf\CsrfUtils;
19 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
20 CsrfUtils::csrfNotVerified();
23 //set the rule setting for patient (ensure all variables exist)
24 if ($_POST['rule'] && $_POST['type'] && $_POST['setting'] && $_POST['patient_id']) {
25 set_rule_activity_patient($_POST['rule'], $_POST['type'], $_POST['setting'], $_POST['patient_id']);