Patients have been urged to only attend A&E if their condition is life-threatening or serious.