A hospital provides both short-term and long-term medical care through diagnostic, therapeutic, and rehabilitative services for people suffering from illness or injury. It offers both inpatient and outpatient care, with the most common type being the general hospital that has an emergency department to treat urgent medical needs like injuries from accidents or fires.