Class FindPatientsUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.patient.FindPatientsUseCase
This class is used to execute the findPatientsByActiveTrue method from patient repository
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
-
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
-