Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appointment ¶
type Appointment struct {
StartAt JaneTime `json:"start_at"`
EndAt JaneTime `json:"end_at"`
State AppointmentType `json:"state"`
Patient domain.Patient `json:"patient"`
}
func (Appointment) HasPassed ¶ added in v1.1.0
func (appointment Appointment) HasPassed() bool
func (Appointment) ToString ¶
func (appointment Appointment) ToString() string
type AppointmentType ¶ added in v1.1.0
type AppointmentType string
const ( Booked AppointmentType = "booked" Arrived AppointmentType = "arrived" Break AppointmentType = "break" Unscheduled AppointmentType = "unscheduled" )
type Schedule ¶
type Schedule struct {
Appointments []Appointment `json:"appointments"`
Shifts []Shift `json:"shifts"`
// contains filtered or unexported fields
}
func (Schedule) OnlyInclude ¶ added in v1.1.0
func (schedule Schedule) OnlyInclude(include []AppointmentType) Schedule
Click to show internal directories.
Click to hide internal directories.