java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.patient.SavePatientUseCase

@Component public class SavePatientUseCase extends Object
This class is used to execute the save method from patient repository
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • SavePatientUseCase

      public SavePatientUseCase()
  • Method Details

    • execute

      public Patient execute(Patient patient)
      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