treatment

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 CreateNewTreatmentInput

type CreateNewTreatmentInput struct {
	Name          string             `json:"name"`
	DiseaseId     string             `json:"disease_id"`
	Treatments    []CreateTreatInput `json:"treatments"`
	StillRelevant bool               `json:"still_relevant"`
}

type CreateTreatInput

type CreateTreatInput struct {
	MedicineId string   `json:"medicine_id"`
	Period     []string `json:"period"`
	Day        []string `json:"day"`
	Quantity   int      `json:"quantity"`
}

type CreateTreatmentResponse

type CreateTreatmentResponse struct {
	AnteDisease model.AnteDisease
	Treatment   []model.Treatment
	Code        int
	Err         error
}

func CreateTreatment

func CreateTreatment(input CreateNewTreatmentInput, patientID string) CreateTreatmentResponse

type DeleteTreatmentResponse

type DeleteTreatmentResponse struct {
	Deleted bool
	Code    int
	Err     error
}

func DeleteTreatment

func DeleteTreatment(treatmentID string, patientID string) DeleteTreatmentResponse

type GetTreatmentByIdResponse

type GetTreatmentByIdResponse struct {
	Treatment   model.Treatment
	Antedisease model.AnteDisease
	Code        int
	Err         error
}

func GetTreatmentById

func GetTreatmentById(id string, patientID string) GetTreatmentByIdResponse

type GetTreatmentsResponse

type GetTreatmentsResponse struct {
	Antedisease []model.AnteDisease
	Treatments  []model.Treatment
	Code        int
	Err         error
}

func GetTreatments

func GetTreatments(patientID string) GetTreatmentsResponse

type TreatmentsInput added in v1.5.0

type TreatmentsInput struct {
	ID         string   `json:"id"`
	MedicineId string   `json:"medicine_id"`
	Period     []string `json:"period"`
	Day        []string `json:"day"`
	Quantity   int      `json:"quantity"`
}

type UpdateTreatmentInput

type UpdateTreatmentInput struct {
	Treatments []TreatmentsInput `json:"treatments"`
}

type UpdateTreatmentResponse

type UpdateTreatmentResponse struct {
	Treatment []model.Treatment
	Code      int
	Err       error
}

func UpdateTreatment

func UpdateTreatment(input UpdateTreatmentInput, patientID string) UpdateTreatmentResponse

Jump to

Keyboard shortcuts

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