Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "wizard"
Name is currently `wizard` for backwards compatability but will be migrated to `calculator`
Variables ¶
This section is empty.
Functions ¶
func InsulinOnBoardValidator ¶
Types ¶
type BloodGlucoseTarget ¶
type Event ¶
type Event struct { *Recommended `json:"recommended,omitempty" bson:"recommended,omitempty"` *BloodGlucoseTarget `json:"bgTarget,omitempty" bson:"bgTarget,omitempty"` *Bolus `json:"bolus,omitempty" bson:"bolus,omitempty"` // TODO_DATA: Reversed changes as Tandem does not have bolus as string id, but as structure BolusID *string `json:"bolusId,omitempty" bson:"bolusId,omitempty" valid:"-"` CarbohydrateInput *int `json:"carbInput,omitempty" bson:"carbInput,omitempty" valid:"omitempty,required"` InsulinOnBoard *float64 `json:"insulinOnBoard,omitempty" bson:"insulinOnBoard,omitempty" valid:"omitempty,insulinvalue"` InsulinSensitivity *int `json:"insulinSensitivity,omitempty" bson:"insulinSensitivity,omitempty" valid:"omitempty,insulinsensitivity"` BloodGlucoseInput *float64 `json:"bgInput,omitempty" bson:"bgInput,omitempty" valid:"-"` Units *string `json:"units" bson:"units" valid:"-"` types.Base `bson:",inline"` }
type Recommended ¶
type Recommended struct { Carbohydrate *float64 `json:"carb" bson:"carb" valid:"-"` // TODO_DATA: We can't have `required` validation here because it can be zero. //TODO: validation to be confirmed but based on device uploads isn't always present Correction *float64 `json:"correction" bson:"correction" valid:"-"` Net *float64 `json:"net" bson:"net" valid:"-"` }
Click to show internal directories.
Click to hide internal directories.