medical_folder

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPeriodsAndDays

func ConvertPeriodsAndDays(periods []string, days []string) ([]model.Period, []model.Day)

Types

type AnteDiseaseWithTreatments

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

type CreateMedicalAntecedentInput

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"`
	FamilyMembersMedInfoId []string                       `json:"family_members_med_info_id"`
}

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

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

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

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

func GetMedicalInfo

func GetMedicalInfo(patientID string) MedicalInfoResponse

type UpdateMedicalAntecedentInput

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

func UpdateMedicalFolderFromDoctor(input UpdateMedicalInfoInput, PatientID string) UpdateMedicalFolderResponse

type UpdateMedicalInfoInput

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"`
	FamilyMembersMedInfoId []string                       `json:"family_members_med_info_id"`
}

type UpdateMedicineInput

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"`
	StartDate  int      `json:"start_date"`
	EndDate    int      `json:"end_date"`
}

Jump to

Keyboard shortcuts

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