Risk factors for prognosis and secondary prevention of myocardial infarction