Computers facilitate the collection of data through Electronic Health Records (EHRs) and online surveys. EHRs enable the automatic capture of patient data from various healthcare providers, ensuring comprehensive and accurate datasets. Online surveys allow for real-time data input and reduce the need for manual data entry, which can be error-prone.