medication

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMedicationRequest

type CreateMedicationRequest struct {
	Name      string                   `json:"name"`
	TypeID    uint64                   `json:"type_id"`
	Avatar    string                   `json:"avatar"`
	Dosage    string                   `json:"dosage"`
	Quantity  int                      `json:"quantity"`
	Times     []string                 `json:"times"`
	Schedules []*CreateScheduleRequest `json:"schedules"`
}

type CreateMedicationResponse

type CreateMedicationResponse struct {
	ID        uint64                    `json:"id"`
	Name      string                    `json:"name"`
	Type      string                    `json:"type"`
	Patient   *patient.Patient          `json:"patient"`
	Avatar    string                    `json:"avatar"`
	Schedules []*CreateScheduleResponse `json:"schedules"`
	Status    string                    `json:"status"`
	Dosage    string                    `json:"dosage"`
	Quantity  int                       `json:"quantity"`
	Times     []string                  `json:"times"`
}

func (*CreateMedicationResponse) ToDTO

type CreateScheduleRequest

type CreateScheduleRequest struct {
	DailyOfWeek *int `json:"daily_of_week"`
	Enabled     bool `json:"enabled"`
}

type CreateScheduleResponse

type CreateScheduleResponse struct {
	ID          uint64 `json:"id"`
	DailyOfWeek *int   `json:"daily_of_week"`
	LiteralDay  string `json:"literal_day"`
	Enabled     bool   `json:"enabled"`
}

type GetMedicationResponse

type GetMedicationResponse struct {
	ID        uint64                    `json:"id"`
	Name      string                    `json:"name"`
	Type      string                    `json:"type"`
	Avatar    string                    `json:"avatar"`
	Dosage    string                    `json:"dosage"`
	Quantity  int                       `json:"quantity"`
	Times     []string                  `json:"times"`
	Schedules []*CreateScheduleResponse `json:"schedules"`
	Status    string                    `json:"status"`
}

func (*GetMedicationResponse) ToDTO

type UpdateMedicationRequest

type UpdateMedicationRequest struct {
	Name      string                   `json:"name"`
	TypeID    uint64                   `json:"type_id"`
	Avatar    string                   `json:"avatar"`
	Schedules []*UpdateScheduleRequest `json:"schedules"`
	Times     *[]string                `json:"times"`
	Dosage    string                   `json:"dosage"`
	Quantity  int                      `json:"quantity"`
}

type UpdateMedicationResponse

type UpdateMedicationResponse struct {
	ID        uint64                    `json:"id"`
	Name      string                    `json:"name"`
	Type      string                    `json:"type"`
	Patient   *patient.Patient          `json:"patient"`
	Avatar    string                    `json:"avatar"`
	Schedules []*UpdateScheduleResponse `json:"schedules"`
	Status    string                    `json:"status"`
	Times     []string                  `json:"times"`
	Dosage    string                    `json:"dosage"`
	Quantity  int                       `json:"quantity"`
}

func (*UpdateMedicationResponse) ToDTO

type UpdateScheduleRequest

type UpdateScheduleRequest struct {
	ID      uint64 `json:"id"`
	Enabled *bool  `json:"enabled"`
}

type UpdateScheduleResponse

type UpdateScheduleResponse struct {
	ID          uint64 `json:"id"`
	DailyOfWeek *int   `json:"daily_of_week"`
	LiteralDay  string `json:"literal_day"`
	Enabled     bool   `json:"enabled"`
}

Jump to

Keyboard shortcuts

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