Integrating bahmni with an external database.

I have a database of doctors, nurses, other medical staff that will be users for bahmni setup. Now I could create users independently in bahmni with specific privileges. However, is it possible I could integrate said database with bahmni application?

Is this a one off import of existing users, or do you intend to continually manage users elsewhere?

If the latter, do you mean some kind of Active Directory?

While “everything is possible”, nobody can estimate how complicated it would be to get there without details about what you envision to get done.

Let’s say it’s one time import only. How can I go about it?

Also, how complicated can it get if I were to manage users as well. Like if I update users in master database then bahmni also get updated list. Same for inserting new user OR deleting existing user.

Thanks

I would say quite complicated. With OpenMRS only some of this can be done when using an auth provider and OAuth2. See this thread, amongst others. But only some level of users management will be possible, for instance roles management will continue to fully happen within OpenMRS.

But within Bahmni, again depending on what you hope to achieve exactly, this becomes up to three times more complicated since you have users in OpenMRS, OpenELIS and Odoo.

So I’d say

  • OpenMRS only: quite complicated.
  • Bahmni: very complicated.

A one time import of users into OpenMRS would require to write some kind of script that does it. It’s quite simple to import users with a SQL query for instance. Not 100% sure about the two others systems, probably the same level of complexity as with OpenMRS.