medical_folder

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 AnteDiseaseWithTreatments added in v1.5.0

type AnteDiseaseWithTreatments struct {
	AnteDisease model.AnteDisease
	Treatments  []model.Treatment
}

type CreateMedicalAntecedentInput added in v1.4.8

type CreateMedicalAntecedentInput struct {
	Name          string                `json:"name"`
	Medicines     []CreateMedicineInput `json:"treatments"`
	StillRelevant bool                  `json:"still_relevant"`
}

type CreateMedicalInfoInput

type CreateMedicalInfoInput struct {
	Name               string                         `json:"name"`
	Firstname          string                         `json:"firstname"`
	Birthdate          int                            `json:"birthdate"`
	Sex                string                         `json:"sex"`
	Weight             int                            `json:"weight"`
	Height             int                            `json:"height"`
	PrimaryDoctorID    string                         `json:"primary_doctor_id,omitempty"`
	MedicalAntecedents []CreateMedicalAntecedentInput `json:"medical_antecedents"`
}

type CreateMedicalInfoResponse

type CreateMedicalInfoResponse struct {
	MedicalInfo                model.MedicalInfo
	AnteDiseasesWithTreatments []AnteDiseaseWithTreatments
	Code                       int
	Err                        error
}

func CreateMedicalInfo

func CreateMedicalInfo(input CreateMedicalInfoInput, patientID string) CreateMedicalInfoResponse

type CreateMedicineInput added in v1.4.8

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

type DeleteMedicalInfoResponse

type DeleteMedicalInfoResponse struct {
	Deleted        bool
	UpdatedPatient model.Patient
	Code           int
	Err            error
}

func DeleteMedicalInfo

func DeleteMedicalInfo(medicalId string, patientId string) DeleteMedicalInfoResponse

type MedicalInfoResponse added in v1.5.0

type MedicalInfoResponse struct {
	MedicalInfo                model.MedicalInfo
	AnteDiseasesWithTreatments []AnteDiseaseWithTreatments
	Code                       int
	Err                        error
}

func GetMedicalInfo added in v1.5.0

func GetMedicalInfo(patientID string) MedicalInfoResponse

type UpdateMedicalAntecedentInput added in v1.5.0

type UpdateMedicalAntecedentInput struct {
	ID            string                `json:"antedisease_id"`
	Name          string                `json:"name"`
	Medicines     []UpdateMedicineInput `json:"treatments"`
	StillRelevant bool                  `json:"still_relevant"`
}

type UpdateMedicalFolderResponse

type UpdateMedicalFolderResponse struct {
	MedicalInfo                model.MedicalInfo
	AnteDiseasesWithTreatments []AnteDiseaseWithTreatments
	Code                       int
	Err                        error
}

func UpdateMedicalFolder

func UpdateMedicalFolder(input UpdateMedicalInfoInput, medicalInfoID string) UpdateMedicalFolderResponse

func UpdateMedicalFolderFromDoctor added in v1.3.9

func UpdateMedicalFolderFromDoctor(input UpdateMedicalInfoInput, PatientID string) UpdateMedicalFolderResponse

type UpdateMedicalInfoInput added in v1.5.0

type UpdateMedicalInfoInput struct {
	Name               string                         `json:"name"`
	Firstname          string                         `json:"firstname"`
	Birthdate          int                            `json:"birthdate"`
	Sex                string                         `json:"sex"`
	Weight             int                            `json:"weight"`
	Height             int                            `json:"height"`
	PrimaryDoctorID    string                         `json:"primary_doctor_id,omitempty"`
	MedicalAntecedents []UpdateMedicalAntecedentInput `json:"medical_antecedents"`
}

type UpdateMedicineInput added in v1.5.0

type UpdateMedicineInput struct {
	ID         string   `json:"treatment_id"`
	MedicineID string   `json:"medicine_id"`
	Period     []string `json:"period"`
	Day        []string `json:"day"`
	Quantity   int      `json:"quantity"`
}

Jump to

Keyboard shortcuts

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