Beds have been closed at Mid Yorkshire Hospitals Trust by the winter vomiting bug norovirus.
Latest figures show 20 beds were closed at Pinderfields, Pontefract and Dewsbury hospitals during the weekend of December 12 after patients displayed symptoms of the highly-contagious bug.
Helen Hey, deputy chief nurse at Mid Yorkshire, said: “We had up to five beds closed across all sites for a maximum of one day over the last weekend.
“All patients with either non-confirmed or confirmed infections were contained and managed in single side rooms, meaning that our available bed base was unaffected due to infection.”
Mid Yorkshire has appealed for people only to go to A&E in a genuine emergency, and to seek help from GPs, pharmacists or NHS walk-in centres if they have non-urgent problems.
Help is also available from the non-emergency helpline NHS 111.
People are also advised not to visit relatives in hospital if they have symptoms like vomiting and diarrhoea.
People with norovirus are advised to drink plenty of water, to avoid dehydration and eat foods which are easy to digest.
They should stay at home and avoid visiting their GP to because the norovirus is contagious and doctors can to little to treat it while people have the bug.
NHS experts said people suffering from norovirus should contact their GP if symptoms lasted longer than a few days or if they already have a serious illness.
For NHS advice on norovirus log on to www.nhs.uk/conditions/Norovirus