patients

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	mock.Mock
}

func (*MockRepository) GetByID

func (m *MockRepository) GetByID(ID uuid.UUID) (*Patient, error)

func (*MockRepository) GetByName

func (m *MockRepository) GetByName(name string) (*Patient, error)

func (*MockRepository) Update

func (m *MockRepository) Update(patient Patient) error

type Patient

type Patient struct {
	ID          uuid.UUID
	LegalID     string
	Name        string
	Address     string
	Phone       string
	Email       string
	Diagnostics []*diagnoses.Diagnosis
}

type Repository

type Repository interface {
	GetByName(name string) (*Patient, error)
	GetByID(ID uuid.UUID) (*Patient, error)
	Update(patient Patient) error
}

Jump to

Keyboard shortcuts

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