HealthRecordItemExtension Class

Definition

Represents an extension to a health record item.

public class HealthRecordItemExtension
Inheritance
HealthRecordItemExtension

Remarks

Applications can augment the HealthVault defined data for a health record item type with application or vendor specific data by implementing item extensions.

Applications that implement a health record item extension should derive from this class and register their extension by calling RegisterExtensionHandler(String, Type). Whenever the HealthVault SDK reads an extension with the specified extension source an instance of the derived HealthRecordItemExtension will be created and it's ParseXml(IXPathNavigable) method will be called to populate the data of the class from the web-service XML. Common portions of the item extension data will be parsed by the base class and exposed as properties.

Constructors

HealthRecordItemExtension()

Constructor used when creating an instance for XML deserialization.

HealthRecordItemExtension(String)

Constructs a health record item extension for the specified source.

Properties

ExtensionData

Gets the extension data for the extension.

Logo

Gets or sets the URL to a logo for display use with the extension.

Source

Gets or sets the extension source identifier.

Transform

Gets or sets the URL to an XSL transform which can transform the XML of the extension into HTML suitable for display in a small form or popup.

Version

Gets or sets the version of the extension.

Methods

ParseXml(IXPathNavigable)

Populates the extension data from the specified XML.

WriteXml(XmlWriter)

Writes the data portion of the extension to the specified XML writer.