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

Public Member Functions

 DocAppointmentController (DocAppointmentService docAppointmentService)
 Constructor of the appointments for the doctors.
 
List< Doctor > getAllDoctors ()
 Gets the doctors.
 
List< Patient > getAllPatients ()
 Gets the patients.
 
List< Appointment > getAppointmentsByDoctor (@PathVariable String dni)
 Gets the appointments of a specific doctor.
 
Appointment createAppointment (@PathVariable String dni, @RequestBody Appointment appointment)
 Creates an appointment for a specific doctor.
 
Appointment updateAppointment (@PathVariable String appointmentId, @RequestBody Appointment appointment)
 Updates a specific appointment.
 
void deleteAppointment (@PathVariable String appointmentId)
 Deletes a specific appointment.
 
List< Appointment > getAppointmentsByDoctorAndDateRange (@PathVariable String dni, @RequestParam("startDate") LocalDate startDate, @RequestParam("endDate") LocalDate endDate)
 Filters the information of a doctors appointment by date.
 

Constructor & Destructor Documentation

◆ DocAppointmentController()

com.hospital.portal.controller.DocAppointmentController.DocAppointmentController ( DocAppointmentService  docAppointmentService)
inline

Constructor of the appointments for the doctors.

Member Function Documentation

◆ createAppointment()

Appointment com.hospital.portal.controller.DocAppointmentController.createAppointment ( @PathVariable String  dni,
@RequestBody Appointment  appointment 
)
inline

Creates an appointment for a specific doctor.

Parameters
DNIof the doctor
Newappointment created
Returns
The new appointment created

◆ deleteAppointment()

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

Deletes a specific appointment.

Parameters
Idof the appointment to be deleted

◆ getAllDoctors()

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

Gets the doctors.

Returns
List of all the doctors

◆ getAllPatients()

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

Gets the patients.

Returns
List of all the patients

◆ getAppointmentsByDoctor()

List< Appointment > com.hospital.portal.controller.DocAppointmentController.getAppointmentsByDoctor ( @PathVariable String  dni)
inline

Gets the appointments of a specific doctor.

Parameters
DNIof the doctor
Returns
List of all the appointments of the doctor specified

◆ getAppointmentsByDoctorAndDateRange()

List< Appointment > com.hospital.portal.controller.DocAppointmentController.getAppointmentsByDoctorAndDateRange ( @PathVariable String  dni,
@RequestParam("startDate") LocalDate  startDate,
@RequestParam("endDate") LocalDate  endDate 
)
inline

Filters the information of a doctors appointment by date.

Parameters
DNIof the doctor
Fromwhat date is wanted to retrieve appointments
Towhat date is wanted to retrieve appointments
Returns
List of appointments between the dates specified

◆ updateAppointment()

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

Updates a specific appointment.

Parameters
Idof the appointment to be edited
Appointmentupdated
Returns
The appointment updated

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