A hospital is a health care center that provides general or specialized treatment for patients…