User can be assigned different privileges so as to provide different levels of access to the appointment scheduling module. For example, to view appointments or Create appointments or Create services.
There are three different user roles available in Appointment Scheduling App which are mentioned below,
Users can have either a “Read only” role, “Manage Appointments” role and “Full Access” for the App.
Read Only: Can only view Manage Appointments Tab. No actions can be performed. Any effort for action will give error message.
Manage Appointments: This user will have access only to “Manage appointments.” Can perform all actions in the app. Admin tab will be hidden.
Full Access: This user will have access to Both the tabs of “Manage appointments” and “Admin”. The user will be able to create, edit appointments and services.
Appointment scheduling module has a set of privileges associated with it.
Read only
For Read Only role to work as expected, the following privileges must be assigned to that role. If any of the privileges are not assigned, it can be assigned from Openmrs. Privileges required are: app:appointments, Get Admission Locations, Get Beds, Get Locations, Get Patient Identifiers, Get Patients, Get Providers, View Appointments, View Appointment Services
Manage Appointments
For Manage Appointments role to work as expected, the following privileges must be assigned to that role. If any of the privileges are not assigned, it can be assigned from Openmrs. Privileges required are: app:appointments, app:appointments:manageAppointmentsTab, Get Admission Locations, Get Beds, Get Locations, Get Patient Identifiers, Get Patients, Get Providers, View Appointments, View Appointment Services, Manage Appointments
Full Access
For Full Access role to work as expected, the following privileges must be assigned to that role. If any of the privileges are not assigned, it can be assigned from Openmrs. Privileges required are: app:appointments, app:appointments:manageAppointmentsTab, app:appointments:adminTab, Get Admission Locations, Get Beds, Get Locations, Get Patient Identifiers, Get Patients, Get Providers, View Appointments, View Appointment Services, Manage Appointments, Manage Appointment Services
Roles can be assigned from either openMRS or the database.
Go to Administration
Go to Manage Users
Select user and assign necessary roles (Appointments:ReadOnly, Appointments:ManageAppointments and Appointments:FullAccess)
Read Only:
INSERT INTO user_role VALUES (user_id, "Appointments:ReadOnly"); |
Manage Appointments:
INSERT INTO user_role VALUES (user_id, "Appointments:ManageAppointments"); |
Full Access:
INSERT INTO user_role VALUES (user_id, Appointments:FullAccess"); |
Note: User_id is from the from users table.