Details
-
Type:
Improvement
-
Status: Accepted
-
Priority:
TBD
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Reference Application 2.10.0
-
Component/s: Core Apps
-
Labels:None
-
Complexity:Undetermined
Description
1. Description
As discussed in this OpenMRS talk thread, A new appointment widget will be designed and developed to report on Bahmni Appointments.
2. Dev Notes
- This widget will need bahmni-appointment-omod to be available as an `aware_of` dependency.
- Right now, there is some active development is going on `bahmni-appointments-omod` to enhance the current API to include `patient_uuid` (https://bahmni.atlassian.net/browse/BAH-933). However, to develop this widget we can start with some mock response. We can find the same in the attached JSON file.
- We will be using the AppointmentsController#Search endpoint to fetch the data from bahmni appointments.
- This will be a POST method endpoint.
- As of now the endpoint accepts Request Data as *
{"startDate":"2008-08-13T18:30:00.000Z" , "endDate":"2108-08-15T18:29:59.000Z" }
. After the current development, we will have another field as *patientUuid.
3. Acceptance Criteria
- This appointment widget should be shown on the Patient Dashboard. (Similar to existing appointment widget, See Attached Image)
- This Appointment widget will show a list of scheduled upcoming appointments for that particular patient.
- 5 Appointments to be shown.
- Below details for each appointment needs to be shown:
- Date of Appointment
- Time of Appointment (With AM or PM mentioned)
- Service Type of appointment
- The appointment widget will have a link, which will redirect the user to the appointments module. This link should be configurable.