<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>HealthVaultJavaLib Forum Rss Feed</title><link>http://www.codeplex.com/HealthVaultJavaLib/Thread/List.aspx</link><description>HealthVaultJavaLib Forum Rss Description</description><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Hi Greg,&lt;br /&gt;
&lt;br /&gt;
The idea was that when you create the connect request, you pass in an identifier from your system as the &amp;quot;external-id&amp;quot;.  When you call GetAuthorizedConnectRequests, you will receive the HV person-id, record-id and your external-id.  You can then use the external-id to map the HV record to your system.&lt;br /&gt;
&lt;br /&gt;
As an aside, I haven't published a new Java release in a while but the trunk of the code base has updated methods and types.  You should feel free to download that and use it if you find something you need there.  I should be publishing another release here shortly.  The trunk is always kept in working order.&lt;br /&gt;
&lt;br /&gt;
--Rob &lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Thu, 13 Jun 2013 17:31:27 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130613053127P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
Rob - we are still trying to figure out an elegant way to get the personID and recordID. I think the way to do it is to write our own linking tool, basically our own version of
&lt;a href="https://account.healthvault-ppe.com/patientwelcome.aspx" target="_blank" style="font-size:13px; font-family:arial,sans-serif"&gt;
https://account.healthvault-ppe.com/patientwelcome.aspx&lt;/a&gt;, step #4.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
If we write that we can return the patientID and RecordID, I think? But we don't see any sample code or a template for that. Is there anything out there?&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
Below is the process to generate the personId.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt 0.5in"&gt;
1.&lt;span style="font-size:7pt; font-family:'Times New Roman'"&gt; &lt;/span&gt;WELL app sends secret question, answer, friendlyname and externalID to HV.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt 0.5in"&gt;
2.&lt;span style="font-size:7pt; font-family:'Times New Roman'"&gt; &lt;/span&gt;HV generates a 20 digit identity token, which is sent to the user.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt 0.5in"&gt;
3.&lt;span style="font-size:7pt; font-family:'Times New Roman'"&gt; &lt;/span&gt;User logs in HV site enters this identity token, approves the WELL app to access his health data.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt 0.25in"&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
The problem we face is that there is no API to get personId given an identity token.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
We need this since step 2 and 3 happen on different systems and there is no way for us to get the personId based on information we have.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
Currently we are iterating through list of AuthorisedPerson and match the last name to find the person, but this is not right.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
We feel that there should be an API in HV that we are missing, which returns personID given some identifier that WELL is aware of. (i.e. either external ID or identity token)&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
While traversing through documentation we had seen there is an API in .NET called getAlternateIds(), not sure if it returned the personID, but this API is not present in JAVA sdk.&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
Thanks for your help!&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0in 0in 0.0001pt"&gt;
-Greg&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>geoyang</author><pubDate>Thu, 13 Jun 2013 15:28:36 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130613032836P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Those users have fully authorized the application as shown by &amp;quot;app-record-auth-action=&amp;quot;NoActionRequired&amp;quot;.  If the application had changed its permission set to include new types or permissions, the status would be listed as ReauthorizationRequired.&lt;br /&gt;
&lt;br /&gt;
You application does not appear to have ONLINE permission to create whatever thing you are trying to create.  It looks like you make some calls offline and some calls online.  Is that correct?  Do you have a web front end and some backend processing?  Be sure to re-check the online AND offline rules in the Application Configuration Center.&lt;br /&gt;
&lt;br /&gt;
I'm not sure what you mean when you say, &amp;quot;I can't really get them to do a new connect because it knows they are already connected&amp;quot;.  Do you mean your system already knows they are connected, or HealthVault.  In HealthVault's case, you can simply enter the same PatientConnect code and reauthorize the same record.  You can create a new code too, if you'd like.&lt;br /&gt;
&lt;br /&gt;
--Rob&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Wed, 12 Jun 2013 22:33:43 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612103343P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Rob,&lt;br /&gt;
&lt;br /&gt;
Rob,&lt;br /&gt;
&lt;br /&gt;
I think we've pretty much got that too, this is what I see coming from our server, here's one of our registered users! :)  I think it's mostly the 20 minute thing and the fact that we need to have our AppID on the production side so I can see all my data.  I can't really get them to do a new connect because it knows they are already connected and they remove all access button is grayed out.  Do you know how to fix that?  do you guys have admin access to kill that link?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;person-id&amp;gt;3785d109-2d84-441d-9baa-b9bf37f832a3&amp;lt;/person-id&amp;gt;&amp;lt;name&amp;gt;Greg Eoyang&amp;lt;/name&amp;gt;&amp;lt;selected-record-id&amp;gt;020ff74f-4bb6-44d5-b7a5-cee2ce7dc3c0&amp;lt;/selected-record-id&amp;gt;&amp;lt;record id=&amp;quot;020ff74f-4bb6-44d5-b7a5-cee2ce7dc3c0&amp;quot; record-custodian=&amp;quot;true&amp;quot; rel-type=&amp;quot;1&amp;quot; rel-name=&amp;quot;Self&amp;quot; auth-expires=&amp;quot;9999-12-31T23:59:59.999Z&amp;quot; display-name=&amp;quot;Greg&amp;quot; state=&amp;quot;Active&amp;quot; date-created=&amp;quot;2013-06-12T18:15:18.073Z&amp;quot; max-size-bytes=&amp;quot;4294967296&amp;quot; size-bytes=&amp;quot;1041&amp;quot; app-record-auth-action=&amp;quot;NoActionRequired&amp;quot; app-specific-record-id=&amp;quot;242005&amp;quot; location-country=&amp;quot;US&amp;quot; date-updated=&amp;quot;2013-06-12T18:15:46.313Z&amp;quot;&amp;gt;Greg Eoyang&amp;lt;/record&amp;gt;&amp;lt;preferred-culture&amp;gt;&amp;lt;language&amp;gt;en-US&amp;lt;/language&amp;gt;&amp;lt;/preferred-culture&amp;gt;&amp;lt;preferred-uiculture&amp;gt;&amp;lt;language&amp;gt;en-US&amp;lt;/language&amp;gt;&amp;lt;/preferred-uiculture&amp;gt;&amp;lt;location&amp;gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&amp;lt;/location&amp;gt;&amp;lt;/person-info&amp;gt;&amp;lt;person-info&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;person-id&amp;gt;beb76296-2a21-4c50-9fc3-125c0a546517&amp;lt;/person-id&amp;gt;&amp;lt;name&amp;gt;Persistent2 test&amp;lt;/name&amp;gt;&amp;lt;selected-record-id&amp;gt;8cf28106-522b-49bd-a951-12bc70999d9d&amp;lt;/selected-record-id&amp;gt;&amp;lt;record id=&amp;quot;8cf28106-522b-49bd-a951-12bc70999d9d&amp;quot; record-custodian=&amp;quot;true&amp;quot; rel-type=&amp;quot;1&amp;quot; rel-name=&amp;quot;Self&amp;quot; auth-expires=&amp;quot;9999-12-31T23:59:59.999Z&amp;quot; display-name=&amp;quot;Persistent2&amp;quot; state=&amp;quot;Active&amp;quot; date-created=&amp;quot;2013-05-31T11:40:38.45Z&amp;quot; max-size-bytes=&amp;quot;4294967296&amp;quot; size-bytes=&amp;quot;1002&amp;quot; app-record-auth-action=&amp;quot;NoActionRequired&amp;quot; app-specific-record-id=&amp;quot;241122&amp;quot; location-country=&amp;quot;US&amp;quot; date-updated=&amp;quot;2013-06-04T06:31:39.073Z&amp;quot;&amp;gt;Persistent2 test&amp;lt;/record&amp;gt;&amp;lt;preferred-culture&amp;gt;&amp;lt;language&amp;gt;en-GB&amp;lt;/language&amp;gt;&amp;lt;/preferred-culture&amp;gt;&amp;lt;preferred-uiculture&amp;gt;&amp;lt;language&amp;gt;en-GB&amp;lt;/language&amp;gt;&amp;lt;/preferred-uiculture&amp;gt;&amp;lt;location&amp;gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&amp;lt;/location&amp;gt;&amp;lt;/person-info&amp;gt;&lt;br /&gt;
&lt;/div&gt;</description><author>geoyang</author><pubDate>Wed, 12 Jun 2013 20:50:45 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612085045P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Hi Greg,&lt;br /&gt;
&lt;br /&gt;
Cool. You are pretty far.  When a user accepts a patient connect request at HealthVault, a few things happen.  The user might have needed to create a HealthVault account, they will authorize your application, and the accepted connect request will become available through the method GetAuthorizedConnectRequests.&lt;br /&gt;
&lt;br /&gt;
The part left for your application is to read the Authorized Connect Requests, discover the person-id and record-id, and map that to a user in your system through the external-id in the request.&lt;br /&gt;
&lt;br /&gt;
With the person-id and record-id your application can make offline calls (basically just using the person-id instead of an access token).  In order to do that, your application needs to be provisioned with offline rules.  If you look in the app configuration center, there are online as well as offline rules.  Be sure you add offline rules.&lt;br /&gt;
&lt;br /&gt;
When you make changes to your permissions in app configuration center, it may take up to 20 minutes to propagate.  That's a bummer, I know.  Any existing users will also need to reauthorize your application to accept the new permissions.  You can get them to reauthorize via a new connect request if you want.&lt;br /&gt;
&lt;br /&gt;
Let me know how it goes.&lt;br /&gt;
&lt;br /&gt;
--Rob&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Wed, 12 Jun 2013 19:02:24 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612070224P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Rob - thanks for the quick responses - I can see by the answers here that you are 'the man' so I'm very excited. :)&lt;br /&gt;
&lt;br /&gt;
Yeah, I'm pretty sure I got the keystore and all of that right because I'm not getting the HVException any more.. :)&lt;br /&gt;
&lt;br /&gt;
Step 3, well, We are going to need a patient connect model and I'm working through the sample code to try to build what we need.  We actually do have a service running that will generate a GUID, given the question and answer (and of course we send the AppID).  I can see that we get added OK, but I don't seem to have access (read or write...)  The way I  understand the GUID is that it links any logged in user if they correctly answer the secret question and answer to the AppID that we generated the GUID with.&lt;br /&gt;
&lt;br /&gt;
For some reason the way it looks is that I'm able to add people without any privs and now I can't delete them.  if you look at the user: &lt;a href="mailto:pranav_kurbetti@yahoo.com" rel="nofollow"&gt;pranav_kurbetti@yahoo.com&lt;/a&gt; or Greg Eoyang (not sure what kind of access you have to the PPE?  you can see this.  I think this comes from changing the prives of the AppID once it's already in use or something like that?&lt;br /&gt;
&lt;br /&gt;
We would like to be able to have people send a secret question and answer to our interface - which then will generate a GUID and send it via email to them, which is already working (I think...), then they go to the patientwelcome.aspx page and complete the link by selecting the right person from their account.&lt;br /&gt;
&lt;br /&gt;
The link works, but the app can't read anything through the link.&lt;br /&gt;
&lt;br /&gt;
Greg.&lt;br /&gt;
&lt;/div&gt;</description><author>geoyang</author><pubDate>Wed, 12 Jun 2013 18:13:36 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612061336P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I'm sort of following you.  It sounds like you created your own AppId at &lt;a href="https://config.healthvault-ppe.com" rel="nofollow"&gt;https://config.healthvault-ppe.com&lt;/a&gt;.  That's awesome.&lt;br /&gt;
&lt;br /&gt;
It sounds like you want to run one of the sample apps with your AppId.  Which one?  The one under examples/ui-jaxb?  In order to do that you need to make two changes.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;edit src/main/resources/hv-application.properties and set app.id=&amp;lt;your app-id&amp;gt;&lt;/li&gt;
&lt;li&gt;
ensure your private key is in src/main/resources/keystore.  You can find those instructions here:  &lt;a href="https://healthvaultjavalib.codeplex.com/wikipage?title=Getting%20Started" rel="nofollow"&gt;https://healthvaultjavalib.codeplex.com/wikipage?title=Getting%20Started&lt;/a&gt;  under &amp;quot;Private Key&amp;quot;.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
What I'm confused about is when you get to your step 3) where you generate a GUID with the appid, alias, question and answer.  Are you trying to do patient connect?  I'm not sure why, especially if you are trying to use the sample application.  Can you elaborate on that?&lt;br /&gt;
&lt;br /&gt;
--Rob&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Wed, 12 Jun 2013 17:56:59 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612055659P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;I was just causing the get weight sample program.  I do not think that my record is authorized, although I have Added the app.&lt;br /&gt;
&lt;br /&gt;
I think I'm missing a step.&lt;br /&gt;
&lt;br /&gt;
This is what we did:&lt;br /&gt;
&lt;br /&gt;
1) created an AppID&lt;br /&gt;
2) altered the sample app with the weight thing in it to use that app id versus the wildcat appid&lt;br /&gt;
3) generated the GUID with the appid, alias, question and answer&lt;br /&gt;
4) type all that into the patient register page&lt;br /&gt;
5) linked it to that user&lt;br /&gt;
6) Looking in the app for activity - nothing shows up, although in wildcat you can see where it authorized a record.&lt;br /&gt;
&lt;br /&gt;
There also seems to be some sort of delay between when I configure the app for read access (for example) to vitals and when that seems to work?  I removed the app from the user, then re-added it to see if I missed a step or maybe the order was wrong. and now I can't see the records I could see before.&lt;br /&gt;
&lt;br /&gt;
:(&lt;br /&gt;
&lt;br /&gt;
What am I getting wrong?&lt;br /&gt;
&lt;/div&gt;</description><author>geoyang</author><pubDate>Wed, 12 Jun 2013 16:32:38 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130612043238P</guid></item><item><title>New Post: Need association between personID and my apps patientId</title><link>http://healthvaultjavalib.codeplex.com/discussions/446054</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
This is a great question (and not difficult to do) but better asked over at the HealthVault developer forums.  It doesn't pertain directly to the Java part of this project.  Check out:  &lt;a href="http://social.msdn.microsoft.com/forums/en-US/healthvault/" rel="nofollow"&gt;http://social.msdn.microsoft.com/forums/en-US/healthvault/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Tue, 11 Jun 2013 22:43:24 GMT</pubDate><guid isPermaLink="false">New Post: Need association between personID and my apps patientId 20130611104324P</guid></item><item><title>New Post: How to construct a 'thing' element for HeartRate</title><link>http://healthvaultjavalib.codeplex.com/discussions/444972</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
The error returned from HealthVault should contain a string message telling you what went wrong.  If you can use the Jaxb code, it will construct valid XML for you.  I added  HeartRateTest to the unit test so that you could see it.  Here is some XML:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;info&amp;gt;
  &amp;lt;thing&amp;gt;
    &amp;lt;type-id&amp;gt;b81eb4a6-6eac-4292-ae93-3872d6870994&amp;lt;/type-id&amp;gt;
    &amp;lt;data-xml&amp;gt;
      &amp;lt;heart-rate&amp;gt;
        &amp;lt;when&amp;gt;
          &amp;lt;date&amp;gt;
            &amp;lt;y&amp;gt;2013&amp;lt;/y&amp;gt;
            &amp;lt;m&amp;gt;6&amp;lt;/m&amp;gt;
            &amp;lt;d&amp;gt;11&amp;lt;/d&amp;gt;
          &amp;lt;/date&amp;gt;
          &amp;lt;time&amp;gt;
            &amp;lt;h&amp;gt;15&amp;lt;/h&amp;gt;
            &amp;lt;m&amp;gt;32&amp;lt;/m&amp;gt;
            &amp;lt;s&amp;gt;40&amp;lt;/s&amp;gt;
            &amp;lt;f&amp;gt;556&amp;lt;/f&amp;gt;
          &amp;lt;/time&amp;gt;
        &amp;lt;/when&amp;gt;
        &amp;lt;value&amp;gt;60&amp;lt;/value&amp;gt;
      &amp;lt;/heart-rate&amp;gt;
    &amp;lt;/data-xml&amp;gt;
  &amp;lt;/thing&amp;gt;
&amp;lt;/info&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>robmay</author><pubDate>Tue, 11 Jun 2013 22:41:22 GMT</pubDate><guid isPermaLink="false">New Post: How to construct a 'thing' element for HeartRate 20130611104122P</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;What method are you calling when you get the error?  Have you authorized a record for your application?&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Tue, 11 Jun 2013 22:19:29 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130611101929P</guid></item><item><title>New Post: JaxB marshalling</title><link>http://healthvaultjavalib.codeplex.com/discussions/444640</link><description>&lt;div style="line-height: normal;"&gt;Hi Alex,&lt;br /&gt;
&lt;br /&gt;
Try looking at the Jaxb unit tests for how it works.  You'll end up with code like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public void CreateThing() {
        Thing thing = new Thing();
        thing.setData(createValidAllergy());
        
        PutThingsRequest request = new PutThingsRequest();
        request.getThing().add(thing);
        
        PutThingsResponse response = (PutThingsResponse)requestTemplate.makeRequest(request);
}
        
