Project Description
This library provides a simple framework for building Windows Store applications that connect to Microsoft HealthVault.HealthVault Resources
- The HealthVault MSDN site and Technical Overview for learning about introductory concepts.
- The documentation library for reference articles about HealthVault concepts and protocols.
- The type explorer for a list of health data types supported by HealthVault.
- The vocabulary explorer for a list of vocabularies that HealthVault makes available.
- The method API reference and the method schema explorer for a list of service methods that HealthVault exposes.
Project Contents
- hvsdk: A Windows runtime component providing the lowest level abstractions for working with HealthVault. This includes:
- HealthVault XML-over-HTTP method invocation, request serialization and response deserialization
- HealthVault authentication protocol (SODA)
- Wrappers for HealthVault methods.
- hvrt: A Windows Store class library providing abstractions for HealthVault objects that can be used within Windows Store applications. This includes:
- Wrappers for the HealthVault data types, common types and vocabulary objects.
- Storage helpers for assisting with caching and synchronizing data between HealthVault and a Windows Store app.
- sample: A Windows Store sample application written in Javascript that demonstrates how to build Windows Store apps that work with HealthVault.
Getting the Project
- Download the project release zip file or sync the project Source Code by connecting with TFS or Subversion.
Building and running the sample
- Install Visual Studio 2012 or Visual Studio Express 2012 for Windows 8
- Navigate to the /sample/ folder in the project and open hvJS.sln
- The solution file opens in Visual Studio and references the 3 components listed above.
- Hit Ctrl-F5 to run the sample application.
- Alternatively, hit F5 to debug the sample application. The code in /sample/js/default.js file is executed early on and is a good place to set a breakpoint for stepping through.
- When the app starts up, you'll see a screen similar to the screenshot one below. This is the HeathVault sign-in / sign-up screen in the HealthVault Pre-Production (PPE) environment. From here you'll create a HealthVault account and authorize the "Windows 8 Test Sample" application to access a HealthVault record.
- Once the above is complete, you'll be returned to the sample app which looks like the screenshot below. From here you can experiment with the sample app and explore the library's capabilities.