Asthma​Inhaler Class

Definition

Represents a health record item that encapsulates an asthma inhaler.

public class AsthmaInhaler : Microsoft.Health.HealthRecordItem
Inheritance
AsthmaInhaler

Inherited Members

Microsoft.Health.HealthRecordItem

Remarks

This class can represent any inhaler unit used to treat asthma. The inhaler may or may not have a device component to it. Each new canister should be represented by a new AsthmaInhaler instance, even if there is a containing device that is reusable. Changes in regimen (minimum/maximum doses per day) should also cause a new health record item to be created.

Constructors

Asthma​Inhaler()

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

Asthma​Inhaler(​Approximate​Date​Time, ​Codable​Value)

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

Fields

Type​Id

Retrieves the unique identifier for the item type.

Properties

Alerts

Gets a collection of alerts for the inhaler.

Can​Alert

Gets or sets a value indicating whether the inhaler can show alerts.

Device​Id

Gets or sets the identifier for the device.

Drug

Gets or sets the drug being used in the inhaler.

Expiration​Date

Gets or sets the date and time when the canister has clinically expired.

Initial​Doses

Gets or sets the number of doses in the unit at the time of item creation.

Maximum​Daily​Doses

Gets or sets the maximum number of doses that should be taken each day.

Minimum​Daily​Doses

Gets or sets the minimum number of doses that should be taken each day.

Purpose

Gets or sets the count of doses for each inhaler use.

Start​Date

Gets or sets the date and time when the inhaler use began.

Stop​Date

Gets or sets the date and time when the inhaler was retired.

Strength

Gets or sets the textual description of the drug strength (e.g., '44 mcg / puff').

Methods

Parse​Xml(​IX​Path​Navigable)

Populates this AsthmaInhaler instance from the data in the XML.

To​String()

Gets a string representation of the asthma inhaler item.

Write​Xml(​Xml​Writer)

Writes the asthma inhaler data to the specified XmlWriter.