Update acknowledgments
[openemr.git] / interface / forms / newpatient / new.php
blob64c3273785edc26fa0af0caa99c5795f70eeefe1
1 <?php
2 /**
3 * Encounter form new script.
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
16 * @package OpenEMR
17 * @author Brady Miller <brady@sparmy.com>
18 * @link http://www.open-emr.org
21 $fake_register_globals=false;
22 $sanitize_all_escapes=true;
24 include_once("../../globals.php");
25 include_once("$srcdir/acl.inc");
26 include_once("$srcdir/lists.inc");
28 // Check permission to create encounters.
29 $tmp = getPatientData($pid, "squad");
30 if (($tmp['squad'] && ! acl_check('squads', $tmp['squad'])) ||
31 ! (acl_check('encounters', 'notes_a' ) ||
32 acl_check('encounters', 'notes' ) ||
33 acl_check('encounters', 'coding_a') ||
34 acl_check('encounters', 'coding' ) ||
35 acl_check('encounters', 'relaxed' )))
37 echo "<body>\n<html>\n";
38 echo "<p>(" . xlt('New encounters not authorized'). ")</p>\n";
39 echo "</body>\n</html>\n";
40 exit();
43 $viewmode = false;
44 require_once("common.php");