Documentation ¶
Index ¶
- func NewDatum() data.Datum
- func ParseBasalSchedulesMap(parser data.ObjectParser) *map[string]*[]*BasalSchedule
- func ParseBloodGlucoseTargetArray(parser data.ArrayParser) *[]*BloodGlucoseTarget
- func ParseCarbohydrateRatioArray(parser data.ArrayParser) *[]*CarbohydrateRatio
- func ParseInsulinSensitivityArray(parser data.ArrayParser) *[]*InsulinSensitivity
- func Type() string
- type BasalSchedule
- type BloodGlucoseTarget
- type CarbohydrateRatio
- type InsulinSensitivity
- type Pump
- type Units
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBasalSchedulesMap ¶
func ParseBasalSchedulesMap(parser data.ObjectParser) *map[string]*[]*BasalSchedule
func ParseBloodGlucoseTargetArray ¶
func ParseBloodGlucoseTargetArray(parser data.ArrayParser) *[]*BloodGlucoseTarget
func ParseCarbohydrateRatioArray ¶
func ParseCarbohydrateRatioArray(parser data.ArrayParser) *[]*CarbohydrateRatio
func ParseInsulinSensitivityArray ¶
func ParseInsulinSensitivityArray(parser data.ArrayParser) *[]*InsulinSensitivity
Types ¶
type BasalSchedule ¶
type BasalSchedule struct { Rate *float64 `json:"rate,omitempty" bson:"rate,omitempty"` Start *int `json:"start,omitempty" bson:"start,omitempty"` }
func NewBasalSchedule ¶
func NewBasalSchedule() *BasalSchedule
func (*BasalSchedule) Normalize ¶
func (b *BasalSchedule) Normalize(normalizer data.Normalizer)
func (*BasalSchedule) Parse ¶
func (b *BasalSchedule) Parse(parser data.ObjectParser)
func (*BasalSchedule) Validate ¶
func (b *BasalSchedule) Validate(validator data.Validator)
type BloodGlucoseTarget ¶
type BloodGlucoseTarget struct { glucose.Target `bson:",inline"` Start *int `json:"start,omitempty" bson:"start,omitempty"` }
func NewBloodGlucoseTarget ¶
func NewBloodGlucoseTarget() *BloodGlucoseTarget
func ParseBloodGlucoseTarget ¶
func ParseBloodGlucoseTarget(parser data.ObjectParser) *BloodGlucoseTarget
func (*BloodGlucoseTarget) Parse ¶
func (b *BloodGlucoseTarget) Parse(parser data.ObjectParser)
type CarbohydrateRatio ¶
type CarbohydrateRatio struct { Amount *float64 `json:"amount,omitempty" bson:"amount,omitempty"` Start *int `json:"start,omitempty" bson:"start,omitempty"` }
func NewCarbohydrateRatio ¶
func NewCarbohydrateRatio() *CarbohydrateRatio
func ParseCarbohydrateRatio ¶
func ParseCarbohydrateRatio(parser data.ObjectParser) *CarbohydrateRatio
func (*CarbohydrateRatio) Normalize ¶
func (c *CarbohydrateRatio) Normalize(normalizer data.Normalizer)
func (*CarbohydrateRatio) Parse ¶
func (c *CarbohydrateRatio) Parse(parser data.ObjectParser)
func (*CarbohydrateRatio) Validate ¶
func (c *CarbohydrateRatio) Validate(validator data.Validator)
type InsulinSensitivity ¶
type InsulinSensitivity struct { Amount *float64 `json:"amount,omitempty" bson:"amount,omitempty"` Start *int `json:"start,omitempty" bson:"start,omitempty"` }
func NewInsulinSensitivity ¶
func NewInsulinSensitivity() *InsulinSensitivity
func ParseInsulinSensitivity ¶
func ParseInsulinSensitivity(parser data.ObjectParser) *InsulinSensitivity
func (*InsulinSensitivity) Normalize ¶
func (i *InsulinSensitivity) Normalize(normalizer data.Normalizer, units *string)
func (*InsulinSensitivity) Parse ¶
func (i *InsulinSensitivity) Parse(parser data.ObjectParser)
type Pump ¶
type Pump struct { types.Base `bson:",inline"` *Units `json:"units,omitempty" bson:"units,omitempty"` BasalSchedules *map[string]*[]*BasalSchedule `json:"basalSchedules,omitempty" bson:"basalSchedules,omitempty"` CarbohydrateRatios *[]*CarbohydrateRatio `json:"carbRatio,omitempty" bson:"carbRatio,omitempty"` InsulinSensitivities *[]*InsulinSensitivity `json:"insulinSensitivity,omitempty" bson:"insulinSensitivity,omitempty"` BloodGlucoseTargets *[]*BloodGlucoseTarget `json:"bgTarget,omitempty" bson:"bgTarget,omitempty"` ActiveSchedule *string `json:"activeSchedule,omitempty" bson:"activeSchedule,omitempty"` }
type Units ¶
type Units struct { Carbohydrate *string `json:"carb,omitempty" bson:"carb,omitempty"` BloodGlucose *string `json:"bg,omitempty" bson:"bg,omitempty"` }
func ParseUnits ¶
func ParseUnits(parser data.ObjectParser) *Units
func (*Units) Normalize ¶
func (u *Units) Normalize(normalizer data.Normalizer)
func (*Units) Parse ¶
func (u *Units) Parse(parser data.ObjectParser)
Click to show internal directories.
Click to hide internal directories.