Using medical data for the common good