Documentation ¶
Index ¶
- func GeneratePrescriptionPDF(prescription model.Ordonnance, doctor model.Doctor) (string, error)
- func UploadOrdonnance(file io.Reader, filename string) (string, error)
- type CreateOrdonnaceInput
- type CreateOrdonnaceResponse
- type GetOrdonnanceByIdResponse
- type GetOrdonnancesResponse
- type MedicineInput
- type OrdonnanceWithURL
- type PeriodInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrescriptionPDF ¶
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 }
Click to show internal directories.
Click to hide internal directories.