Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.controller.AdminAppointmentController Class Reference

Public Member Functions

 AdminAppointmentController (AdminAppointmentService adminAppointmentService)
 Constructor of the appointment.
 
Appointment createAppointment (@RequestBody Appointment appointment)
 Creates a new appointment by the admin.
 
Appointment updateAppointment (@PathVariable String appointmentId, @RequestBody Appointment updatedAppointment)
 Updates an already existing appointment by the admin.
 
void deleteAppointment (@PathVariable String appointmentId)
 Deletes an appointment by the admin.
 
List< Doctor > getAllDoctors ()
 Retrieves all the doctors for dropdown.
 
List< Patient > getAllPatients ()
 Retrieves all the patients for dropdown.
 
List< Appointment > getAllAppointments ()
 Retrieves all the appointments for dropdown.
 

Constructor & Destructor Documentation

◆ AdminAppointmentController()

com.hospital.portal.controller.AdminAppointmentController.AdminAppointmentController ( AdminAppointmentService  adminAppointmentService)
inline

Constructor of the appointment.

Member Function Documentation

◆ createAppointment()

Appointment com.hospital.portal.controller.AdminAppointmentController.createAppointment ( @RequestBody Appointment  appointment)
inline

Creates a new appointment by the admin.

Parameters
appointmentof the medical citation is going to be created
Returns
the created appointment

◆ deleteAppointment()

void com.hospital.portal.controller.AdminAppointmentController.deleteAppointment ( @PathVariable String  appointmentId)
inline

Deletes an appointment by the admin.

Parameters
idof the appointment to delete

◆ getAllAppointments()

List< Appointment > com.hospital.portal.controller.AdminAppointmentController.getAllAppointments ( )
inline

Retrieves all the appointments for dropdown.

◆ getAllDoctors()

List< Doctor > com.hospital.portal.controller.AdminAppointmentController.getAllDoctors ( )
inline

Retrieves all the doctors for dropdown.

◆ getAllPatients()

List< Patient > com.hospital.portal.controller.AdminAppointmentController.getAllPatients ( )
inline

Retrieves all the patients for dropdown.

◆ updateAppointment()

Appointment com.hospital.portal.controller.AdminAppointmentController.updateAppointment ( @PathVariable String  appointmentId,
@RequestBody Appointment  updatedAppointment 
)
inline

Updates an already existing appointment by the admin.

Parameters
idof the appointment to be edited
newappointment with the information to be updated
Returns
the updated appointment

The documentation for this class was generated from the following file: