java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.patient.FindPatientsUseCase

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

    • FindPatientsUseCase

      public FindPatientsUseCase()
  • Method Details

    • execute

      public org.springframework.data.domain.Page<Patient> execute(org.springframework.data.domain.Pageable pageable)
      Executes the findDoctorsByActiveTrue method from Patient repository
      Parameters:
      pageable - Pagination information, such as size and page number
      Returns:
      A paginated list with active stored patients if successful, or null if there is an error