Trajectories of Disease Accumulation Using Electronic Health Records