Hospitals across the city struggled to treat patients in the face of the transit strike and used every trick in the book to keep running – from renting their own buses to letting staffers sleep in unused hospital beds.

“The majority of our employees were here – and they made some extraordinary efforts to get here,” said Ron Najman, spokesman for SUNY Downstate Medical Center in Brooklyn.

The hospital had an alert on its Web site with details on how to get into – including where to hop buses chartered as rides for the staff.

“Not everyone got in at the normal hour, but just about everyone got in,” said Najman. “It was almost a normal day for us.”

At NYU Medical Center in Manhattan, the hospital’s 11,000 staff members managed to keep it running normally – even if they had to wind up sleeping on cots or in beds that weren’t being used by patients.

“We had a carpool board that was extremely active all day,” added spokeswoman Pam McDonnell. “And we made arrangements for staff to stay. We are fully staffed and, did a full schedule of [previously scheduled operations] this morning.”

At New York Presbyterian Hospital’s two locations, things also went smoothly.

They even had more than a dozen babies delivered between their 165th Street and 61st Street locations.

“We did remarkable well, we didn’t have to cancel elective surgeries,” a spokesman said.