Anyone have a mod out there that allows providers to have more than one facility? So they show up in the calendar’s facility view for any facility they are allowed to?
Right now if you book an appt for a patient at anything other than the default facility it’s not visible on the calendar at all…
The users_facility table is supposed to support these relations. Suggest you check the calendar code (and other code) to see if/where it’s referenced. Also there are some global settings about users and facilities.
Thanks, will do that.
Is there documentation about how that works written by anyone, if not we’ll
do that
Tony
–
Please be aware that e-mail communication can be intercepted in
transmission or misdirected. Please consider communicating any sensitive
information by telephone. The information contained in this message may be
privileged and confidential. If you are NOT the intended recipient, please
notify the sender immediately with a copy to hipaa-security@mrsb-ltd.com and
destroy this message.
That was a good hint! Needs documentation for sure.
This: Restrict Users to Facilities
Selecting this will restrict non-authorized users to the Schedule Facilities configured for the user in Adminstration->Users.
Does not explain the scope of this feature which, so far, appears to BOTH restrict users to viewing specific facilities in the calendar but ALSO allow a provider to be on more than one facility calendar. Just what I needed.
I think there’s an underlying bug here that has been known.
To demonstrate, I added another facility to the 4.2.0 dev demo and have attached screenshots showing how the calendar is defunct when you choose the non-default facility. When you click on a time to schedule an event nothing happens.
Eureka. If you’re not restricting users to a facility then you shouldn’t limit the sql select statement based on the default facility defined in the users table.
Hi Tony, I’m still looking around in the code but I don’t see where anything is ever entered into users_facility. The closest it comes to an insert is here.
–
Please be aware that e-mail communication can be intercepted in
transmission or misdirected. Please consider communicating any sensitive
information by telephone. The information contained in this message may be
privileged and confidential. If you are NOT the intended recipient, please
notify the sender immediately with a copy to hipaa-security@mrsb-ltd.com and
destroy this message.
On my quick review, it seems like this fix “breaks” the getProviderInfo() by simply ignoring the $facility parameter. Would it be better to attack the fix where the getProviderInfo() function call is made (let me know if I am missing something, which is possible, since I did just do a quick review).