Patients forced to sit in ambulance as emergency department was full