Entries from December 2007 ↓

Querying HealthVault with "Where" clauses!

HealthVault give me all height measures greater than 1.7m

One can use the XPath attribute of the filter to do the specific queries on the healthvault search items.

Here is an example, which gives you all the height items greater than 1.7 m :

HealthRecordSearcher searcher = PersonInfo.SelectedRecord.CreateSearcher()
HealthRecordFilter filter = new HealthRecordFilter(typeID);
filter.XPath = "/thing/data-xml/height/value/m[.>=1.7]";
searcher.Filters.Add(filter);
HealthRecordItemCollection items = searcher.GetMatchingItems()[0];

Please note that the XPath tag doesnot support recursive XPath queries.

Easiest way to construct the queries is first find the HealthRecordItem you want to filter, identify its XML via the GetItemXml() and then use that structure to construct your XPath query. The following is the Xml for Height -


a891edda-48c3-4783-83d7-c3594a514739

40750a6a-89b2-455c-bd8d-b420a4cb500b
Active  2007-12-26T19:43:14Z                              2007          12          26                      

        1.9405395758527                

Hope this helps, I’ll post more on this in case there is interest.

Update: Eric wrote a tool to help with this, more details are here.

Microsoft Common User Interface

Very interestingly the Microsoft Common User Interface provides a set of ASP/WinForms controls which applications and user iterface designers can use to provide safe clinical applications! Its available as CodePlex Project!!! From my brief research i havent seen such a approach before other than the IBM CUA which was more about uniformity of user controls. I’m not sure that with the adoption of MVC model of web/app development the ASP/WinForms style controls will be more in demand in the future. Anyways one thing which sucks about it is that you can see what the controls are until you download the 13Megs of software, it would have been great to see some snapshots somewhere!!!

Adding Health Vault Search Box

You can add the health vault search box to your site very easily.

To add the box -

  1. Include the following in your head element -
    <script src="http://health.live.com/static/partner/Microsoft.HealthVault.js" type="text/javascript"></script>

  2. Add the following to the div where you want the search box
    <script type="text/javascript">       new Microsoft.HealthVault.SearchBox(0,null);</script>

    The first element in the SearchBox describes the size of search box (1,2,3) and the second one will be a partner id for ad revenue sharing with the search box partners. If you want such an id for revenue share you will need to contact Microsoft.

  3. For contextual pop-up use the above script and annotate your text as follows -
    Example -
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce <span onclick="myPopup.show(this)" class="msHealthVaultContextualPopup">cancer</span> nibh sed nisi. Quisque id sem. Cbulum facilisis iaculis quam. Nulla euismod porttitor risus. </p>
    
    <script type="text/javascript">var myPopup = new Microsoft.HealthVault.ContextualPopup(null);</script>

    Gives

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce cancer nibh sed nisi. Quisque id sem. Cbulum facilisis iaculis quam. Nulla euismod porttitor risus.

Microsoft’s Peter Neupert Voted #1 IT newmaker!

The healthcareitnews surveys gets for Health IT news makers ranks the newsmakers as:

  1. Peter Neupert, HealthVault.com
  2. Glen Tullman, AllScripts.com
  3. Steve Case, RevolutionHealth.com

I wish there was a compete equivalent for ranking people, the story of compete in companies in above case is fairly insufficient. Better stills i think the nominations should be made for Webby Awards health category.

HealthVault as discussed by Bill Crounse..

Bill Crounse (Worldwide Health Director for the Microsoft Corporation) has a nice and succint introduction to Microsoft Health vault here and relevant video discussion on10 :) .