HealthRecordInfo Class

Definition

Represents the APIs and information about a health record for an individual.

public class HealthRecordInfo : Microsoft.Health.HealthRecordAccessor, Microsoft.Health.IMarshallable
Inheritance
HealthRecordInfo
Implements

Inherited Members

Microsoft.Health.HealthRecordAccessor

Remarks

A HealthRecordInfo represents a person's view of a health record and information about the health record such as the state, name, date of expiration, and so on. This view may vary based upon the access rights the person has to the record and multiple people may have access to the same record but have different views. For instance, a husband may have a HealthRecordInfo instance for himself and another for his wife's health record which she shared with him.

Constructors

HealthRecordInfo(ApplicationConnection, Guid)

Creates a new instance of the HealthRecordInfo class, providing a new view of a personal health record.

Properties

ApplicationSpecificRecordId

Gets the application specific record id for the specified record and application.

DateAuthorizationExpires

Gets the date/time that the authorization for the record expires.

DateCreated

Gets the date the record was created, in UTC.

DateUpdated

Gets the date the record was updated, in UTC.

DisplayName

Gets the display name of the record.

HasAuthorizationExpired

true if the authorization of the authenticated person has expired for this record; otherwise, false.

HealthRecordAuthorizationStatus

Gets the HealthRecordAuthorizationStatus for the record.

IsCustodian

Gets a value indicating whether or not the person is a custodian of the record.

LatestOperationSequenceNumber

Gets the record's latest operation sequence number.

Name

Gets the name of the record.

QuotaInBytes

Gets the maximum total size in bytes that the HealthRecordItems in the HealthRecordInfo can occupy.

QuotaUsedInBytes

Gets the total size in bytes that the HealthRecordItems in the HealthRecordInfo currently occupy.

RecordAppAuthCreatedDate

Gets the date when the user authorized the application to the record, in UTC.

RelationshipName

Gets the localized string representing the relationship between the person authorized to view this record and the owner of the record.

RelationshipType

Gets the relationship the person authorized to view this record has with the "owner" of the record.

State

Gets the state of a HealthRecordInfo.

Methods

CreateFromXml(ApplicationConnection, XPathNavigator)

Creates an instance of a HealthRecordInfo object using the specified XML.

GetFromAlternateId(ApplicationConnection, String)

Look up the record that were previously associated with this alternate id.

GetXml()

Gets the XML representation of the HealthRecordInfo.

Marshal(XmlWriter)

Writes the record information into the specified writer as XML.

Refresh()

Updates the HealthRecordInfo instance with data from the server using the Id.

ToString()

Gets the name of the record.

Unmarshal(XmlReader)

Populates the data of the class from the XML in the specified reader.