Documentation ¶
Index ¶
- func NewDeleteMedicationUseCase(repository medication.Repository, ...) *deleteMedicationUseCase
- func NewGetMedicationTypesUseCase(repository medication.TypeRepository, log log.Provider, apiErr apiErr.Provider) *getMedicationTypesUseCase
- func NewGetMedicationUseCase(repository medication.Repository, log log.Provider, apiErr apiErr.Provider) *getMedicationUseCase
- func NewUpdateMedicationUseCase(repository medication.Repository, typeRepository medication.TypeRepository, ...) *updateMedicationUseCase
- type CreateMedicationUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteMedicationUseCase ¶
func NewDeleteMedicationUseCase( repository medication.Repository, scheduleRepository medication.ScheduleRepository, timeRepository medication.TimeRepository, schedulingRepository scheduling.Repository, log log.Provider, apiErr apiErr.Provider, ) *deleteMedicationUseCase
func NewGetMedicationTypesUseCase ¶
func NewGetMedicationTypesUseCase( repository medication.TypeRepository, log log.Provider, apiErr apiErr.Provider, ) *getMedicationTypesUseCase
func NewGetMedicationUseCase ¶
func NewGetMedicationUseCase( repository medication.Repository, log log.Provider, apiErr apiErr.Provider, ) *getMedicationUseCase
func NewUpdateMedicationUseCase ¶
func NewUpdateMedicationUseCase( repository medication.Repository, typeRepository medication.TypeRepository, schedulingRepository scheduling.Repository, scheduleRepository medication.ScheduleRepository, timeRepository medication.TimeRepository, schedulingService schedulingService.SchedulingService, log log.Provider, apiErr apiErr.Provider, ) *updateMedicationUseCase
Types ¶
type CreateMedicationUseCase ¶
type CreateMedicationUseCase struct {
// contains filtered or unexported fields
}
func NewCreateMedicationUseCase ¶
func NewCreateMedicationUseCase( repository medication.Repository, scheduleRepository medication.ScheduleRepository, typeRepository medication.TypeRepository, patientRepository patient.Repository, schedulingService schedulingService.SchedulingService, log log.Provider, apiErr apiErr.Provider, ) *CreateMedicationUseCase
func (CreateMedicationUseCase) Execute ¶
func (u CreateMedicationUseCase) Execute(ctx context.Context, request *dto.CreateMedicationRequest, patientID *uint64) (*dto.CreateMedicationResponse, *apiErr.Message)
Click to show internal directories.
Click to hide internal directories.