healthvault eventing: subscription to 'application access granted/revoked' events ?
-
Monday, March 26, 2012 5:37 PM
Documentation states:
"There are several different types of events that can occur within the HealthVault platform.
For example, when a user grants or revokes an applications access to their record,
or when a new thing is added to a user's record."I only see HealthRecordItemChangedSubscription class that must be corresponding to the latter.
What about cases "when a user grants or revokes an applications access to their record"?
Is it the same HealthRecordItemChangedSubscription class? If it is, what would be typeID supplied to the corresponding HealthRecordItemChangedFilter in this case?Thanks in advance.
All Replies
-
Monday, March 26, 2012 5:57 PMLooks like it's the same HealthRecordItemChangedSubscription class and possibly this type: GroupMembershipActivity.
-
Monday, March 26, 2012 9:32 PM
Hi,
The HealthRecordItemChangedSubscription Class is used as part of the eventing process. If a user is not authorized , either because they have yet to authorize your application or if they have revoked authorization, than you would not receive any notification and there is no notification that is currently sent out as part of the eventing process for authorization based actions.
Can you let me know what you are trying to accomplish so that I can better help you?
Thank you.
-Suzanne
-
Tuesday, March 27, 2012 1:39 AM
Hi Suzanne,
The goal is to get notified when new patients authorise an application in HealthVault and allow it to access their records.
So, as first step an email will be send to newly registered users with their secret
question, and Identity token.Once they go through the process and authorize the app in the HealthVault portal, I thought it is possible to get notified through the subscription process, is it not?
I noticed that there is Group Membership Activity subsection with similar information available in the Health Information/Custom Data section of the HealthVault portal and I thought it might be it.
MSDN seems to be clear that one of the events is "when a user grants or revokes an applications access to their record" (http://msdn.microsoft.com/en-us/library/gg681193.aspx ).
So is there a way to get notified when user grants or revokes access rights to the application? And if there is, how?
Thanks in advance.
- Edited by _me__ Tuesday, March 27, 2012 1:46 AM
-
Friday, March 30, 2012 5:09 PMOwner
The HealthVault Eventing article states:
Event Type
There are several different types of events that can occur within the HealthVault
platform. For example, when a user grants or revokes an application's access to
their record, or when a new thing is added to a user's record.
The platform currently supports the Record Thing Change event type, which
corresponds to any change to a thing in a user's record: create, update,
delete.Please notice the last sentence. The HealthVault Eventing system currently supports Record Thing Change events but not application authorization events.
It sound like you're using the Patient Connect interfaces to initiate authorization with the user. In this case, you can determine successful authorizations to your app using GetValidatedConnections and polling.
Hope that helps!
- Edited by Ali EmamiMicrosoft Employee, Owner Friday, March 30, 2012 5:11 PM
- Proposed As Answer by Ali EmamiMicrosoft Employee, Owner Saturday, March 31, 2012 1:25 AM
-
Saturday, March 31, 2012 1:19 AM
Thanks for the confirmation! It does help.
- Proposed As Answer by Ali EmamiMicrosoft Employee, Owner Saturday, March 31, 2012 1:24 AM
- Unproposed As Answer by Ali EmamiMicrosoft Employee, Owner Saturday, March 31, 2012 1:25 AM

