“We didn’t wait for the U.K. and U.S. governments to lock down because we could see what was coming from the advice we were getting from our Singaporean counterparts,” Mr. Neville said.

Mr. Neville said that at the request of the health care workers, rooms are not being cleaned on a daily basis, and those inside the hotel are following social distancing rules. The rooms will remain dedicated to N.H.S. staff for as long as necessary, Mr. Neville said.

“Medical professionals need to be able to stay away from their families,” he said. “There is no choice for them and there is no choice for us. We have to do this for them. We want to do it.”

Social distancing at hotels

At the Sophy Hyde Park, a hotel in Chicago that opened the majority of its rooms to University of Chicago Medical Center staff since March 27, contactless interactions between hotel staff and the health care workers checking in have become routine. Its rooms are open to the hospital’s employees until mid-April, at which point it will begin charging a discounted rate.

“Our staff is across from the front desk, the keys are premade and in the credenza eight feet away from the front,” said Anthony Beach, the hotel’s general manager. “There’s a key-sanitizing station. There’s no handing over of credit cards or anything of that nature, so they can get their keys and go directly to their rooms.”

In New York City, on the night of April 2, the Four Seasons on East 57th Street opened 225 rooms for medical personnel. A hundred rooms were filled three days later. Social-distancing measures begin before people enter the building, with street markers set six feet apart to mark the entryway and help curb the flow of people entering the building at any given moment.

“A single point of entry and screening station has been designated for both guests and employees,” said Bryan Barbieri, a spokesman for the hotel. “Each person will go through a screening process, one at a time, which includes a temperature check and answering a series of questions.”