//Insert the 'notes' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'notes', 'Patient Notes (write,addonly optional)', 'write'); //Insert the 'high' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'high', 'High', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'write'); //Insert the 'sign' object from the 'patients' section into the Physicians group write ACL (added in 3.3.0) updateAcl($doc_write, 'Physicians', 'patients', 'Patients', 'sign', 'Sign Lab Results (write,addonly optional)', 'write'); //Insert the 'sign' object from the 'nationnotes' section into the Administrators group write ACL (added in 3.3.0) updateAcl($admin_write, 'Administrators', 'nationnotes', 'Nation Notes', 'nn_configure', 'Nation Notes Configure', 'write'); //Insert the 'sign' object from the 'nationnotes' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'nationnotes', 'Nation Notes', 'nn_configure', 'Nation Notes Configure', 'write'); //Insert the 'patientportal' object from the 'patientportal' section into the Administrators group write ACL (added in 4.1.0) updateAcl($admin_write, 'Administrators', 'patientportal', 'Patient Portal', 'portal', 'Patient Portal', 'write'); //Insert the 'patientportal' object from the 'patientportal' section into the Emergency Login group write ACL (added in 4.1.0) updateAcl($emergency_write, 'Emergency Login', 'patientportal', 'Patient Portal', 'portal', 'Patient Portal', 'write'); //Function will return an array that contains the ACL ID number. //It will also check to ensure the ACL exist and is not duplicated. // $title = Title(string) of group. // $return_value = What the acl returns (string), usually 'write' or 'addonly' function getAclIdNumber($title, $return_value) { global $gacl; $temp_acl_id_array = $gacl->search_acl(FALSE, FALSE, FALSE, FALSE, $title, FALSE, FALSE, FALSE, $return_value); switch (count($temp_acl_id_array)) { case 0: echo "<B>ERROR</B>, '{$title}' group '{$return_value}' ACL does not exist.</BR>"; break; case 1: echo "'{$title}' group '{$return_value}' ACL is present.</BR>"; break;
addObjectSectionAcl('menus', 'Menus'); //Add new Objects echo "<BR/><B>Adding new objects</B><BR/>"; //Add 'modules' object (added in 4.1.3) addObjectAcl('menus', 'Menus', 'modle', 'Modules'); //Update already existing Objects echo "<BR/><B>Upgrading objects</B><BR/>"; //Add new ACLs here (will return the ACL ID of newly created or already existant ACL) // (will also place in the appropriate group and CREATE a new group if needed) echo "<BR/><B>Adding ACLs(Access Control Lists) and groups</B><BR/>"; //Update the ACLs echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>"; //Insert the 'Modules' object from the 'Menus' section into the Administrators group write ACL (added in 4.1.3) updateAcl($admin_write, 'Administrators', 'menus', 'Menus', 'modle', 'Modules', 'write'); //Insert the 'Modules' object from the 'Menus' section into the Emergency Login group write ACL (added in 4.1.3) updateAcl($emergency_write, 'Emergency Login', 'menus', 'Menus', 'modle', 'Modules', 'write'); //DONE with upgrading to this version $acl_version = $upgrade_acl; } /* This is a template for a new revision, when needed // Upgrade for acl_version 4 $upgrade_acl = 4; if ($acl_version < $upgrade_acl) { echo "<B>UPGRADING ACCESS CONTROLS TO VERSION ".$upgrade_acl.":</B></BR>"; //Collect the ACL ID numbers. echo "<B>Checking to ensure all the proper ACL(access control list) are present:</B></BR>"; //Add new object Sections echo "<BR/><B>Adding new object sections</B><BR/>";
//Insert the 'demo' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'demo', 'Demographics (write,addonly optional)', 'write'); //Insert the 'med' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'med', 'Medical/History (write,addonly optional)', 'write'); //Insert the 'trans' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'trans', 'Transactions (write optional)', 'write'); //Insert the 'docs' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'docs', 'Documents (write,addonly optional)', 'write'); //Insert the 'notes' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'notes', 'Patient Notes (write,addonly optional)', 'write'); //Insert the 'high' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'high', 'High', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'write'); //Insert the 'sign' object from the 'patients' section into the Physicians group write ACL (added in 3.3.0) updateAcl($doc_write, 'Physicians', 'patients', 'Patients', 'sign', 'Sign Lab Results (write,addonly optional)', 'write'); //Function will return an array that contains the ACL ID number. //It will also check to ensure the ACL exist and is not duplicated. // $title = Title(string) of group. // $return_value = What the acl returns (string), usually 'write' or 'addonly' function getAclIdNumber($title, $return_value) { global $gacl; $temp_acl_id_array = $gacl->search_acl(FALSE, FALSE, FALSE, FALSE, $title, FALSE, FALSE, FALSE, $return_value); switch (count($temp_acl_id_array)) { case 0: echo "<B>ERROR</B>, '{$title}' group '{$return_value}' ACL does not exist.</BR>"; break; case 1: echo "'{$title}' group '{$return_value}' ACL is present.</BR>"; break;
//Insert the 'trans' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'trans', 'Transactions (write optional)', 'write'); //Insert the 'docs' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'docs', 'Documents (write,addonly optional)', 'write'); //Insert the 'notes' object from the 'patients' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'patients', 'Patients', 'notes', 'Patient Notes (write,addonly optional)', 'write'); //Insert the 'high' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'high', 'High', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'write'); //Insert the 'sign' object from the 'patients' section into the Physicians group write ACL (added in 3.3.0) updateAcl($doc_write, 'Physicians', 'patients', 'Patients', 'sign', 'Sign Lab Results (write,addonly optional)', 'write'); //Insert the 'sign' object from the 'nationnotes' section into the Administrators group write ACL (added in 3.3.0) updateAcl($admin_write, 'Administrators', 'nationnotes', 'Nation Notes', 'nn_configure', 'Nation Notes Configure', 'write'); //Insert the 'sign' object from the 'nationnotes' section into the Emergency Login group write ACL (added in 3.3.0) updateAcl($emergency_write, 'Emergency Login', 'nationnotes', 'Nation Notes', 'nn_configure', 'Nation Notes Configure', 'write'); //Function will return an array that contains the ACL ID number. //It will also check to ensure the ACL exist and is not duplicated. // $title = Title(string) of group. // $return_value = What the acl returns (string), usually 'write' or 'addonly' function getAclIdNumber($title, $return_value) { global $gacl; $temp_acl_id_array = $gacl->search_acl(FALSE, FALSE, FALSE, FALSE, $title, FALSE, FALSE, FALSE, $return_value); switch (count($temp_acl_id_array)) { case 0: echo "<B>ERROR</B>, '{$title}' group '{$return_value}' ACL does not exist.</BR>"; break; case 1: echo "'{$title}' group '{$return_value}' ACL is present.</BR>"; break;