BloodGlucoseMeasurement Class

Definition

Represents a blood glucose measurement.

public class BloodGlucoseMeasurement : Microsoft.Health.ItemTypes.Measurement<double>
Inheritance

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, blood glucose readings have values and display values. All values are stored in a base unit of mmol/L. An application can take a blood glucose value using any scale the application chooses and can store the user-entered value as the display value, but the blood glucose value must be converted to mmol/L to be stored in HealthVault.

Constructors

BloodGlucoseMeasurement()

Creates a new instance of the BloodGlucoseMeasurement class with empty values.

BloodGlucoseMeasurement(Double)

Creates a new instance of the BloodGlucoseMeasurement class with the specified value in millimoles per liter (mmol/L).

BloodGlucoseMeasurement(Double, DisplayValue)

Creates a new instance of the BloodGlucoseMeasurement class with the specified value in millimoles per liter (mmol/L) and display value.

Methods

AssertMeasurementValue(Double)

Verifies the value is a legal blood glucose measurement in millimoles per liter (mmol/L).

GetValueString(Double)

Gets a string representation of the blood glucose in the base units.

ParseValueXml(XPathNavigator)

Populates the data for the blood glucose from the XML.

WriteValueXml(XmlWriter)

Writes the blood glucose to the specified XML writer.