ordonnance

package
v2.4.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrescriptionPDF

func GeneratePrescriptionPDF(prescription model.Ordonnance, doctor model.Doctor) (string, error)

func UploadOrdonnance

func UploadOrdonnance(file io.Reader, filename string) (string, error)

Types

type CreateOrdonnaceInput

type CreateOrdonnaceInput struct {
	PatientID string          `json:"patient_id"`
	Medicines []MedicineInput `json:"medicines"`
}

type CreateOrdonnaceResponse

type CreateOrdonnaceResponse struct {
	Ordonnance model.Ordonnance
	Url        string
	Code       int
	Err        error
}

func CreateOrdonnance

func CreateOrdonnance(input CreateOrdonnaceInput, ownerID string) CreateOrdonnaceResponse

type GetOrdonnanceByIdResponse

type GetOrdonnanceByIdResponse struct {
	Ordonnance model.Ordonnance
	Url        string
	Code       int
	Err        error
}

func GetOrdonnancebyID

func GetOrdonnancebyID(id string) GetOrdonnanceByIdResponse

type GetOrdonnancesResponse

type GetOrdonnancesResponse struct {
	Ordonnance []OrdonnanceWithURL
	Code       int
	Err        error
}

func GetOrdonnancesDoctor

func GetOrdonnancesDoctor(ownerID string) GetOrdonnancesResponse

type MedicineInput

type MedicineInput struct {
	MedicineID string        `json:"medicine_id"`
	Qsp        int           `json:"qsp"`
	QspUnit    string        `json:"qsp_unit"`
	Comment    string        `json:"comment"`
	Periods    []PeriodInput `json:"periods"`
}

type OrdonnanceWithURL

type OrdonnanceWithURL struct {
	model.Ordonnance
	URL string
}

type PeriodInput

type PeriodInput struct {
	Quantity       int    `json:"quantity"`
	Frequency      int    `json:"frequency"`
	FrequencyRatio int    `json:"frequency_ratio"`
	FrequencyUnit  string `json:"frequency_unit"`
	PeriodLength   int    `json:"period_length"`
	PeriodUnit     string `json:"period_unit"`
}

Jump to

Keyboard shortcuts

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