I’ve been testing on Program dashboard widgets that are configurable on the latest version of Reference Application deployed using the Openmrs SDK. It seems like it’s not possible to enroll a patient into a program or edit it using the configured dashboard widget. Secondly is that the custom dashboard for programs doesn’t display the configured program widgets.
The issue is the full privilege role does not have the privileges to add/edit/delete program by default:
You need to select them.
I added the widget in the qa app:
Added the two programs:
HIV and TB programs
You will also need to add the program status widget in the program specific dashboard to be able to enroll the patient into the program.
YOu will notice that the program link is enabled and it takes you to another page.
@jesplana What is the full privilege as there are lots of patient program privileges as per screenshot, I have not had to use privileges at a widget level so I am ignorant of the requirements
Maybe @dkayiwa and @burke can advise what is expected at a conceptual and design level
@ssmusoke the privilege required for the program widget is the ‘Task: coreapps.enrollInProgram’ and by default, the role , does not have those privileges required for the program widgets to function properly.
@mksd@ruhanga
Thank you very much @jesplana, @ssmusoke and @mksd . The real issue was to do with Privilege Level: Full which actually lacks some privileges that come out of the box with Ref App. I’m going to update this wiki page to capture this as well.
I think we should clarify what was intended with the ‘full privileges’ privilege (or whatever its actual naming is). It might be that it became out of sync with the privileges shipped with the Platform/Ref App.