appointment

package
v1.15.15 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 added in v1.4.0

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 added in v1.4.0

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

func GetWaitingReview added in v1.4.0

func GetWaitingReview(doctorId string) GetWaitingReviewResponse

type ReviewInput added in v1.4.0

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

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 added in v1.4.0

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