Documentation ¶
Index ¶
Constants ¶
View Source
const ( CarbohydrateInputMaximum = 1000.0 CarbohydrateInputMinimum = 0.0 InsulinCarbohydrateRatioMaximum = 250.0 InsulinCarbohydrateRatioMinimum = 0.0 InsulinOnBoardMaximum = 250.0 InsulinOnBoardMinimum = 0.0 )
View Source
const ( CarbohydrateMaximum = 100.0 CarbohydrateMinimum = 0.0 CorrectionMaximum = 100.0 CorrectionMinimum = -100.0 NetMaximum = 100.0 NetMinimum = -100.0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Calculator ¶
type Calculator struct { types.Base `bson:",inline"` BloodGlucoseInput *float64 `json:"bgInput,omitempty" bson:"bgInput,omitempty"` BloodGlucoseTarget *dataBloodGlucose.Target `json:"bgTarget,omitempty" bson:"bgTarget,omitempty"` Bolus *data.Datum `json:"-" bson:"-"` BolusID *string `json:"bolus,omitempty" bson:"bolus,omitempty"` CarbohydrateInput *float64 `json:"carbInput,omitempty" bson:"carbInput,omitempty"` InsulinCarbohydrateRatio *float64 `json:"insulinCarbRatio,omitempty" bson:"insulinCarbRatio,omitempty"` InsulinOnBoard *float64 `json:"insulinOnBoard,omitempty" bson:"insulinOnBoard,omitempty"` InsulinSensitivity *float64 `json:"insulinSensitivity,omitempty" bson:"insulinSensitivity,omitempty"` Recommended *Recommended `json:"recommended,omitempty" bson:"recommended,omitempty"` Units *string `json:"units,omitempty" bson:"units,omitempty"` }
func Init ¶
func Init() *Calculator
func New ¶
func New() *Calculator
func (*Calculator) Init ¶
func (c *Calculator) Init()
func (*Calculator) Normalize ¶
func (c *Calculator) Normalize(normalizer data.Normalizer)
func (*Calculator) Parse ¶
func (c *Calculator) Parse(parser data.ObjectParser) error
func (*Calculator) Validate ¶
func (c *Calculator) Validate(validator structure.Validator)
type Recommended ¶
type Recommended struct { Carbohydrate *float64 `json:"carb,omitempty" bson:"carb,omitempty"` Correction *float64 `json:"correction,omitempty" bson:"correction,omitempty"` Net *float64 `json:"net,omitempty" bson:"net,omitempty"` }
func NewRecommended ¶
func NewRecommended() *Recommended
func ParseRecommended ¶
func ParseRecommended(parser data.ObjectParser) *Recommended
func (*Recommended) Normalize ¶
func (r *Recommended) Normalize(normalizer data.Normalizer)
func (*Recommended) Parse ¶
func (r *Recommended) Parse(parser data.ObjectParser)
func (*Recommended) Validate ¶
func (r *Recommended) Validate(validator structure.Validator)
Click to show internal directories.
Click to hide internal directories.