Still thinking about openEMR deployment of multiple sites. The web entry URL for a single site could be easily setup as something like: login/login_frame.php?site=default
However, if we have multiple sites, what do people usually do for setting up the entry point? One old-school way is probably to set up multiple links with different sites' name and link them to different site=**** URLs. However, this is not really a "single" entry point and the user has to pick a site before logging in.
I was wondering if there is any easy way to set up a single entry point for multiple sites...
Any comments? thanks!
We do it using apache http rewrite in the websites .conf file ... like this
RewriteRule ^/default/?$ https://openemr.site.com/openemr?site=default [L,R]
RewriteRule ^/default/(.*)$ https://openemr.site.com/openemr/$1?site=default [L,R]
RewriteRule ^/site2/?$ https://openemr.site.com/openemr?site=site2 [L,R]
RewriteRule ^/site2/(.*)$ https://openemr.site.com/openemr/$1?site=site2 [L,R]
May be site selection belongs on logon screen just like language.
Yup - in some ways site selection belongs on logon screen.
what I was more interested is a one-step single-sign-on option for all users. For example, user1 belongs to site1, user2 belongs to site2. However, I want to offer them the same entry URL. Later when they login I will re-direct them to different sites based on their credential. Not sure if there is any easy way to do this. Maybe we need to add another level of AD like LDAP before redirecting to the actual URL with site id.
I am curious as to what the workflow scenario is where the same user credential would be used across multiple sites?
There is no real workflow - I am only testing and imagining things out. But a doctor who is working for two clinics may run into this.
The purpose of multi-site is usually to isolate data from one set of users who shouldn't be seeing data managed by another set of users.
If it's the same set of patients that just might show up at different offices, that is probably better handled as a single OpenEMR site/database with multiple locations/facilities.
i was thinking the same thing,but i was thinking of a pre-login page. if i understand your concept well, you will login with a set of credentials and the system has to determine which site you belong to. that means a separate database for the initial login, since each site has it's own set of database that contains the users and credentials. otherwise, the login page will have to query from the database of each site. the more sites you have, the more time it will take. this also means no same user can be created for more than 1 site.
i would use a pre-login page.