Role based access for observation forms in Clinical module

Hi @sushmit

We have followed this approach for one of our clients.

  • We created 2 provider attributes (Say P1 and P2) to give access to the 2 types of user roles of the same module that is Clinical in respect to Observation forms.
    • Admin > Manage provider attributes type > Add provider attribute type > name the provider attribute with the data type as Boolean > Save
    • We have used provider attribute because this results in writing less code and it is easy to differentiate different providers.
    • For our purpose we created 2 provider attributes, but for making it for a generic use, we can create multiple according to the providers accessing the observation forms.
    • This was also in respect to the view and edit access of each provider on the display control on the patient dashboard.

Giving the access P1 or P2 to the selected provider “Suhas Kumar”

  • For linking the forms with each provider attribute, we have used key value pairs.
  • We created 2 key value pairs (as we had 2 types of provider attributes) created in the app.json file of Clinical module. Here we added the configuration for giving or removing access to the forms by entering their fully specified names under these key value pairs.

User/Provider role with access to only Form 1, Form 2, Form 3, Form 4 and Form 5

User/Provider role with access to only Form 7, Form 2, Form 6, Form 4 and Form 5