Building a connected medical history for patients, with clear choices about research participation and opportunities for compensation.