Allergy Class

Definition

Represents a health record item type that encapsulates an allergy.

public class Allergy : Microsoft.Health.HealthRecordItem
Inheritance

Inherited Members

Microsoft.Health.HealthRecordItem

Constructors

Allergy()

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

Allergy(​Codable​Value)

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

Fields

Type​Id

Retrieves the unique identifier for the item type.

Properties

Allergen​Code

Gets or sets the code for the allergen that causes an allergic reaction.

Allergen​Type

Gets or sets the type of allergen that causes an allergic reaction.

First​Observed

Gets or sets the approximate date of the first occurrence of the allergy.

Is​Negated

Gets or sets a value indicating whether the allergic reaction is negated with treatment.

Name

Gets or sets the name of the allergy.

Reaction

Gets or sets the reaction the person has.

Treatment

Gets or sets a possible treatment method for this allergy.

Treatment​Provider

Gets or sets information about the treatment provider for this allergy.

Methods

Parse​Xml(​IX​Path​Navigable)

Populates this Allergy instance from the data in the XML.

To​String()

Gets a string representation of the allergy item.

Write​Xml(​Xml​Writer)

Writes the allergy data to the specified XmlWriter.