4 * Encounter form new script.
7 * @link http://www.open-emr.org
8 * @author Amiel Elboim <amielel@matrix.co.il>
9 * @author Shachar Zilbershlag <shaharzi@matrix.co.il>
10 * @author Brady Miller <brady.g.miller@gmail.com>
11 * @copyright Copyright (c) 2016 Shachar Zilbershlag <shaharzi@matrix.co.il>
12 * @copyright Copyright (c) 2016 Amiel Elboim <amielel@matrix.co.il>
13 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
14 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
17 require_once(__DIR__
. "/../../globals.php");
18 require_once("$srcdir/lists.inc.php");
20 use OpenEMR\Common\Acl\AclMain
;
22 // todo -include_once("$srcdir/groups.inc");
25 /*// todo Check permission to create encounters.
26 $tmp = getGroupData($pid, "squad");
27 if (($tmp['squad'] && ! AclMain::aclCheckCore('squads', $tmp['squad'])) ||
28 ! (AclMain::aclCheckCore('encounters', 'notes_a' ) ||
29 AclMain::aclCheckCore('encounters', 'notes' ) ||
30 AclMain::aclCheckCore('encounters', 'coding_a') ||
31 AclMain::aclCheckCore('encounters', 'coding' ) ||
32 AclMain::aclCheckCore('encounters', 'relaxed' )))
34 echo "<body>\n<html>\n";
35 echo "<p>(" . xlt('New encounters not authorized'). ")</p>\n";
36 echo "</body>\n</html>\n";
41 if (AclMain
::aclCheckCore("groups", "glog", false, 'write')) {
42 require_once("common.php");
44 echo xlt("access not allowed");