New advice for doctors could prevent almost 3000 heart attacks being missed each year, Edinburgh researchers say.