medical_folder

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 CreateMedicalAntecedent

type CreateMedicalAntecedent struct {
	Name          string           `json:"name"`
	Medicines     []CreateMedicine `json:"medicines"`
	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"`
	MedicalAntecedents []CreateMedicalAntecedent `json:"medical_antecedents"`
	OnboardingStatus   string                    `json:"onboarding_status"`
}

type CreateMedicalInfoResponse

type CreateMedicalInfoResponse struct {
	MedicalInfo model.MedicalInfo
	// MedicalAntecedents []*model.MedicalAntecedents
	// Medicines          model.Medicines
	Patient model.Patient
	Code    int
	Err     error
}

func CreateMedicalInfo

func CreateMedicalInfo(input CreateMedicalInfoInput, patientID string) CreateMedicalInfoResponse

type CreateMedicine

type CreateMedicine struct {
	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 GetMedicalInfoByIdResponse

type GetMedicalInfoByIdResponse struct {
	MedicalInfo model.MedicalInfo
	Code        int
	Err         error
}

func GetMedicalInfosById

func GetMedicalInfosById(id string) GetMedicalInfoByIdResponse

type UpdateMedicalFolderResponse

type UpdateMedicalFolderResponse struct {
	MedicalInfo model.MedicalInfo
	Code        int
	Err         error
}

func UpdateMedicalFolder

func UpdateMedicalFolder(newMedicalInfo CreateMedicalInfoInput, medicalInfoID string) UpdateMedicalFolderResponse

Jump to

Keyboard shortcuts

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