|
| 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.
|
|
◆ DocAppointmentController()
com.hospital.portal.controller.DocAppointmentController.DocAppointmentController |
( |
DocAppointmentService |
docAppointmentService | ) |
|
|
inline |
Constructor of the appointments for the doctors.
◆ createAppointment()
Appointment com.hospital.portal.controller.DocAppointmentController.createAppointment |
( |
@PathVariable String |
dni, |
|
|
@RequestBody Appointment |
appointment |
|
) |
| |
|
inline |
Creates an appointment for a specific doctor.
- Parameters
-
DNI | of the doctor |
New | appointment created |
- Returns
- The new appointment created
◆ deleteAppointment()
void com.hospital.portal.controller.DocAppointmentController.deleteAppointment |
( |
@PathVariable String |
appointmentId | ) |
|
|
inline |
Deletes a specific appointment.
- Parameters
-
Id | of 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
-
- 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
-
DNI | of the doctor |
From | what date is wanted to retrieve appointments |
To | what 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
-
Id | of the appointment to be edited |
Appointment | updated |
- Returns
- The appointment updated
The documentation for this class was generated from the following file: