Predischarge assessment of prognosis after myocardial infarction