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 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 ¶
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 UpdateTreatmentInput ¶
type UpdateTreatmentInput struct {
Treatments []TreatmentsInput `json:"treatments"`
}
type UpdateTreatmentResponse ¶
func UpdateTreatment ¶
func UpdateTreatment(input UpdateTreatmentInput, patientID string) UpdateTreatmentResponse
Click to show internal directories.
Click to hide internal directories.