bloodglucose

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

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
)

Variables

This section is empty.

Functions

func ConvertValue

func ConvertValue(value float64, fromUnits string, toUnits string) float64

func HighRangeForUnits added in v1.3.0

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

func RangeRangeForUnits added in v1.3.0

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

Types

type Target added in v1.3.0

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 NewTarget added in v1.3.0

func NewTarget() *Target

func ParseTarget added in v1.3.0

func ParseTarget(parser data.ObjectParser) *Target

func (*Target) Normalize added in v1.3.0

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

func (*Target) Parse added in v1.3.0

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

func (*Target) Validate added in v1.3.0

func (b *Target) Validate(validator data.Validator, units *string)

Jump to

Keyboard shortcuts

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