Interface DoctorService

All Known Implementing Classes:
DoctorServiceImpl

public interface DoctorService
Doctor service interface for managing doctor information.
Version:
1.0
Author:
Mirna Gama
See Also:
  • Method Details

    • addDoctor

      Doctor addDoctor(DoctorDTO doctorDTO)
      Adds a new doctor to the repository.
      Parameters:
      doctorDTO - A data transfer object representing a doctor to add.
      Returns:
      The saved doctor if successful, or null if there is an error.
    • findDoctors

      org.springframework.data.domain.Page<DoctorPublicDataDTO> findDoctors(org.springframework.data.domain.Pageable pageable)
      Retrieves a paginated sublist of doctors.
      Parameters:
      pageable - Pagination information, such as size and page number
      Returns:
      A paginated sublist containing data transfer objects with doctors public information in the repository
    • updateDoctor

      Doctor updateDoctor(DoctorUpdatedDataDTO doctorUpdatedDataDTO)
      Updates an existing doctor record
      Parameters:
      doctorUpdatedDataDTO - Data transfer object containing the doctor updated data along with their corresponding id
      Returns:
      The updated doctor if successful, or null if there is an error.