Using heterogeneous, longitudinal EHR data for risk assessment and early detection of cardiovascular disease