Addressing methodological and logistical challenges of using electronic health record (EHR) data for research Article in Journal of the American Medical Informatics Association (June 2024)