EHRs provide a comprehensive, longitudinal view of a patient's health history, making them a valuable resource for epidemiological research. They allow researchers to access large datasets that cover diverse populations and extended periods, facilitating the study of disease patterns, outcomes, and risk factors.