Electronic health record management system for hospitals