HealthEvent Class

Definition

A health event that occurred for the owner of the record.

public class HealthEvent : Microsoft.Health.HealthRecordItem
Inheritance

Inherited Members

Microsoft.Health.HealthRecordItem

Remarks

A health event is a health-related occurrence for the owner of the record. For children, it might be used to record the date that the child first crawls. For adults, it might be used to record the date of an accident or progress through a rehabilitation.

Constructors

HealthEvent()

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

HealthEvent(ApproximateDateTime, CodableValue)

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

Fields

TypeId

Retrieves the unique identifier for the HealthEvent type.

Properties

Category

Gets or sets the category of the health event.

Event

Gets or sets the name of the health event.

When

Gets or sets the date and time the event occurred.

Methods

ParseXml(IXPathNavigable)

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

ToString()

Gets a string representation of the HealthEvent.

WriteXml(XmlWriter)

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