Large-scale assessment of missed opportunity risks in a complex hospital setting