Function has been created for Hospital management