Class FindConsultationByDoctorAndDateUseCase

java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.FindConsultationByDoctorAndDateUseCase

@Component public class FindConsultationByDoctorAndDateUseCase extends Object
This class is used to execute the findConsultationByDoctorAndDate method from consultation repository
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • FindConsultationByDoctorAndDateUseCase

      public FindConsultationByDoctorAndDateUseCase()
  • Method Details

    • execute

      public Consultation execute(Long doctorId, LocalDateTime consultationDate)
      Executes the findConsultationByDoctorAndDate method from Consultation repository
      Parameters:
      doctorId - The doctor's id from the consultation
      consultationDate - The date of the consultation
      Returns:
      The corresponding consultation if successful, or null if it is non-existent