Variation in treatment and outcomes of patients in hospital with acute myocardial infarction