Machine Learning For Healthcare: Model Development And Implementation In Longitudinal Settings