HealthVault XPath Explorer
By default, when a query is made to HealthVault, it returns all instances of a specific type. If you wish to filter to a subset of those instances, you can specify some properties in the HealthRecordFilter class. For example, you can set the CreatedApplication property to filter on the application that created the health record item.
The filter properties, however, only works for properties that are shared across all data types. If you want to filter based on properties that are data-type-specific, you can do that by setting the XPath property to an appropriate XPath query.
Creating that query is a bit inconvenient – perhaps a lot inconvenient – so I wrote a little utility that you can use to easily create an xpath query.
You can find the code here.
Make a copy of the HelloWorld sample, put the two files into it, and run the sample.
Comments
Anonymous
April 10, 2009
PingBack from http://asp-net-hosting.simplynetdev.com/healthvault-xpath-explorer/Anonymous
April 11, 2009
The comment has been removedAnonymous
April 11, 2009
I have heard that somebody is building ANT+ drivers for HealthVault, and that should cover the Garmin devices... I do know that TrainingPeaks can read data from the 305 and I'm pretty sure they can upload it to HealthVault. http://support.trainingpeaks.com/compatible-devices/garmin/forerunner-305.aspx http://blog.trainingpeaks.com/2007/10/using-healthvault-within-trainingpeaks-or-fitnesspeaks.htmlAnonymous
April 17, 2009
The users are unhappy. The weight tracking application worked pretty well initially, but now that they’ve