Export (0) Print
Expand All
Expand Minimize

GetTransformedItems Method

HealthVault
Gets the health record items specified by the HealthRecordSearcher and runs them through the specified transform.

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

public static string GetTransformedItems(
	ApplicationConnection connection,
	HealthRecordAccessor accessor,
	HealthRecordSearcher searcher,
	string transform
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
searcher
Type: Microsoft.Health..::..HealthRecordSearcher
The searcher that defines what items to return.
transform
Type: System..::..String
A URL to a transform to run on the resulting XML. This can be a fully-qualified URL or the name of one of the standard XSLs provided by the HealthVault system.

Return Value

The string resulting from performing the specified transform on the XML representation of the items.

This method accesses the HealthVault service across the network.

Any call to HealthVault may specify a transform to be run on the response XML. The transform can be specified as a XSL fragment or a well-known transform tag provided by the HealthVault service. If a XSL fragment is specified, it gets compiled and cached on the server.

A final-xsl is useful when you want to convert the result from XML to HTML so that you can display the result directly in a web page. You may also use it to generate other data formats like CCR, CCD, CSV, RSS, etc.

Transform fragments cannot contain embedded script. The following set of parameters are passed to all final-xsl transforms:
  • currentDateTimeUtc - the date and time just before the transform started executing
  • requestingApplicationName - the name of the application that made the request to HealthVault.
  • countryCode - the ISO 3166 country code from the request.
  • languageCode - the ISO 639-1 language code from the request.
  • personName - the name of the person making the request.
  • recordName - if the request identified a HealthVault record to be used, this parameter contains the name of that record.

ExceptionCondition
System..::..ArgumentException The transform parameter is null or empty.
System..::..ArgumentExceptionSections does not contain the XML section in the view.
Microsoft.Health..::..HealthServiceException There is a failure retrieving the items. -or- No filters have been specified.
Show:
© 2014 Microsoft