Interface PatientService

All Known Implementing Classes:
PatientServiceImpl

public interface PatientService
Patient service interface for managing patient information.
Version:
1.0
Author:
Mirna Gama
See Also:
  • Method Details

    • addPatient

      Patient addPatient(PatientDTO patientDTO)
      Adds a new patient to the repository.
      Parameters:
      patientDTO - A data transfer object representing a patient to add.
      Returns:
      The saved patient if successful, or null if there is an error.
    • findPatientById

      Patient findPatientById(Long id)
      Finds a stored patient by id.
      Parameters:
      id - A long representing the patient's unique identifier
      Returns:
      The corresponding patient if successful, or null if it is non-existent.