Strict infection control has been put in place at the Hawke's Bay Hospital after a norovirus outbreak.
Seven patients and 30 hospital staff are thought to have the highly contagious vomiting and diarrhoea bug.
Control measures were in place in some of the hospital wards to prevent the spread of the bug.
Chief Medical and Dental Officer John Gommans said norovirus was circulating in the community and infected patients had been admitted to hospital, affecting some hospital staff.
Dr Gommans said hospital visitors were reminded that they should stay away from visiting family or friends in hospital if they are sick.
"If you are unwell with vomiting and diarrhoea or have been around people who have been unwell - please do not visit the hospital for at least 48 hours."
Visitors would also find that some wards were closed to new admissions, and visiting would be restricted and only allowed in exceptional circumstances to some areas of the hospital.
"The infection control measure we have put in place should contain any spread through the hospital, but as it is highly contagious we are being very vigilant, and will isolate other areas of the hospital to visitors if we have to," Dr Gommans said.
Medical Officer of Health Nick Jones said it was likely the bug was circulating in the community.
"To help prevent the spread of the virus it was very important for anyone with nausea, vomiting, diarrhoea, stomach cramps to stay away from work for 48 hours after symptoms disappear.