Class FindConsultationByPatientAndDateUseCase

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

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

    • FindConsultationByPatientAndDateUseCase

      public FindConsultationByPatientAndDateUseCase()
  • Method Details

    • execute

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