Documentation ¶
Index ¶
- func ConvertPeriodsAndDays(periods []string, days []string) ([]model.Period, []model.Day)
- type AnteDiseaseWithTreatments
- type CreateMedicalAntecedentInput
- type CreateMedicalInfoInput
- type CreateMedicalInfoResponse
- type CreateMedicineInput
- type DeleteMedicalInfoResponse
- type MedicalInfoResponse
- type UpdateMedicalAntecedentInput
- type UpdateMedicalFolderResponse
- type UpdateMedicalInfoInput
- type UpdateMedicineInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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"` }
Click to show internal directories.
Click to hide internal directories.