Using electronic health records to predict costs and outcomes in stable coronary artery disease