A unified approach for modeling longitudinal and failure time data, with application in medical monitoring.