HealthVault XPath Explorer

Posted by: Eric Gunnersons C# Compendium, on 10 Apr 2009 | View original | Bookmarked: 0 time(s)

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.

Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1262 | Hits: 10

Similar Posts

  • Introduction to HealthVault Development #2: Hello World more
  • How to Databind RadTreeView in WPF more
  • Reading XML document fragments in .NET more
  • HOW TO: Pipeline XSLT Transformations in .NET 2.0 Applications more
  • XPathmania and CodeKeep In the January 2007 Issue Of MSDN Magazine more
  • XPath, apostrophes and quotes more
  • Some Recognitions more
  • Performance, Performance, Performance - 2 - Xml Classes more
  • Intro to XPathmania - Extending Visual Studio 2005 to Support XPath Development more
  • To leak, or not to leak(memory) - Part Two more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD