There seems a compromise possible on the "with patient consent" bit. Maybe by default researchers could have some sort of anonymized data and patients can opt out if they want no data sharing or in if they don't mind researchers seeing it all.
Personally I don't mind Google or similar seeing my not very interesting data.