private Allergy createValidAllergy() {
        Allergy allergy = new Allergy();
        allergy.setName(new CodableValue(&amp;quot;Dairy&amp;quot;, 
                new CodedValue(&amp;quot;value&amp;quot;, &amp;quot;family&amp;quot;, &amp;quot;type&amp;quot;, &amp;quot;version&amp;quot;)));
        
        ApproxDate dt = new ApproxDate();
        dt.setY(1960);
        StructuredApproxDate sad = new StructuredApproxDate();
        sad.setDate(dt);
        ApproxDateTime firstObs = new ApproxDateTime();
        firstObs.setStructured(sad);
        allergy.setFirstObserved(firstObs);
        
        allergy.setAllergenCode(new CodableValue(&amp;quot;my-code&amp;quot;));
        
        Name name = new Name();
        name.setFull(&amp;quot;Dr. Who&amp;quot;);
        Person person = new Person();
        person.setName(name);
        allergy.setTreatmentProvider(person);
        
        return allergy;
    }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>robmay</author><pubDate>Tue, 11 Jun 2013 22:18:29 GMT</pubDate><guid isPermaLink="false">New Post: JaxB marshalling 20130611101829P</guid></item><item><title>New Post: Need association between personID and my apps patientId</title><link>http://healthvaultjavalib.codeplex.com/discussions/446054</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I need to know if there is any way of relating my database patientId with Healthvault personId.&lt;br /&gt;
