Question on HealthVault Event notification

Answered Question on HealthVault Event notification

  • Saturday, December 22, 2012 6:26 PM
     
     

    How does HealthVault choose the PersonId/RecordId to send with the payload of the event notification?  I assume it is not just chosen randomly.

    For ex: what happens if a user (personid A) who has still not authorized the app does a change to a record which is authorized for the app thru a different person (personid B).  Which personid/recordidi is sent?  Can it be assumed that the person / recordid combination can be used directly to query for the record item? (Say what if the optional offline permssion on the source item for notification is not provided by the Person B - This would result in an update notification being misinterpreted as a delete notification by the notification handler - since if there is no item permission HV wont return the item. 

    Any insight into the above would be really appreciated.

    -Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com

All Replies

  • Tuesday, February 05, 2013 12:10 AM
     
     
    Hi Rajesh,

    We filter notifications for the person-record pair based on the auth they accepted during app-auth.  In your example, person B's id will be sent.  And yes, the combination can be used directly to query for the record item.  If two people are sharing the same record and they have both authorized the app, then two notifications will be sent.  I'm not quite sure if I understand your second part of the question correctly, but if Person B didn't provide offline permission on the source item, no notification will be sent.

    - Jenny
  • Wednesday, February 06, 2013 9:51 AM
     
     

    Thanks for the Response... 

    Part 2 of my question is based on the 2 user authorizing the same record scenario.  Assume that Person 1 has given full access and Person 2 has only given access to Blood glucose data type to application  (assume for now that application supports optional auth.

    When a glucose value is updated in HV,  we will get 2 notifications (since you mentioned that is how the behavior is)

    When a BP value is updated, will HV ensure that only ONE notification should be sent  (corresponding to the one that has access to that data type). 

    -Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com

  • Friday, February 08, 2013 7:08 PM
     
     Answered
    Yes, If a BP value is updated and Person 2 hasn't given the access of BP to application, only one notification will be sent to Person 1.