Hospitalization data is collected through various means, including electronic health records (EHRs), administrative databases, and patient surveys. Healthcare providers document patient information during hospital visits, which is then aggregated into larger databases. These databases are often managed by governmental health agencies, hospitals, or research institutions.