7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 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(__DIR__
. "/../../globals.php");
14 require_once("$srcdir/api.inc.php");
15 require_once("C_FormPriorAuth.class.php");
17 use OpenEMR\Common\Csrf\CsrfUtils
;
19 if (!CsrfUtils
::verifyCsrfToken($_POST["csrf_token_form"])) {
20 CsrfUtils
::csrfNotVerified();
23 $_POST['date_from'] = (!empty($_POST['date_from'])) ?
DateToYYYYMMDD($_POST['date_from']) : null;
24 $_POST['date_to'] = (!empty($_POST['date_to'])) ?
DateToYYYYMMDD($_POST['date_to']) : null;
26 $c = new C_FormPriorAuth();
27 echo $c->default_action_process($_POST);