what constitutes an emergency