glucose

package
v1.28.0-mobile-data-set.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: BSD-2-Clause Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MmolL = "mmol/L"
	Mmoll = "mmol/l"

	MgdL = "mg/dL"
	Mgdl = "mg/dl"

	MmolLMinimum float64 = 0.0
	MmolLMaximum float64 = 55.0

	MgdLMinimum float64 = 0.0
	MgdLMaximum float64 = 1000.0

	MmolLToMgdLConversionFactor float64 = 18.01559
	MmolLToMgdLPrecisionFactor  float64 = 100000.0
)

Variables

This section is empty.

Functions

func HighRangeForUnits

func HighRangeForUnits(low float64, units *string) (float64, float64)

func LowRangeForUnits

func LowRangeForUnits(units *string) (float64, float64)

func NormalizeUnits

func NormalizeUnits(units *string) *string

func NormalizeValueForUnits

func NormalizeValueForUnits(value *float64, units *string) *float64

func RangeRangeForUnits

func RangeRangeForUnits(target float64, units *string) (float64, float64)

func TargetRangeForUnits

func TargetRangeForUnits(units *string) (float64, float64)

func Units

func Units() []string

func ValueRangeForUnits

func ValueRangeForUnits(units *string) (float64, float64)

Types

type Target

type Target struct {
	High   *float64 `json:"high,omitempty" bson:"high,omitempty"`
	Low    *float64 `json:"low,omitempty" bson:"low,omitempty"`
	Range  *float64 `json:"range,omitempty" bson:"range,omitempty"`
	Target *float64 `json:"target,omitempty" bson:"target,omitempty"`
}

func NewTarget

func NewTarget() *Target

func ParseTarget

func ParseTarget(parser data.ObjectParser) *Target

func (*Target) Normalize

func (t *Target) Normalize(normalizer data.Normalizer, units *string)

func (*Target) Parse

func (t *Target) Parse(parser data.ObjectParser)

func (*Target) Validate

func (t *Target) Validate(validator structure.Validator, units *string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL