Electronic health records (EHRs) have grown in use and functionality during the last ten years. Despite the fact that EHRs are primarily utilised for clinical purposes, epidemiologists have used them to undertake studies ranging from cross-sectional studies within a single hospital to longitudinal studies on geographically dispersed patients. There have been concurrent efforts to harness EHR data for research as the use of electronic health records (EHRs) for clinical care has increased significantly. Clinical epidemiology and comparative effectiveness studies, including analysis to identify patients at higher risk for problems or who are better candidates for therapy, are facilitated by EHR repositories. The requirement for quick turnaround during the COVID-19 global pandemic has increased the popularity of these types of studies in the field of infectious illnesses. This brief study examines the benefits and drawbacks of such networks, as well as some previous research in the realm of infectious diseases.