change eligibility batch from ssn to policy number, minor fix to filename with extra...
[openemr.git] / library / ajax / turnoff_birthday_alert.php
blob18cad1601e98eaa06afa61d8d60f20bf5ebdebd5
1 <?php
2 /**
3 * Turn off/on Birthday alert .
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Sharon Cohen <sharonco@matrix.co.il>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2017 Sharon Cohen <sharonco@matrix.co.il>
10 * @copyright Copyright (c) 2017 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 use OpenEMR\Reminder\BirthdayReminder;
17 if (!empty($_POST['pid']) && !empty($_POST['user_id'])) {
18 $birthdayReminder = new BirthdayReminder($_POST['pid'], $_POST['user_id']);
19 $birthdayReminder->birthdayAlertResponse($_POST['turnOff']);