Managing outpatient flow via an artificial intelligence enabled solution