Public, nonprofit, and for-profit hospitals provide emergency, surgical, and inpatient care, paid by governments, insurers, and patients.