|
| PatientAppointmentController (PatientAppointmentService patientAppointmentService) |
| Constructor of the PatientsAppointments.
|
|
List< Patient > | getAllPatients () |
| Gets all the patients.
|
|
List< Appointment > | getAppointmentsByPatientDNI (@PathVariable String patientDNI) |
| Gets all the appointments of a specific patient.
|
|
List< Appointment > | getAppointmentsByDate (@PathVariable String patientDNI, @RequestParam LocalDate date) |
| Filters the information of a patients appointment by date.
|
|
List< Appointment > | getAppointmentByPatientDniAndDoctorSpecialtyName (@PathVariable String patientDNI, @RequestParam String specialty_name) |
| Filters the information of a patients appointment by speciality od the doctor.
|
|
Appointment | addAppointmentPatient (@PathVariable String patientDNI, @RequestBody Appointment appointment) |
| Creates an appointment for a specific patient.
|
|
Appointment | modifyAppointment (@PathVariable String appointmentId, @RequestBody Appointment modifiedAppointment) |
| Updates a specific appointment.
|
|
void | deleteAppointmentPatient (@PathVariable String appointmentId) |
| Deletes a specific appointment.
|
|
◆ PatientAppointmentController()
com.hospital.portal.controller.PatientAppointmentController.PatientAppointmentController |
( |
PatientAppointmentService |
patientAppointmentService | ) |
|
|
inline |
Constructor of the PatientsAppointments.
◆ addAppointmentPatient()
Appointment com.hospital.portal.controller.PatientAppointmentController.addAppointmentPatient |
( |
@PathVariable String |
patientDNI, |
|
|
@RequestBody Appointment |
appointment |
|
) |
| |
|
inline |
Creates an appointment for a specific patient.
- Parameters
-
DNI | of the patient |
New | appointment created |
- Returns
- The new appointment created
◆ deleteAppointmentPatient()
void com.hospital.portal.controller.PatientAppointmentController.deleteAppointmentPatient |
( |
@PathVariable String |
appointmentId | ) |
|
|
inline |
Deletes a specific appointment.
- Parameters
-
Id | of the appointment to be deleted |
◆ getAllPatients()
List< Patient > com.hospital.portal.controller.PatientAppointmentController.getAllPatients |
( |
| ) |
|
|
inline |
Gets all the patients.
- Returns
- List of all the patients
◆ getAppointmentByPatientDniAndDoctorSpecialtyName()
List< Appointment > com.hospital.portal.controller.PatientAppointmentController.getAppointmentByPatientDniAndDoctorSpecialtyName |
( |
@PathVariable String |
patientDNI, |
|
|
@RequestParam String |
specialty_name |
|
) |
| |
|
inline |
Filters the information of a patients appointment by speciality od the doctor.
- Parameters
-
DNI | of the patient |
Speaciality | of the doctor |
- Returns
- List of appointments that have doctors of said speciality
◆ getAppointmentsByDate()
List< Appointment > com.hospital.portal.controller.PatientAppointmentController.getAppointmentsByDate |
( |
@PathVariable String |
patientDNI, |
|
|
@RequestParam LocalDate |
date |
|
) |
| |
|
inline |
Filters the information of a patients appointment by date.
- Parameters
-
DNI | of the patient |
From | what date is wanted to retrieve appointments |
- Returns
- List of appointments starting form the date specified
◆ getAppointmentsByPatientDNI()
List< Appointment > com.hospital.portal.controller.PatientAppointmentController.getAppointmentsByPatientDNI |
( |
@PathVariable String |
patientDNI | ) |
|
|
inline |
Gets all the appointments of a specific patient.
- Parameters
-
- Returns
- List of all the appointments of the specified patient
◆ modifyAppointment()
Appointment com.hospital.portal.controller.PatientAppointmentController.modifyAppointment |
( |
@PathVariable String |
appointmentId, |
|
|
@RequestBody Appointment |
modifiedAppointment |
|
) |
| |
|
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: