Class SavePatientUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.patient.SavePatientUseCase
This class is used to execute the save method from patient repository
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SavePatientUseCase
public SavePatientUseCase()
-
-
Method Details
-
execute
Executes the save method from Patient repository- Parameters:
patient- The Patient to be saved in the repository- Returns:
- The saved patient if successful, or null if there is an error
-