Class FindConsultationByDoctorAndDateUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.FindConsultationByDoctorAndDateUseCase
This class is used to execute the findConsultationByDoctorAndDate method from consultation repository
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Long doctorId, LocalDateTime consultationDate) Executes the findConsultationByDoctorAndDate method from Consultation repository
-
Constructor Details
-
FindConsultationByDoctorAndDateUseCase
public FindConsultationByDoctorAndDateUseCase()
-
-
Method Details
-
execute
Executes the findConsultationByDoctorAndDate method from Consultation repository- Parameters:
doctorId- The doctor's id from the consultationconsultationDate- The date of the consultation- Returns:
- The corresponding consultation if successful, or null if it is non-existent
-