A new tool could help emergency doctors diagnose patients with a higher risk of dying from COPD, a study says.