medicament

package
v1.15.15 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 {
	Name            string   `json:"name"`
	Unit            string   `json:"unit"`
	TargetDiseases  []string `json:"target_diseases"`
	TreatedSymptoms []string `json:"treated_symptoms"`
	SideEffects     []string `json:"side_effects"`
}

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() GetMedicamentsResponse

Jump to

Keyboard shortcuts

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