Documentation ¶
Index ¶
- Constants
- func HighRangeForUnits(low float64, units *string) (float64, float64)
- func LowRangeForUnits(units *string) (float64, float64)
- func NormalizeUnits(units *string) *string
- func NormalizeValueForUnits(value *float64, units *string) *float64
- func RangeRangeForUnits(target float64, units *string) (float64, float64)
- func TargetRangeForUnits(units *string) (float64, float64)
- func Units() []string
- func ValueRangeForUnits(units *string) (float64, float64)
- type Target
Constants ¶
View Source
const ( MmolL = "mmol/L" Mmoll = "mmol/l" MgdL = "mg/dL" Mgdl = "mg/dl" MmolLLowerLimit float64 = 0.0 MmolLUpperLimit float64 = 55.0 MgdLLowerLimit float64 = 0.0 MgdLUpperLimit float64 = 1000.0 MmolLToMgdLConversionFactor float64 = 18.01559 MmolLToMgdLPrecisionFactor float64 = 100000.0 )
Variables ¶
This section is empty.
Functions ¶
func LowRangeForUnits ¶
func NormalizeUnits ¶
func NormalizeValueForUnits ¶
func TargetRangeForUnits ¶
func ValueRangeForUnits ¶
Types ¶
type Target ¶
type Target struct { Target *float64 `json:"target,omitempty" bson:"target,omitempty"` Range *float64 `json:"range,omitempty" bson:"range,omitempty"` Low *float64 `json:"low,omitempty" bson:"low,omitempty"` High *float64 `json:"high,omitempty" bson:"high,omitempty"` }
func ParseTarget ¶
func ParseTarget(parser data.ObjectParser) *Target
func (*Target) Parse ¶
func (t *Target) Parse(parser data.ObjectParser)
Click to show internal directories.
Click to hide internal directories.