&lt;br /&gt;
My scenario is as follows.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;In my local DB a patient registers himself, he then sends his information to healthvault to&lt;br /&gt;
   generate a identity token.&lt;/li&gt;
&lt;li&gt;He then logs into healthvault and approves my app to access his data.&lt;/li&gt;
&lt;li&gt;
My problem is how do I associate my DBs patient Id with the person ID generated by healthvault.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
Any help will appreciated.&lt;br /&gt;
&lt;/div&gt;</description><author>pachaudhary</author><pubDate>Wed, 05 Jun 2013 10:52:35 GMT</pubDate><guid isPermaLink="false">New Post: Need association between personID and my apps patientId 20130605105235A</guid></item><item><title>New Post: HVAccessDeniedException</title><link>http://healthvaultjavalib.codeplex.com/discussions/445995</link><description>&lt;div style="line-height: normal;"&gt;I've created my AppID and it seems to be authenticating, but when I try to post something, it gives me HVAccessDeniedException.&lt;br /&gt;
&lt;br /&gt;
I've modified the permissions to allow crud  - but it's acting as if I don't have the ability to read or write.  I've noticed someone say they had to 'restart' the application, but I'm calling it from eclipse and have restarted it many times.  Is there anything else I need to do to get the permissions?&lt;br /&gt;
&lt;br /&gt;
It would also be really nice to see the error in a more legible way.  I think I'm getting error number 11?&lt;br /&gt;
&lt;br /&gt;
Can you help?&lt;br /&gt;
&lt;br /&gt;
Greg&lt;br /&gt;
&lt;/div&gt;</description><author>geoyang</author><pubDate>Tue, 04 Jun 2013 20:27:51 GMT</pubDate><guid isPermaLink="false">New Post: HVAccessDeniedException 20130604082751P</guid></item><item><title>New Post: How to construct a 'thing' element for HeartRate</title><link>http://healthvaultjavalib.codeplex.com/discussions/444972</link><description>&lt;div style="line-height: normal;"&gt;Somewhere there must be some documentation/example of what the xml would look like for the heart rate measurement. I have stumbled on some stuff but not all. My current 'info' element looks as follows:&lt;br /&gt;
&amp;lt;info&amp;gt;&lt;br /&gt;
  &amp;lt;thing&amp;gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;type-id&amp;gt;b81eb4a6-6eac-4292-ae93-3872d6870994&amp;lt;/type-id&amp;gt;
