ConcentrationMeasurement Class

Definition

Represents a concentration measurement (volume / volume).

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

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

Constructors

ConcentrationMeasurement()

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

ConcentrationMeasurement(Double)

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

ConcentrationMeasurement(Double, DisplayValue)

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

Methods

AssertMeasurementValue(Double)

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

GetValueString(Double)

Gets a string representation of the concentration value in the base units.

ParseValueXml(XPathNavigator)

Populates the data for the concentration value from the XML.

WriteValueXml(XmlWriter)

Writes the concentration value to the specified XML writer.