HealthGoal Class

Definition

A health goal defines a target for a measurement or action to be performed by a user.

public class HealthGoal : Microsoft.Health.HealthRecordItem
Inheritance

Inherited Members

Microsoft.Health.HealthRecordItem

Remarks

Example goals: maintain average blood glucose level below 90 mg/dl, walk 1000 steps per day.

Constructors

HealthGoal()

Creates a new instance of the HealthGoal class with default values.

HealthGoal(CodableValue)

Creates a new instance of the HealthGoal class specifying mandatory values.

Fields

TypeId

Retrieves the unique identifier for the item type.

Properties

AssociatedTypeInfo

Gets or sets specifies HealthVault type information related to this goal.

Description

Gets or sets description of the goal.

EndDate

Gets or sets the end date of the goal.

GoalAdditionalRanges

Gets allows specifying additional ranges for the goal.

Name

Gets or sets name of the goal.

Recurrence

Gets or sets this field allows defining recurrence for goals.

StartDate

Gets or sets the start date of the goal.

TargetRange

Gets or sets the target range for the goal.

Methods

ParseXml(IXPathNavigable)

Populates this HealthGoal instance from the data in the specified XML.

ToString()

Gets a string representation of the HealthGoal.

WriteXml(XmlWriter)

Writes the XML representation of the HealthGoal into the specified XML writer.