The man who's accused of shooting up a Hudson Valley hospital and later at police officers was caught days later after he jumped into toxic water.

Joshua Stuart fled to Brooklyn following the alleged shootings. He was found behind a supermarket and plunged into the toxic Gowanus Canal. He needed a tetanus shot prior a court appearance on Tuesday and even showed up in a hazmat suit, the New York Post reports. 

On Friday, the 42-year-old allegedly pulled out a gun at Ellenville Regional Hospital after an employee refused to give him pain meds. He then opened fire and fled after stealing 17 vials of Demerol, a drug that comes with a high risk for addiction, according to court documents.

He later fired at cops in the Ellenville area who tried to stop him after fleeing the hospital in his truck and ran into the woods, police say. No one was injured.

He's accused of stealing a Honda in the Hudson Valley and fleeing the area.

He was spotted over the weekend in Brooklyn and on Monday allegedly robbed someone inside a Brooklyn store. 

“Mr. Stuart is a longtime and heavy user of heroin, and I gather is about to start going into withdrawal,'” his lawyer Michael Padden told the court, according to the New York Post.

Spot a typo? Let us know.