GetSingleItem Method

Gets a single health record item from the associated record by using the item identifier.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: (1.15.1003.9505)

public HealthRecordItem GetSingleItem(
	Guid itemId,
	HealthRecordItemSections sections


Type: System..::..Guid
The unique identifier for the health record item.
Type: Microsoft.Health..::..HealthRecordItemSections
The data sections of the health record item that should be retrieved.

Return Value

An instance of a HealthRecordItem representing the health record item with the specified identifier.

This method accesses the HealthVault service across the network.

All filters are cleared and replaced with a single filter for the specified item.

Microsoft.Health..::..HealthServiceException The server returned something other than a code of HealthServiceStatusCode.OK, or the result count did not equal one (1). -or- Filters is empty or contains invalid filters.