appointment

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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 BookAppointmentResponse

type BookAppointmentResponse struct {
	Rdv     model.Rdv
	Patient model.Patient
	Code    int
	Err     error
}

func BookAppointment

func BookAppointment(appointmentId string, patientId string, session_id string) BookAppointmentResponse

type CancelRdvResponse

type CancelRdvResponse struct {
	Reason string
	Code   int
	Err    error
}

func CancelRdv

func CancelRdv(id string, reason string) CancelRdvResponse

type CreateRdvResponse

type CreateRdvResponse struct {
	Rdv    model.Rdv
	Doctor model.Doctor
	Code   int
	Err    error
}

func CreateRdv

func CreateRdv(patientId string, doctorId string, startDate int, endDate int, session_id string) CreateRdvResponse

type DeleteRdvResponse

type DeleteRdvResponse struct {
	UpdatedPatient model.Patient
	Code           int
	Err            error
}

func DeleteRdv

func DeleteRdv(rdvId string, patientId string) DeleteRdvResponse

type EditRdvResponse

type EditRdvResponse struct {
	Rdv     model.Rdv
	Patient model.Patient
	Code    int
	Err     error
}

func EditRdv

func EditRdv(newAppointmentId string, appointmentId string, patientId string) EditRdvResponse

func ValidateRdv

func ValidateRdv(appointmentId string, input ReviewInput) EditRdvResponse

type GetAllDoctorAppointmentResponse

type GetAllDoctorAppointmentResponse struct {
	Slots []model.Rdv
	Code  int
	Err   error
}

func GetAllDoctorAppointment

func GetAllDoctorAppointment(doctorId string) GetAllDoctorAppointmentResponse

type GetDoctorAppointmentResponse

type GetDoctorAppointmentResponse struct {
	Appointment model.Rdv
	Code        int
	Err         error
}

func GetDoctorAppointment

func GetDoctorAppointment(appointmentId string, doctorId string) GetDoctorAppointmentResponse

type GetRdvDoctorResponse

type GetRdvDoctorResponse struct {
	Rdv  []model.Rdv
	Code int
	Err  error
}

func GetRdvDoctor

func GetRdvDoctor(doctorId string) GetRdvDoctorResponse

type GetRdvPatientResponse

type GetRdvPatientResponse struct {
	Rdv  model.Rdv
	Code int
	Err  error
}

func GetRdvPatient

func GetRdvPatient(appointmentId string, patientId string) GetRdvPatientResponse

type GetRdvResponse

type GetRdvResponse struct {
	Rdv  []model.Rdv
	Code int
	Err  error
}

func GetRdv

func GetRdv(patientId string) GetRdvResponse

type GetWaitingReviewResponse

type GetWaitingReviewResponse struct {
	RdvWithSession []RdvSessionPair
	Code           int
	Err            error
}

func GetWaitingReview

func GetWaitingReview(doctorId string, page int, size int) GetWaitingReviewResponse

type RdvSessionPair

type RdvSessionPair struct {
	Rdv     model.Rdv      `json:"rdv"`
	Session SessionSummary `json:"session"`
}

type ReviewInput

type ReviewInput struct {
	Reason        string `json:"reason,omitempty"`
	Validation    bool   `json:"validation"`
	HealthMethode string `json:"health_method"`
}

type SessionSummary

type SessionSummary struct {
	Diseases  []model.SessionDiseases `json:"diseases"`
	Fiability float64                 `json:"fiability"`
	Symptoms  []model.SessionSymptom  `json:"symptoms"`
	Logs      []model.LogsInput       `json:"logs"`
	Alerts    []model.Alert           `json:"alerts"`
}

type UpdateDoctorAppointmentStruct

type UpdateDoctorAppointmentStruct struct {
	Rdv     model.Rdv
	Patient model.Patient
	Code    int
	Err     error
}

func UpdateDoctorAppointment

func UpdateDoctorAppointment(newAppointmentId string, appointmentId string) UpdateDoctorAppointmentStruct

type ValidateRdvResponse

type ValidateRdvResponse struct {
	Rdv  model.Rdv
	Code int
	Err  error
}

Jump to

Keyboard shortcuts

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