Documentation
¶
Index ¶
- func Query(query string, variables map[string]interface{}, respData interface{}) error
- type Admin
- type AdminInput
- type AdminOutput
- type Doctor
- type DoctorInput
- type DoctorOutput
- type Health
- type HealthInput
- type HealthOutput
- type Info
- type InfoInput
- type InfoOutput
- type MedicalInfo
- type Patient
- type PatientInput
- type PatientOutput
- type Rdv
- type RdvInput
- type RdvOutput
- type Session
- type SessionInput
- type SessionOutput
- type UpdateDoctorAppointment
- type UpdateDoctorAppointmentInput
- type UpdateDoctorAppointmentOutput
- type UpdatePatientAppointment
- type UpdatePatientAppointmentInput
- type UpdatePatientAppointmentOutput
- type UpdatePatientOnboarding
- type UpdatePatientOnboardingInput
- type UpdatePatientOnboardingOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Admin ¶
type Admin struct { Id string `json:"id"` Password string `json:"password"` Name string `json:"name"` LastName string `json:"last_name"` Email string `json:"email"` }
func CreateAdmin ¶
func CreateAdmin(newAdmin AdminInput) (Admin, error)
func GetAdminByEmail ¶
type AdminInput ¶
type AdminOutput ¶
type Doctor ¶
type Doctor struct { Id string `json:"id"` Password string `json:"password"` Email string `json:"email"` }
func CreateDoctor ¶
func CreateDoctor(newDoctor DoctorInput) (Doctor, error)
func GetDoctorByEmail ¶
func GetDoctorById ¶
type DoctorInput ¶
type DoctorOutput ¶
type Health ¶ added in v1.1.0
type Health struct { Id string `json:"id"` PatientsAllergies *[]string `json:"patients_allergies,omitempty"` PatientsIllness *[]string `json:"patients_illness,omitempty"` PatientsTreatments *[]string `json:"patients_treatments,omitempty"` PatientsPrimaryDoctor string `json:"patients_primary_doctor,omitempty"` }
func CreateHealth ¶ added in v1.1.0
func CreateHealth(newHealth HealthInput) (Health, error)
func GetHealthById ¶ added in v1.1.0
func UpdateMedicalHealth ¶ added in v1.1.0
func UpdateMedicalHealth(id_health string, newHealth HealthInput) (Health, error)
type HealthInput ¶ added in v1.1.0
type HealthOutput ¶ added in v1.1.0
type HealthOutput struct { Id string `json:"id"` PatientsAllergies *[]string `json:"patients_allergies,omitempty"` PatientsIllness *[]string `json:"patients_illness,omitempty"` PatientsTreatments *[]string `json:"patients_treatments,omitempty"` PatientsPrimaryDoctor *string `json:"patients_primary_doctor,omitempty"` }
type Info ¶ added in v1.1.0
type Info struct { Id string `json:"id"` Name string `json:"name"` Surname string `json:"surname"` BirthDate string `json:"birthdate"` Sex string `json:"sex"` Weight int `json:"weight"` Height int `json:"height"` }
func CreateInfo ¶ added in v1.1.0
func GetInfoById ¶ added in v1.1.0
type InfoOutput ¶ added in v1.1.0
type MedicalInfo ¶ added in v1.1.0
type MedicalInfo struct { Info InfoInput `json:"onboarding_info"` Health HealthInput `json:"onboarding_health"` }
type Patient ¶
type Patient struct { Id string `json:"id"` Password string `json:"password"` Email string `json:"email"` }
func CreatePatient ¶
func CreatePatient(newPatient PatientInput) (Patient, error)
func GetPatientByEmail ¶
func GetPatientById ¶
type PatientInput ¶
type PatientOutput ¶
type Rdv ¶ added in v1.1.0
type Rdv struct { Id string `json:"id"` DoctorID string `json:"doctor_id"` IdPatient string `json:"id_patient"` StartDate int `json:"start_date"` EndDate int `json:"end_date"` }
func GetRdvById ¶ added in v1.1.0
func GetRdvDoctorById ¶ added in v1.1.0
type Session ¶ added in v1.0.0
type Session struct { Id string `json:"id"` Symptoms []string `json:"symptoms"` Age int `json:"age"` Height int `json:"height"` Weight int `json:"weight"` Sex string `json:"sex"` LastQuestion string `json:"last_question"` }
func CreateSession ¶ added in v1.0.0
func CreateSession(newSession SessionInput) (Session, error)
func GetSessionById ¶ added in v1.0.0
func UpdateSession ¶ added in v1.0.0
type SessionInput ¶ added in v1.0.0
type SessionOutput ¶ added in v1.0.0
type UpdateDoctorAppointment ¶ added in v1.1.0
type UpdateDoctorAppointmentInput ¶ added in v1.1.0
type UpdateDoctorAppointmentOutput ¶ added in v1.1.0
type UpdatePatientAppointment ¶ added in v1.1.0
type UpdatePatientAppointment struct { Id string `json:"id"` RendezVousIDs []string `json:"rendez_vous_ids"` }
func GetPatientAppointmentById ¶ added in v1.1.0
func GetPatientAppointmentById(id string) (UpdatePatientAppointment, error)
func UpdatePatient ¶ added in v1.1.0
func UpdatePatient(updatePatient UpdatePatientAppointmentInput) (UpdatePatientAppointment, error)
============================================================================================== // Patient
type UpdatePatientAppointmentInput ¶ added in v1.1.0
type UpdatePatientAppointmentOutput ¶ added in v1.1.0
type UpdatePatientOnboarding ¶ added in v1.1.0
type UpdatePatientOnboarding struct { Id string `json:"id"` OnboardingInfoID string `json:"onboarding_info_id"` OnboardingHealthID string `json:"onboarding_health_id"` }
func AddOnboardingHealthID ¶ added in v1.1.0
func AddOnboardingHealthID(updatePatient UpdatePatientOnboardingInput) (UpdatePatientOnboarding, error)
func AddOnboardingInfoID ¶ added in v1.1.0
func AddOnboardingInfoID(updatePatient UpdatePatientOnboardingInput) (UpdatePatientOnboarding, error)
func GetUpdatePatientOnboardingById ¶ added in v1.1.0
func GetUpdatePatientOnboardingById(id string) (UpdatePatientOnboarding, error)
type UpdatePatientOnboardingInput ¶ added in v1.1.0
type UpdatePatientOnboardingOutput ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.