change eligibility batch from ssn to policy number, minor fix to filename with extra...
[openemr.git] / library / ajax / drug_screen_completed.php
blob1983cfc045ef36e58807e09cb7c438494d7a22f1
1 <?php
2 /**
4 * Drug Screen Complete Update Database
6 * LICENSE: This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
17 * @package OpenEMR
19 * @author Terry Hill <terry@lillysystems.com>
20 * @link http://www.open-emr.org
22 * Please help the overall project by sending changes you make to the author and to the OpenEMR community.
29 require_once("../../interface/globals.php");
31 $drugval = '0';
32 if ($_POST['testcomplete'] =='true') {
33 $drugval = '1';
36 $tracker_id = $_POST['trackerid'];
37 if ($tracker_id != 0) {
38 sqlStatement("UPDATE patient_tracker SET " .
39 "drug_screen_completed = ? " .
40 "WHERE id =? ", array($drugval,$tracker_id));