&amp;lt;data-xml&amp;gt;
  &amp;lt;heartrate&amp;gt;
    &amp;lt;when&amp;gt;
      &amp;lt;date&amp;gt;
        &amp;lt;y&amp;gt;2013&amp;lt;/y&amp;gt;
        &amp;lt;m&amp;gt;05&amp;lt;/m&amp;gt;
        &amp;lt;d&amp;gt;25&amp;lt;/d&amp;gt;
      &amp;lt;/date&amp;gt;
      &amp;lt;time&amp;gt;
        &amp;lt;h&amp;gt;10&amp;lt;/h&amp;gt;
        &amp;lt;m&amp;gt;23&amp;lt;/m&amp;gt;
        &amp;lt;s&amp;gt;37&amp;lt;/s&amp;gt;
        &amp;lt;f&amp;gt;0&amp;lt;/f&amp;gt;
      &amp;lt;/time&amp;gt;
    &amp;lt;/when&amp;gt;
    &amp;lt;value&amp;gt;50&amp;lt;/value&amp;gt;
    &amp;lt;unit&amp;gt;
      &amp;lt;text&amp;gt;Beats per Minute&amp;lt;/text&amp;gt;
    &amp;lt;/unit&amp;gt;
  &amp;lt;/heartrate&amp;gt;
