Focus the search term on load
[openemr.git] / interface / forms / newpatient / new.php
blobd571761a5465db57b296b81007976b2c0546a37a
1 <?php
2 include_once("../../globals.php");
3 include_once("$srcdir/acl.inc");
4 include_once("$srcdir/lists.inc");
6 // Check permission to create encounters.
7 $tmp = getPatientData($pid, "squad");
8 if (($tmp['squad'] && ! acl_check('squads', $tmp['squad'])) ||
9 ! (acl_check('encounters', 'notes_a' ) ||
10 acl_check('encounters', 'notes' ) ||
11 acl_check('encounters', 'coding_a') ||
12 acl_check('encounters', 'coding' ) ||
13 acl_check('encounters', 'relaxed' )))
15 echo "<body>\n<html>\n";
16 echo "<p>(" . xl('New encounters not authorized'). ")</p>\n";
17 echo "</body>\n</html>\n";
18 exit();
21 $viewmode = false;
22 require_once("common.php");