Class ConsultationServiceImpl
java.lang.Object
com.mirna.hospitalmanagementapi.application.services.ConsultationServiceImpl
- All Implemented Interfaces:
ConsultationService
This class is an implementation of the ConsultationService interface.
This class provides methods to perform operations on consultations
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsultation(ConsultationDTO consultationDTO) Adds a new consultation to the repository.
-
Constructor Details
-
ConsultationServiceImpl
public ConsultationServiceImpl()
-
-
Method Details
-
addConsultation
public Consultation addConsultation(ConsultationDTO consultationDTO) throws ConsultationValidationException Adds a new consultation to the repository.- Specified by:
addConsultationin interfaceConsultationService- Parameters:
consultationDTO- A data transfer object representing a consultation to add.- Returns:
- The saved consultation if successful, or throws an exception if there is an error.
- Throws:
ConsultationValidationException- if there is a validation error
-