&amp;lt;/data-xml&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&amp;lt;/thing&amp;gt;&lt;br /&gt;
&amp;lt;/info&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But this xml is being rejected. My suspicion is the &amp;lt;heartrate&amp;gt; element which was a pure guess. Anybody know what this xml should look like? (Note this is not a vital sign but the independent heart rate measurement.&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>brianreinhold</author><pubDate>Sat, 25 May 2013 14:39:00 GMT</pubDate><guid isPermaLink="false">New Post: How to construct a 'thing' element for HeartRate 20130525023900P</guid></item><item><title>New Post: JaxB marshalling</title><link>http://healthvaultjavalib.codeplex.com/discussions/444640</link><description>&lt;div style="line-height: normal;"&gt;I try to use JaxB HealthVault SDK to upload CCD, code sample:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;ObjectFactory factory = new ObjectFactory();
DataXml dataXml = factory.createDataXml();

Thing thing = new Thing();
thing.setTypeId(thingType);
thing.setThingState(ThingState.ACTIVE);
thing.setData(jaxBElement);&lt;/code&gt;&lt;/pre&gt;

but get an error back:&lt;br /&gt;
&lt;blockquote&gt;
unable to marshal type &amp;quot;com.microsoft.hsg.thing.oxm.jaxb.thing.DataXml&amp;quot; as an element because it is missing an @XmlRootElement annotation&lt;br /&gt;
&lt;/blockquote&gt;
I tried to use JAXBElement as wrapper, but then I got this error:&lt;br /&gt;
&lt;blockquote&gt;
&amp;quot;javax.xml.bind&amp;quot; doesnt contain ObjectFactory.class or jaxb.index&lt;br /&gt;
&lt;/blockquote&gt;
What am I doing wrong?&lt;br /&gt;
&lt;/div&gt;</description><author>alextrs</author><pubDate>Wed, 22 May 2013 19:01:00 GMT</pubDate><guid isPermaLink="false">New Post: JaxB marshalling 20130522070100P</guid></item><item><title>New Post: Certificate validation failure in production</title><link>http://healthvaultjavalib.codeplex.com/discussions/440855</link><description>&lt;div style="line-height: normal;"&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
Yes, the SSL certificates were misconfigured at HV for a while.  The issue has been resolved.&lt;br /&gt;
&lt;br /&gt;
--Rob&lt;br /&gt;
&lt;/div&gt;</description><author>robmay</author><pubDate>Mon, 06 May 2013 17:05:03 GMT</pubDate><guid isPermaLink="false">New Post: Certificate validation failure in production 20130506050503P</guid></item><item><title>New Post: Certificate validation failure in production</title><link>http://healthvaultjavalib.codeplex.com/discussions/440855</link><description>&lt;div style="line-height: normal;"&gt;Hey Ali,&lt;br /&gt;
&lt;br /&gt;
I have been seeing the same issue the past few days when trying to perform drop-offs.  The issue is intermittent.  Sometimes I get the same exception as you noted above:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Other times I'll see this one:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I assume the root cause is the same.  I have retries built in.  Sometimes the same request will go through fine on the 2nd or 3rd retry, sometimes not.&lt;br /&gt;
&lt;br /&gt;
I came across this post from 2006 &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/c36663e3-726b-4ccd-a0fe-9a1f0fd0fe38/" rel="nofollow"&gt;http://social.msdn.microsoft.com/Forums/en-US/adcenterdev/thread/c36663e3-726b-4ccd-a0fe-9a1f0fd0fe38/&lt;/a&gt; which recommends manually importing the SSL certificate using keytool.  I have done this on a test system and it appears to resolve the issue.  But I am not 100% sure as the issue is intermittent for me.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
BJ&lt;br /&gt;
&lt;/div&gt;</description><author>xadhatter</author><pubDate>Wed, 24 Apr 2013 15:30:33 GMT</pubDate><guid isPermaLink="false">New Post: Certificate validation failure in production 20130424033033P</guid></item><item><title>New Post: Certificate validation failure in production</title><link>http://healthvaultjavalib.codeplex.com/discussions/440855</link><description>&lt;div style="line-height: normal;"&gt;Hi.&lt;br /&gt;
&lt;br /&gt;
Does anyone know if there has been a recent change in the platform.healthvault.com certificate? Recently my application is failing when it wants to sync its data with HealthVault and I get &lt;br /&gt;
&lt;br /&gt;
sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed&lt;br /&gt;
&lt;br /&gt;
Many thanks,&lt;br /&gt;
Ali.&lt;br /&gt;
&lt;/div&gt;</description><author>naddaf</author><pubDate>Fri, 19 Apr 2013 04:01:37 GMT</pubDate><guid isPermaLink="false">New Post: Certificate validation failure in production 20130419040137A</guid></item><item><title>New Post: Custom Data Type</title><link>http://healthvaultjavalib.codeplex.com/discussions/438112</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I'd like to know how to create a wrapper for the custom data type in the Java SDK. There is a pointer for this in the.NET sdk - &lt;a href="http://msdn.microsoft.com/en-us/library/ff803581.aspx" rel="nofollow"&gt;http://msdn.microsoft.com/en-us/library/ff803581.aspx&lt;/a&gt;. I'm new to the Java SDK and would like a heads up for this. &lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;/div&gt;</description><author>marauder89</author><pubDate>Wed, 27 Mar 2013 04:06:33 GMT</pubDate><guid isPermaLink="false">New Post: Custom Data Type 20130327040633A</guid></item></channel></rss>