bradymiller wrote on Saturday, December 19, 2015:
ISSUE #1 for a8 is done and I just committed it to the official development codebase. It was a bit of a doozy, but it did add some more depth to the CDR engine.
Basically, can associate the clinical rules to an Access Control object in the Adminstration->Alerts screen. And if the user has permission to that Access Control, then the rule will be run/triggered when they are looking at a patient.
I added a "dummy" rule to show this behavior to Milton. The rule is:
Data Entry - Social Security Number
The rule is turned off by default. Here's how to show it to Milton to showcase that OpenEMR now has granular access controls tied to the CDR engine rules.
Go to Administration->Alerts gui and click the 'Passive Alert' toggle for the 'Data Entry - Social Security Number'.(note on this screen in the right column is the Access Control selector; do not touch this, it is already set up correctly).
Now create two new users. Set one user as a 'Physicians' and the other user as 'Accounting'. These are selected in the 'Access Control' selector in the user gui.
Now the magic:
Log in as the 'Physicians' user and create a new patient. Note that the 'Data Entry - Social Security Number' rule does NOT show up.
Then log in as the 'Accounting' user and look at the patient. Note that only the 'Data Entry - Social Security Number' rule shows up.
NOTE that when you create the new patient, do NOT fill in the Social Security number or else the reminder will not show up.
This should now complete all required coding changes for item a8.