MAE SAI, Thailand — Eight boys rescued from Tham Luang Cave are happy and in good condition but remain in quarantine and will stay hospitalized for a week because of the risk of rare infections, doctors said Tuesday.

Doctors were conducting a battery of tests on the boys, and X-rays showed that two might have pneumonia. All of them were being treated with antibiotics and received vaccinations, including for tetanus and rabies, said Thailand’s permanent secretary for public health, Jesada Chokedamrongsuk.

“This morning, all eight are in good health, with no fever and in a good mood,” Dr. Jesada said. “They miss their home and they are happy.”

Medical specialists who are not involved in treating the boys said that while the risk of serious infection is low, they could face other short- or long-term complications, including post-traumatic stress disorder.