Hospital emergency rooms are facing their own epidemic: Long waits. Patients spending hours or days on beds in ER hallways. Shortages of specialists willing to see emergency patients. The cause is too many patients and not enough ER capacity, but some hospitals are finding ways to make their emergency rooms more efficient while maintaining safety.