medical_folder

package
v2.4.16 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 AddMedicalAntecedentResponse added in v2.3.0

type AddMedicalAntecedentResponse struct {
	MedicalInfo        model.MedicalInfo
	MedicalAntecedents []model.MedicalAntecedents
	Code               int
	Err                error
}

func AddMedicalAntecedent added in v2.3.0

func AddMedicalAntecedent(input CreateNewMedicalAntecedentInput, userID string) AddMedicalAntecedentResponse

type CreateAntecedentPeriod added in v2.3.0

type CreateAntecedentPeriod 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"`
}

type CreateAntecedentsMedicines added in v2.3.0

type CreateAntecedentsMedicines struct {
	MedicineID string                    `json:"medicine_id"`
	Comment    *string                   `json:"comment"`
	Period     []*CreateAntecedentPeriod `json:"period"`
}

type CreateNewMedicalAntecedentInput added in v2.3.0

type CreateNewMedicalAntecedentInput struct {
	Name       string             `json:"name"`
	Symptoms   []string           `json:"symptoms"`
	Treatments []CreateTreatInput `json:"treatments"`
}

type CreateNewMedicalInfoInput added in v2.3.0

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

type CreateNewMedicalInfoResponse added in v2.3.0

type CreateNewMedicalInfoResponse struct {
	MedicalInfo        model.MedicalInfo
	MedicalAntecedents []model.MedicalAntecedents
	Code               int
	Err                error
}

func NewMedicalFolder added in v2.3.0

func NewMedicalFolder(input CreateNewMedicalInfoInput, patientID string) CreateNewMedicalInfoResponse

type CreateTreatInput added in v2.3.0

type CreateTreatInput struct {
	StartDate int                          `json:"start_date"`
	EndDate   int                          `json:"end_date"`
	Medicines []CreateAntecedentsMedicines `json:"medicines"`
}

type DeleteMedicalAntecedentResponse added in v2.3.0

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

func DeleteMedicalAntecedent added in v2.3.0

func DeleteMedicalAntecedent(antecedentId string, patientId string) DeleteMedicalAntecedentResponse

type GetMedicalAntecedentResponse added in v2.3.0

type GetMedicalAntecedentResponse struct {
	MedicalAntecedent model.MedicalAntecedents
	Code              int
	Err               error
}

func GetMedicalAntecedentById added in v2.3.3

func GetMedicalAntecedentById(antecdentID string, patientID string) GetMedicalAntecedentResponse

type GetMedicalAntecedentsResponse added in v2.3.0

type GetMedicalAntecedentsResponse struct {
	MedicalAntecedents []model.MedicalAntecedents
	Code               int
	Err                error
}

func GetMedicalAntecedents added in v2.3.3

func GetMedicalAntecedents(patientID string) GetMedicalAntecedentsResponse

type MedicalFolderResponse added in v2.3.0

type MedicalFolderResponse struct {
	MedicalInfo        model.MedicalInfo
	MedicalAntecedents []model.MedicalAntecedents
	Code               int
	Err                error
}

func GetMedicalFolder added in v2.3.0

func GetMedicalFolder(patientID string) MedicalFolderResponse

type NewDeleteMedicalInfoResponse added in v2.3.0

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

func NewDeleteMedicalInfo added in v2.3.0

func NewDeleteMedicalInfo(medicalId string, patientId string) NewDeleteMedicalInfoResponse

type UpdateMedicalAntecedentResponse added in v2.3.0

type UpdateMedicalAntecedentResponse struct {
	UpdatedAntecedent model.MedicalAntecedents
	Code              int
	Err               error
}

func UpdateMedicalAntecedent added in v2.3.0

func UpdateMedicalAntecedent(patientID string, input UpdateMedicalFolderPatientInput, MedicalAntecedentID string) UpdateMedicalAntecedentResponse

type UpdateMedicalFolderPatientInput added in v2.3.2

type UpdateMedicalFolderPatientInput struct {
	MedicalAntecedentInput model.UpdateMedicalAntecedentsInput `json:"medical_antecedent"`
}

type UpdateMedicalFolderPatientResponse added in v2.3.0

type UpdateMedicalFolderPatientResponse struct {
	MedicalFolder model.MedicalInfo
	Code          int
	Err           error
}

func UpdateMedicalFolderPatient added in v2.3.0

func UpdateMedicalFolderPatient(patientID string, input model.UpdateMedicalFolderInput) UpdateMedicalFolderPatientResponse

Jump to

Keyboard shortcuts

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