addObjectAcl('patientportal', 'Patient Portal', 'portal', 'Patient Portal'); //Update already existing Objects echo "<BR/><B>Upgrading objects</B><BR/>"; //Ensure that 'High' sensitivity object order variable is set to 20 editObjectAcl('sensitivities', 'Sensitivities', 'high', 'High', 20); //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/>"; //Add 'Physicians' ACL with 'addonly' and collect the ID number (added in 3.0.2) $doc_addonly = addNewACL('Physicians', 'doc', 'addonly', 'Things that physicians can read and enter but not modify'); //Add 'Front Office' ACL with 'addonly' and collect the ID number (added in 3.0.2) $front_addonly = addNewACL('Front Office', 'front', 'addonly', 'Things that front office can read and enter but not modify'); //Add 'Accounting' ACL with 'addonly' and collect the ID number (added in 3.0.2) $back_addonly = addNewACL('Accounting', 'back', 'addonly', 'Things that back office can read and enter but not modify'); //Add 'Emergency Login' ACL with 'write' and collect the ID number (added in 3.3.0) $emergency_write = addNewACL('Emergency Login', 'breakglass', 'write', 'Things that can use for emergency login, can read and modify'); //Update the ACLs echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>"; //Insert the 'super' object from the 'admin' section into the Administrators group write ACL (added in 2.8.2) updateAcl($admin_write, 'Administrators', 'admin', 'Administration', 'super', 'Superuser', 'write'); //Insert the 'high' object from the 'sensitivities' section into the Administrators group write ACL (added in 2.8.2) updateAcl($admin_write, 'Administrators', 'sensitivities', 'Sensitivities', 'high', 'High', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Administrators group write ACL (added in 2.8.2) updateAcl($admin_write, 'Administrators', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'write'); //Insert the 'high' object from the 'sensitivities' section into the Physicians group write ACL (added in 2.8.2) updateAcl($doc_write, 'Physicians', 'sensitivities', 'Sensitivities', 'high', 'High', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Physicians group write ACL (added in 2.8.2) updateAcl($doc_write, 'Physicians', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'write'); //Insert the 'normal' object from the 'sensitivities' section into the Clinicians group addonly ACL (added in 2.8.2) updateAcl($clin_addonly, 'Clinicians', 'sensitivities', 'Sensitivities', 'normal', 'Normal', 'addonly'); //Insert the 'drugs' object from the 'admin' section into the Administrators group write ACL (added in 2.8.4)
echo "<BR/><B>Adding new object sections</B><BR/>"; //Add new Objects echo "<BR/><B>Adding new objects</B><BR/>"; //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/>"; addNewACL('Physicians', 'doc', 'wsome', 'Things that physicians can read and partly modify'); addNewACL('Clinicians', 'clin', 'wsome', 'Things that clinicians can read and partly modify'); addNewACL('Front Office', 'front', 'wsome', 'Things that front office can read and partly modify'); addNewACL('Accounting', 'back', 'wsome', 'Things that back office can read and partly modify'); addNewACL('Physicians', 'doc', 'view', 'Things that physicians can only read'); addNewACL('Clinicians', 'clin', 'view', 'Things that clinicians can only read'); addNewACL('Front Office', 'front', 'view', 'Things that front office can only read'); addNewACL('Accounting', 'back', 'view', 'Things that back office can only read'); //Update the ACLs echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>"; //DONE with upgrading to this version $acl_version = $upgrade_acl; } // Upgrade for acl_version 3 $upgrade_acl = 3; 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>"; //Get Administrator ACL ID number $admin_write = getAclIdNumber('Administrators', 'write'); //Get Emergency ACL ID number $emergency_write = getAclIdNumber('Emergency Login', 'write');