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 Summary
Modifier and TypeMethodDescriptionaddPatient(PatientDTO patientDTO) Adds a new patient to the repository.findPatientById(Long id) Finds a stored patient by id.
-
Method Details
-
addPatient
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
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.
-