Interface DoctorService

All Known Implementing Classes:
DoctorServiceImpl

public interface DoctorService
Service interface to access from data and model, also create entity for appointment
Author:
Vinh Truong Canh Thanh
  • Method Details

    • saveDoctor

      void saveDoctor(Doctor doctor)
    • getAllDoctors

      List<Doctor> getAllDoctors()
    • getDoctorById

      Optional<Doctor> getDoctorById(long id)
    • updateDoctor

      void updateDoctor(long id, Doctor doctor)
    • deleteDoctor

      void deleteDoctor(long id)
    • calculateDistanceToUser

      void calculateDistanceToUser(String address)
    • findDoctorWithCriteria

      List<Doctor> findDoctorWithCriteria(String issues, String address, int distance_to_user)
    • showAvailableAppointments

      List<Appointment> showAvailableAppointments(Long doctor_id)