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