Had doctors and nurses not treated the victims immediately, those who were shot might not have lived.

By Saturday, two victims — those with the brain and liver injuries — remained in critical condition, while the rest had been stabilized. The victim with the liver wound was taken to Mount Sinai Hospital in Manhattan for specialized surgery. The victim with the head wound was expected to remain at Bronx-Lebanon.

Dr. Tam, 32, who the police said lived in Jamaica, Queens, appeared from online records to also have worked at a family medical center on Fulton Avenue in the Bronx. Errol Schneer, a hospital vice president, said that Friday had been Dr. Tam’s day off and that she was covering someone else’s shift when she was shot. He also said she was not the intended victim. ”She was not the target,” he said via text message.

Some hospital workers, still working furiously to aid the wounded, had hardly slept since the shooting. Dr. Chilimuri allowed himself a two-hour break, during which he lay down and thought about all that had happened. Calls poured into the hospital from overseas, with families wanting to make sure that doctors and nurses — many of them immigrants — were safe.

The shooting had torn through a close-knit staff on a routine afternoon. On the third floor, where Ana Nuñez had been waiting to undergo a surgical procedure, some patients were under anesthesia and unconscious. They stayed that way through the attack.

Image

“There were people under anesthesia that are still asleep in there,” Ms. Nuñez, 49, said in Spanish, as she left the hospital on Friday with her husband. She recalled an alarm sounding and nurses closing the door to her room and saying, “Don’t open it! Don’t open it!” When she was finally allowed to leave, all that was on her feet were hospital-issued socks.