|
| PatientAppointmentService (AppointmentRepository appointmentRepository, PatientRepository patientRepository) |
| Constructor of the PatientAppointmentService.
|
|
List< Patient > | getAllPatients () |
| Looks for all the patients as a Patient.
|
|
List< Appointment > | getAppointmentsByPatientDNI (String patientDNI) |
| Looks for all the appointments the patient logged in has.
|
|
List< Appointment > | getAppointmentByPatientDniAndDoctorSpecialtyName (String patientDni, String specialty_name) |
| Looks for all the appointments the patient logged in has and filters them by a specified doctor speciality.
|
|
List< Appointment > | getAppointmentsByDate (String patientDNI, LocalDate dateTime) |
| Filters the information of a patients appointment by date.
|
|
Appointment | addAppointmentPatient (String pateintDNI, Appointment appointment) |
| Creates an appointment for a specific patient.
|
|
Appointment | modifyAppointment (String id, Appointment modifiedAppointment) |
| Updates the appointment with new data as patient.
|
|
void | deleteAppointmentPatient (String id) |
| Delete an appointment as doctor.
|
|
◆ PatientAppointmentService()
com.hospital.portal.service.PatientAppointmentService.PatientAppointmentService |
( |
AppointmentRepository |
appointmentRepository, |
|
|
PatientRepository |
patientRepository |
|
) |
| |
|
inline |
Constructor of the PatientAppointmentService.
- Parameters
-
AppointmentRepository | |
PatientRepository | |
◆ addAppointmentPatient()
Appointment com.hospital.portal.service.PatientAppointmentService.addAppointmentPatient |
( |
String |
pateintDNI, |
|
|
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.service.PatientAppointmentService.deleteAppointmentPatient |
( |
String |
id | ) |
|
|
inline |
Delete an appointment as doctor.
- Parameters
-
Id | of the appointment to be deleted |
◆ getAllPatients()
List< Patient > com.hospital.portal.service.PatientAppointmentService.getAllPatients |
( |
| ) |
|
|
inline |
Looks for all the patients as a Patient.
- Returns
- List of all the patients
◆ getAppointmentByPatientDniAndDoctorSpecialtyName()
List< Appointment > com.hospital.portal.service.PatientAppointmentService.getAppointmentByPatientDniAndDoctorSpecialtyName |
( |
String |
patientDni, |
|
|
String |
specialty_name |
|
) |
| |
|
inline |
Looks for all the appointments the patient logged in has and filters them by a specified doctor speciality.
- Parameters
-
DNI | of the patient |
Name | of the speciality
|
- Returns
- List of all the appointments that match the requirements
◆ getAppointmentsByDate()
List< Appointment > com.hospital.portal.service.PatientAppointmentService.getAppointmentsByDate |
( |
String |
patientDNI, |
|
|
LocalDate |
dateTime |
|
) |
| |
|
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.service.PatientAppointmentService.getAppointmentsByPatientDNI |
( |
String |
patientDNI | ) |
|
|
inline |
Looks for all the appointments the patient logged in has.
- Parameters
-
- Returns
- List of all the appointments
◆ modifyAppointment()
Appointment com.hospital.portal.service.PatientAppointmentService.modifyAppointment |
( |
String |
id, |
|
|
Appointment |
modifiedAppointment |
|
) |
| |
|
inline |
Updates the appointment with new data as patient.
- Parameters
-
Id | of the appointment to be updated |
An | appointment with the updated data |
- Returns
- The updated appointment. Saves the changed appointment
The documentation for this class was generated from the following file: