* @author Brady Miller * @copyright Copyright (c) 2016 Shachar Zilbershlag * @copyright Copyright (c) 2016 Amiel Elboim * @copyright Copyright (c) 2017-2019 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("$srcdir/options.inc.php"); require_once("$srcdir/api.inc"); require_once("$srcdir/group.inc"); require_once("$srcdir/classes/POSRef.class.php"); use OpenEMR\Common\Acl\AclExtended; use OpenEMR\Common\Acl\AclMain; use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; use OpenEMR\Services\FacilityService; $facilityService = new FacilityService(); $months = array("01","02","03","04","05","06","07","08","09","10","11","12"); $days = array("01","02","03","04","05","06","07","08","09","10","11","12","13","14", "15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"); $thisyear = date("Y"); $years = array($thisyear - 1, $thisyear, $thisyear + 1, $thisyear + 2); if ($viewmode) { $id = (isset($_REQUEST['id'])) ? $_REQUEST['id'] : ''; $result = sqlQuery("SELECT * FROM form_groups_encounter WHERE id = ?", array($id)); $encounter = $result['encounter']; if ($result['sensitivity'] && !AclMain::aclCheckCore('sensitivities', $result['sensitivity'])) { echo "\n\n"; echo "

" . xlt('You are not authorized to see this encounter.') . "

\n"; echo "\n\n"; exit(); } } // Sort comparison for sensitivities by their order attribute. function sensitivity_compare($a, $b) { return ($a[2] < $b[2]) ? -1 : 1; } /*// get issues $ires = sqlStatement("SELECT id, type, title, begdate FROM lists WHERE " . "pid = ? AND enddate IS NULL " . "ORDER BY type, begdate", array($pid)); */?> <?php echo xlt('Therapy Group Encounter'); ?> >

' />
value='' title=''/>
"; } ?>
' title='' />
"; } ?>
>">