In our project we have the following Enhancement to the Appointments Scheduling Module in Bahmni
Weekly View of a Calendar
Currently In bahmni we have only a Day view for both the List & Calendar View. Now the requirement is to be able to quickly look at a week’s agenda in a glance to place their patient appointments.
In the current system, we have one endpoint which takes the selected date and displays the list of appointments. Now to support the new feature we want to replace the existing method to take two parameters startDate and endDate of the week and get all the appointments.
Existing Method Signature: List<AppointmentDefaultResponse> getAllAppointments( @RequestParam(value = “forDate”, required = false) String forDate)
Proposed Method Signature: List<AppointmentDefaultResponse> getAllAppointments( @RequestParam(value = “startDate”, required = false) String startDate, @RequestParam(value = “endDate”, required = false) String endDate)
Can anyone suggest whether we can go with above approach or create a separate API endpoint. Which would be the better way?