fix: set default x12 partner for item in billing manager (#7513)
[openemr.git] / interface / forms / newGroupEncounter / new.php
blob7cb5781498ff592af8a4ba327df312c689d44cdd
1 <?php
3 /**
4 * Encounter form new script.
6 * @package OpenEMR
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";
37 exit();
38 }*/
40 $viewmode = false;
41 if (AclMain::aclCheckCore("groups", "glog", false, 'write')) {
42 require_once("common.php");
43 } else {
44 echo xlt("access not allowed");