what are the major types of hospitals and how do they differ?