* @author Brady Miller * @copyright Copyright (c) Visolve * @copyright Copyright (c) 2017-2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../../globals.php"); require_once("$srcdir/options.inc.php"); use OpenEMR\Common\Acl\AclMain; use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Common\Twig\TwigContainer; use OpenEMR\Core\Header; // Control access $authWrite = AclMain::aclCheckCore('patients', 'disclosure', '', 'write'); $authAddonly = AclMain::aclCheckCore('patients', 'disclosure', '', 'addonly'); if (!$authWrite && !$authAddonly) { echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Edit/Record Disclosure")]); exit; } //if the edit button for editing disclosure is set. if (isset($_GET['editlid'])) { if (!$authWrite) { echo xlt('Not Authorized'); exit; } $editlid = $_GET['editlid']; } ?>

   
1,'field_id' => 'disclosure_type','list_id' => 'disclosure_type','fld_length' => '10','max_length' => '63','empty_title' => 'SKIP'), $app_event); } else { //To incorporate the disclosure types into the list_options listings generate_form_field(array('data_type' => 1,'field_id' => 'disclosure_type','list_id' => 'disclosure_type','fld_length' => '10','max_length' => '63','empty_title' => 'SKIP'), ($title ?? '')); } ?>