chb / indivo_server

The Indivo™ Personally Controlled Health Record
http://indivohealth.org
GNU General Public License v3.0
103 stars 40 forks source link

Allow access to clinician's contact document #20

Open sgilroy opened 12 years ago

sgilroy commented 12 years ago

When a patient shares a record with a clinician (or any other account) it would be helpful if that patient could view the full name and other contact information for the clinician. This could potentially be accomplished by allowing a contact document to be designated as public (shared will everyone). More fine-grained sharing of selective elements of the contact document (such as exposing one's name but not one's phone number) might also be a useful feature in some scenarios. Another approach to selective sharing would be for a user to create a separate record (with a different, perhaps less complete, contact document) that is made public and is independent of the user's complete personal health record.

This feature request is motivated by the need for a patient to determine information about clinicians with whom his record is shared, such as full name and role.

The API call to get a list of shares will provide the account ID of each account that has full access

GET /records/{record_id}/shares/

Example result:

<Shares record="118bd088-6ad1-4bad-bd0b-eebdb19cc9a5">
  <Share id="91189810-3f01-4ffa-8695-25b54609d244" account="jking@records.media.mit.edu"/>
</Shares>

In my example, our sample patient, mbrooks3@records.media.mit.edu has shared his record with his doctor, jking@records.media.mit.edu. We want mbrooks3 to be able to see that he is sharing with jking, and be able to initiate communication with jking. As a workaround for now we have created a record for jking with a Contact document and shared this record back with mbrooks3. It doesn't really seem appropriate that a clinician would need to share his medical record with his patient.