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

Public Member Functions

 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.
 

Constructor & Destructor Documentation

◆ PatientAppointmentController()

com.hospital.portal.controller.PatientAppointmentController.PatientAppointmentController ( PatientAppointmentService  patientAppointmentService)
inline

Constructor of the PatientsAppointments.

Member Function Documentation

◆ addAppointmentPatient()

Appointment com.hospital.portal.controller.PatientAppointmentController.addAppointmentPatient ( @PathVariable String  patientDNI,
@RequestBody Appointment  appointment 
)
inline

Creates an appointment for a specific patient.

Parameters
DNIof the patient
Newappointment created
Returns
The new appointment created

◆ deleteAppointmentPatient()

void com.hospital.portal.controller.PatientAppointmentController.deleteAppointmentPatient ( @PathVariable String  appointmentId)
inline

Deletes a specific appointment.

Parameters
Idof 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
DNIof the patient
Speacialityof 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
DNIof the patient
Fromwhat 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
DNIof the patient
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
Idof the appointment to be edited
Appointmentupdated
Returns
The appointment updated

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