Difficulty in Customizing Patient Intake Forms for Specific User Roles

Hello

As a user; I’m trying to customize the patient intake forms in OpenEMR for different user roles. I want to make certain fields mandatory or visible only to specific roles; but I’m not sure how to accomplish this through the current customization options available. :slightly_smiling_face:

While I have managed to add new fields using the form builder; I’m struggling with controlling access to these fields based on user roles. This feature is crucial for our practice, as we have different teams (e.g., administrative staff, clinicians) who need access to specific information. :innocent:

I have explored the “User Roles” section in OpenEMR’s settings, but I haven’t found a clear way to link specific user roles to customized intake forms. I’ve also tried creating different versions of the intake forms for each role, but I can’t seem to make the system display the correct form based on the logged-in user’s role. :upside_down_face:

I have reviewed the available documentation & forum posts, but none seem to provide a straightforward solution for this customization.

Could someone explain the best approach for customizing patient intake forms so that certain fields or sections are only visible or mandatory for specific user roles? :thinking: Checked openemr/API_README.md at master · openemr/openemr · GitHub MongoDB guide for reference .

Any guidance or code examples for achieving this would be appreciated, as it would help streamline our intake process and ensure sensitive information is only accessed by the appropriate team members.

Thank you ! :slightly_smiling_face:

Hello @boxid welcome to the community!
It looks like the approach you’re taking is a bit different from how OpenEMR does things. And it’s possible you haven’t heard of the OpenEMR documentation wiki?

Patient categories are used to determine which forms are delivered to a patient through their portal.
https://www.open-emr.org/wiki/index.php/Patient_Portal_Templates

See this tutorial, esp check the links in the conclusion:
https://www.open-emr.org/wiki/index.php/HOWTO:_Create_Custom_Document_Template_Categories

User ACLs control staff access to functions such as creating or editing forms. You might look here for some clue:
https://www.open-emr.org/wiki/index.php/ACL_Fine_Granular_Control#Forms

Once you determine the ACL you want to give the user you can add it to their list of access permissions by doing this:
https://www.open-emr.org/wiki/index.php/Basic_User_ACLs_In_OpenEMR_And_How_To_Customize_Them

You may also find useful info here:
https://www.open-emr.org/wiki/index.php/Role_Based_Menus

and of course you should search both the wiki (search tool at bottom of every wiki page) and the forum for users asking about your topic before you. You can see this is a popular question.
https://community.open-emr.org/search?q=intake%20forms%20order%3Alatest

If you develop specific questions about how to do any of these tasks (or others!) come on back here to the forum and post them.

Best- Harley