Documentation
¶
Index ¶
- Variables
- type Appointment
- type AppointmentType
- type JaneTime
- func (janeTime JaneTime) HumanDate() string
- func (janeTime JaneTime) HumanDateTime() string
- func (janeTime JaneTime) MarshalJSON() ([]byte, error)
- func (janeTime JaneTime) NextDay() JaneTime
- func (janeTime JaneTime) PreviousDay() JaneTime
- func (janeTime JaneTime) ThisDay() JaneTime
- func (janeTime *JaneTime) UnmarshalJSON(bytes []byte) error
- type Schedule
- type Shift
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAppointment = Appointment{}
Functions ¶
This section is empty.
Types ¶
type Appointment ¶
type Appointment struct {
ID int `json:"id"`
PatientID int `json:"patient_id"`
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 JaneTime ¶
func NewJaneTime ¶
func (JaneTime) HumanDateTime ¶ added in v1.2.0
func (JaneTime) MarshalJSON ¶
func (JaneTime) PreviousDay ¶ added in v1.2.0
func (*JaneTime) UnmarshalJSON ¶
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.