Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.service.PatientAppointmentService Class Reference

Public Member Functions

 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.
 

Constructor & Destructor Documentation

◆ PatientAppointmentService()

com.hospital.portal.service.PatientAppointmentService.PatientAppointmentService ( AppointmentRepository  appointmentRepository,
PatientRepository  patientRepository 
)
inline

Constructor of the PatientAppointmentService.

Parameters
AppointmentRepository
PatientRepository

Member Function Documentation

◆ addAppointmentPatient()

Appointment com.hospital.portal.service.PatientAppointmentService.addAppointmentPatient ( String  pateintDNI,
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.service.PatientAppointmentService.deleteAppointmentPatient ( String  id)
inline

Delete an appointment as doctor.

Parameters
Idof 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
DNIof the patient
Nameof 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
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.service.PatientAppointmentService.getAppointmentsByPatientDNI ( String  patientDNI)
inline

Looks for all the appointments the patient logged in has.

Parameters
DNIof the patient
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
Idof the appointment to be updated
Anappointment with the updated data
Returns
The updated appointment. Saves the changed appointment

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