Text this: Machine learning for the improvement of patient flow