The majority of patients in the study thought it was important to conduct medical research using de-identified electronic health records. Support for academic medical centers or community hospitals seeking to improve quality was high, but fewer people were comfortable with insurance companies or drug companies using their data, as well as hospitals using their data for marketing purposes.