commands

package
v0.0.0-...-884fdb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPatientNotFound = errors.New("patient not found")
	ErrGettingPatient  = errors.New("error getting patient")
	ErrAddingDiagnosis = errors.New("error adding diagnosis")
	ErrUpdatingPatient = errors.New("error updating patient")
)

Functions

This section is empty.

Types

type AddPatientDiagnosis

type AddPatientDiagnosis struct {
	PatientID    uuid.UUID
	Diagnosis    string
	Prescription *string
}

type AddPatientDiagnosisHandler

type AddPatientDiagnosisHandler interface {
	Handle(command AddPatientDiagnosis) error
}

func NewAddPatientDiagnosisHandler

func NewAddPatientDiagnosisHandler(patientRepo patients.Repository, diagnosisRepo diagnoses.Repository) AddPatientDiagnosisHandler

type MockAddPatientDiagnosis

type MockAddPatientDiagnosis struct {
	mock.Mock
}

func (*MockAddPatientDiagnosis) Handle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL