scheduling

package
v0.0.0-...-2741532 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DONE = "DONE"
	TODO = "TODO"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreateScheduling(ctx context.Context, scheduling *Scheduling) (*Scheduling, error)
	FindSchedulingByID(ctx context.Context, ID *uint64) (*Scheduling, error)
	FindSchedulingByPatientAndStatus(ctx context.Context, patientID *uint64, status string) (*Scheduling, error)
	FindAllSchedulingByMedicationID(ctx context.Context, medicationID *uint64) ([]*Scheduling, error)
	FindAllSchedulingByMedicationIDAndStatus(ctx context.Context, medicationID *uint64, status string) ([]*Scheduling, error)
	FindSchedulingByMedicationIDAndDateRange(ctx context.Context, medicationID *uint64, startDate, endDate time.Time) ([]*Scheduling, error)
	UpdateScheduling(ctx context.Context, scheduling *Scheduling) (*Scheduling, error)
	DeleteScheduling(ctx context.Context, ID *uint64) error
}

type Scheduling

type Scheduling struct {
	ID                uint64
	Medication        *medication.Medication
	MedicationID      uint64 `gorm:"foreignKey:MedicationID"`
	Dosage            string
	Quantity          int
	MedicationType    string
	MedicationTime    *time.Time
	MedicationTakenAt *time.Time
	Avatar            string
	Status            string
	CreatedAt         *time.Time
	UpdatedAt         *time.Time
}

Jump to

Keyboard shortcuts

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