Please refer to this google document
APIs - https://github.com/Bahmni/openmrs-module-appointments
UI - https://github.com/Bahmni/openmrs-module-bahmniapps/tree/master/ui/app/appointments