GetItem Method (Guid, HealthRecordItemSections)

HealthVault
Gets the health record item specified by its ID.

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

public HealthRecordItem GetItem(
	Guid itemId,
	HealthRecordItemSections sections
)

Parameters

itemId
Type: System..::..Guid
The ID of the health record item to retrieve.
sections
Type: Microsoft.Health..::..HealthRecordItemSections
The data sections of the health record item to retrieve.

Return Value

A HealthRecordItem with the specified data sections filled out.

This method accesses the HealthVault service across the network.

ExceptionCondition
Microsoft.Health..::..HealthServiceException The HealthVault service returned an error.
Show: