medicament

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMedicamentInput

type CreateMedicamentInput struct {
	DCI             string   `json:"dci"`
	Name            string   `json:"name"`
	TargetDiseases  []string `json:"target_diseases"`
	TreatedSymptoms []string `json:"treated_symptoms"`
	SideEffects     []string `json:"side_effects"`
	Dosage          float64  `json:"dosage"`
	DosageUnit      string   `json:"dosage_unit"`
	Container       string   `json:"container"`
	DosageForm      string   `json:"dosage_form"`
}

type CreateMedicamentResponse

type CreateMedicamentResponse struct {
	Medicament model.Medicine
	Code       int
	Err        error
}

type GetMedicamentByIdResponse

type GetMedicamentByIdResponse struct {
	Medicine model.Medicine
	Code     int
	Err      error
}

func GetMedicamentById

func GetMedicamentById(id string) GetMedicamentByIdResponse

type GetMedicamentsResponse

type GetMedicamentsResponse struct {
	Medicines []model.Medicine
	Code      int
	Err       error
}

func GetMedicaments

func GetMedicaments(page int, size int) GetMedicamentsResponse

Jump to

Keyboard shortcuts

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