Hospital management system is a computer system that helps manage the information related to health…