Need your help in building one logic for our OpenEMR setup. Since you guys are expert in this so I thought this would be the right place to discuss.
We need to build a logic which will restrict physicians (need only for physicians) to view patient records. We want patient records to be visible to physicians only based on upcomning & past appointments. For e.g. there are two doctors doc A & doc B. doc A had appointment (& consulted) with E, F, G, H patient and doc B had appointment (& consulted) with P, Q, R, S patient. So doc A should not have access to P, Q, R, S patient records and doc B should not have access to E, F, G, H patient records unless they have any appointment (& consulted) with these patients.
Kindy guide me how can I implment this loigic in OpenEMR is there any way I can use ACL for this.