Text this: Prediction models using artificial intelligence and longitudinal data from electronic health records