Configure Views of Appointments

Calendar View 

This view provides the user the ability to view appointments for different providers in a given day, in a calendar. Users can further filter appointments using a filter panel available on this view.  To know more about using the calendar view, please see the User guide. 

Enabling Calendar View

To Enable calendar view in Appointments Scheduling Module, please add below config in openmrs/apps/appointments/app.json

"config": {
   "enableCalendarView": true       // To enable calendar view make it as true    
 }

By default the calendar view is enabled. You can turn it off using the above config.

Configuring the Calendar 

The calendar view allows the following things to be configured:

  1. Label Interval : This is the interval between the times/labels displayed on the calendar
  2. Slot duration : This is duration of a slot on which a user can click to create an appointment
  3. Start & end time of the day: The working hours of a clinic/hospital can be set here. And the times outside of these are greyed out. However it doesn't stop the user from booking appointments against them

Navigate to openmrs/apps/appointments/app.json and modify the values of below attributes. Below is default configuration for setting interval duration to 30 minutes, slot duration to 10 minutes, start of the day to 9:00 AM and end of the day to 7:00 PM .

"config": {
"calendarSlotLabelInterval": "01:00:00",
"calendarSlotDuration": "00:30:00",
"startOfDay":"09:00",
"endOfDay":"19:00"
}

Screenshot of the example configuration 

List View 

List View is available by default with the appointment scheduling Module. 

Print List View 

To configure the html for printing appointments on list view, provide the html location as below in appointments/app.json

"printListViewTemplateUrl": "/bahmni_config/openmrs/apps/appointments/printListView.html"

Sample html file with all the columns configured : printListView.html

The following conditions can be put on the columns:

  1. To show specialities, only when enableSpecialities is configured to true.
  2. To show serviceTypes, only when enableServiceTypes is configured to true

Column Sort/Order:
On the list view when click on the column name, up arrow will display beside column name and column will sort in ascending order. If you click on column name again, now you will see down arrow and sort will be in descending order. You can do sort on any column in the list.

Weekly Summary View

The summary view is a weekly view. Users can configure the view to begin with either Sunday or Monday using the config below

To Configure start of week, please add following config in openmrs/apps/appointments/app.json

weekStart: “week”  //the weekly summary view will show from Sunday to Saturday of the current week
weekStart: "isoWeek” //the weekly summary view will show from Monday to Sunday of the current week





On This Page

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)