Skip to content

Commit

Permalink
minor fixes to prior commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Mar 26, 2018
1 parent 5005b49 commit 05288e9
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 109 deletions.
2 changes: 1 addition & 1 deletion acl_setup.php
Expand Up @@ -171,7 +171,7 @@
$gacl->add_object('patients', 'Documents (write,addonly optional)', 'docs', 10, 0, 'ACO');
// xl('Documents (write,addonly optional)')
$gacl->add_object('patients', 'Documents Delete', 'docs_rm', 10, 0, 'ACO');
// xl('Documents deleting')
// xl('Documents Delete')
$gacl->add_object('patients', 'Patient Notes (write,addonly optional)', 'notes', 10, 0, 'ACO');
// xl('Patient Notes (write,addonly optional)')
$gacl->add_object('patients', 'Sign Lab Results (write,addonly optional)', 'sign', 10, 0, 'ACO');
Expand Down
218 changes: 110 additions & 108 deletions acl_upgrade.php
@@ -1,113 +1,115 @@
<?php
/**
* Upgrade script for access controls.
*
* This script will update the phpGACL database, which include
* Access Control Objects(ACO), Groups(ARO), and Access Control
* Lists(ACL) to the most recent version.
* It will display whether each update already exist
* or if it was updated succesfully.
* To avoid reversing customizations, upgrade is done in versions,
* which are recorded in the database. To add another version of
* changes, use the following template:
* <pre>// Upgrade for acl_version <acl_version_here>
* $upgrade_acl = <acl_version_here>;
* 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/>";
*
* //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/>";
*
* //Update the ACLs
* echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>";
*
* //DONE with upgrading to this version
* $acl_version = $upgrade_acl;
* }
* </pre>
*
* Updates included:
* <pre>---VERSION 1 ACL---
* 2.8.2
* Section "sensitivities" (Sensitivities):
* ADD normal Normal (Administrators, Physicians, Clinicians(addonly))
* ADD high High (Administrators, Physicians)
* Section "admin" (Administration):
* ADD super Superuser (Adminstrators)
* 2.8.4
* Section "admin" (Administration):
* ADD drugs Pharmacy Dispensary (Administrators, Physicians, Clinicians(write))
* ADD acl ACL Administration (Administrators)
* Section "sensitivities" (Sensitivities):
* EDIT high High (ensure the order variable is '20')
* Section "acct" (Accounting):
* ADD disc Price Discounting (Administrators, Physicians, Accounting(write))
* 3.0.2
* ADD Section "lists" (Lists):
* ADD default Default List (write,addonly optional) (Administrators)
* ADD state State List (write,addonly optional) (Administrators)
* ADD country Country List (write,addonly optional) (Administrators)
* ADD language Language List (write,addonly optional) (Administrators)
* ADD ethrace Ethnicity-Race List (write,addonly optional) (Administrators)
* ADD Section "placeholder" (Placeholder):
* ADD filler Placeholder (Maintains empty ACLs)
* ACL/Group doc addonly "Physicians" (filler aco)
* ACL/Group front addonly "Front Office" (filler aco)
* ACL/Group back addonly "Accounting" (filler aco)
* 3.3.0
* Section "patients" (Patients):
* ADD sign Sign Lab Results (Physicians)
* ACL/Group breakglass write "Emergency Login" (added all aco's to it)
* 4.1.0
* Section "nationnotes" (Nation Notes):
* ADD nn_configure Nation Notes Configure (Administrators, Emergency Login)
* Section "patientportal" (Patient Portal):
* ADD portal Patient Portal (Administrators, Emergency Login)
* 4.1.1
* ACL/Group doc wsome "Physicians" (filler aco)
* ACL/Group clin wsome "Clinicians" (filler aco)
* ACL/Group front wsome "Front Office" (filler aco)
* ACL/Group back wsome "Accounting" (filler aco)
* ACL/Group doc view "Physicians" (filler aco)
* ACL/Group clin view "Clinicians" (filler aco)
* ACL/Group front view "Front Office" (filler aco)
* ACL/Group back view "Accounting" (filler aco)
* 4.1.3
* Section "menus" (Menus):
* ADD modle Module (Administrators, Emergency Login)
* 5.0.1
* Section "patients" (Patients):
* ADD reminder Patient Reminders (Physicians,Clinicians(addonly))
* ADD alert Clinical Reminders/Alerts (Physicians,Clinicians,Front Office(view),Accounting(view))
* ADD disclosure Disclosures (Physicians,Clinicians(addonly))
* ADD rx Prescriptions (Physicians,Clinicians(addonly))
* ADD amendment Amendments (Physicians,Clinicians(addonly))
* ADD lab Lab Results (Physicians,Clinicians(addonly))
* ADD docs_rm Documents Delete (Administrators)
* Section "admin" (Administration):
* ADD multipledb Multipledb (Administrators)
* ADD menu Menu (Administrators)
* Section "groups" (Groups):
* ADD gadd View/Add/Update groups (Administrators)
* ADD gcalendar View/Create/Update groups appointment in calendar (Administrators,Physicians,Clinicians)
* ADD glog Group encounter log (Administrators,Physicians, Clinicians)
* ADD gdlog Group detailed log of appointment in patient record (Administrators)
* ADD gm Send message from the permanent group therapist to the personal therapist (Administrators)
* </pre>
*
* Upgrade script for access controls.
*
* This script will update the phpGACL database, which include
* Access Control Objects(ACO), Groups(ARO), and Access Control
* Lists(ACL) to the most recent version.
* It will display whether each update already exist
* or if it was updated succesfully.
* To avoid reversing customizations, upgrade is done in versions,
* which are recorded in the database. To add another version of
* changes, use the following template:
* <pre>// Upgrade for acl_version <acl_version_here>
* $upgrade_acl = <acl_version_here>;
* 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/>";
*
* //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/>";
*
* //Update the ACLs
* echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>";
*
* //DONE with upgrading to this version
* $acl_version = $upgrade_acl;
* }
* </pre>
*
* Updates included:
* <pre>---VERSION 1 ACL---
* 2.8.2
* Section "sensitivities" (Sensitivities):
* ADD normal Normal (Administrators, Physicians, Clinicians(addonly))
* ADD high High (Administrators, Physicians)
* Section "admin" (Administration):
* ADD super Superuser (Adminstrators)
* 2.8.4
* Section "admin" (Administration):
* ADD drugs Pharmacy Dispensary (Administrators, Physicians, Clinicians(write))
* ADD acl ACL Administration (Administrators)
* Section "sensitivities" (Sensitivities):
* EDIT high High (ensure the order variable is '20')
* Section "acct" (Accounting):
* ADD disc Price Discounting (Administrators, Physicians, Accounting(write))
* 3.0.2
* ADD Section "lists" (Lists):
* ADD default Default List (write,addonly optional) (Administrators)
* ADD state State List (write,addonly optional) (Administrators)
* ADD country Country List (write,addonly optional) (Administrators)
* ADD language Language List (write,addonly optional) (Administrators)
* ADD ethrace Ethnicity-Race List (write,addonly optional) (Administrators)
* ADD Section "placeholder" (Placeholder):
* ADD filler Placeholder (Maintains empty ACLs)
* ACL/Group doc addonly "Physicians" (filler aco)
* ACL/Group front addonly "Front Office" (filler aco)
* ACL/Group back addonly "Accounting" (filler aco)
* 3.3.0
* Section "patients" (Patients):
* ADD sign Sign Lab Results (Physicians)
* ACL/Group breakglass write "Emergency Login" (added all aco's to it)
* 4.1.0
* Section "nationnotes" (Nation Notes):
* ADD nn_configure Nation Notes Configure (Administrators, Emergency Login)
* Section "patientportal" (Patient Portal):
* ADD portal Patient Portal (Administrators, Emergency Login)
* 4.1.1
* ACL/Group doc wsome "Physicians" (filler aco)
* ACL/Group clin wsome "Clinicians" (filler aco)
* ACL/Group front wsome "Front Office" (filler aco)
* ACL/Group back wsome "Accounting" (filler aco)
* ACL/Group doc view "Physicians" (filler aco)
* ACL/Group clin view "Clinicians" (filler aco)
* ACL/Group front view "Front Office" (filler aco)
* ACL/Group back view "Accounting" (filler aco)
* 4.1.3
* Section "menus" (Menus):
* ADD modle Module (Administrators, Emergency Login)
* 5.0.1
* Section "patients" (Patients):
* ADD reminder Patient Reminders (Physicians,Clinicians(addonly))
* ADD alert Clinical Reminders/Alerts (Physicians,Clinicians,Front Office(view),Accounting(view))
* ADD disclosure Disclosures (Physicians,Clinicians(addonly))
* ADD rx Prescriptions (Physicians,Clinicians(addonly))
* ADD amendment Amendments (Physicians,Clinicians(addonly))
* ADD lab Lab Results (Physicians,Clinicians(addonly))
* Section "admin" (Administration):
* ADD multipledb Multipledb (Administrators)
* ADD menu Menu (Administrators)
* Section "groups" (Groups):
* ADD gadd View/Add/Update groups (Administrators)
* ADD gcalendar View/Create/Update groups appointment in calendar (Administrators,Physicians,Clinicians)
* ADD glog Group encounter log (Administrators,Physicians, Clinicians)
* ADD gdlog Group detailed log of appointment in patient record (Administrators)
* ADD gm Send message from the permanent group therapist to the personal therapist (Administrators)
* 5.0.2
* Section "patients" (Patients):
* ADD docs_rm Documents Delete (Administrators)
* </pre>
*
* @package OpenEMR
* @link http://www.open-emr.org
* @author Brady Miller <brady.g.miller@gmail.com>
Expand Down

0 comments on commit 05288e9

Please sign in to comment.