Joint external evaluation scores and communicable disease deaths: an ecological study on the difference between epidemics and pandemics