The families of New Jersey patients murdered by a serial killer nurse have settled a lawsuit with the hospitals where he worked, an attorney representing two of the families said Tuesday.

The confidential settlement with five hospitals where Charles Cullen worked was reached Friday after court-ordered mediation between the sides, attorney Michael Barrett said.

The lawsuit was filed in New Jersey Superior Court more than four years ago.

Cullen, who told investigators he might have killed as many as 40 patients in New Jersey and Pennsylvania, pleaded guilty to killing 29 people and attempting to kill six others.

He admitted using lethal doses of medications — usually the heart medication digoxin — to kill patients. When he was arrested in 2003, Cullen described the slayings as mercy killings.

Cullen, 47, was sentenced to 18 life prison terms.

"It's a good thing for the families," Barrett said of the settlement.

He represents the families of the Very Rev. Florian J. Gall, a 68-year-old Roman Catholic pastor, and Michael T. Strenko, 21, both of whom died in 2003 at Somerset Medical Center.

For the families, he said, the past four years of litigation have been "a constant reminder of their loss."

"With the settlement of the civil case, our hope is that it'll provide them with some sense of closure and that they can move on with their lives," he said.

Barrett said four New Jersey hospitals were part of the settlement: St. Barnabas Medical Center in Livingston, Warren Hospital in Phillipsburg, Hunterdon Medical Center in Flemington and Somerset Medical Center.

St. Luke's Hospital of Bethlehem, Pa., was also involved in the settlement. A judge ruled last year that it could be sued for failing to warn Somerset Medical Center not to hire Cullen, who left St. Luke's in September 2002 after the hospital conducted an investigation into mishandling of medications and told him he could resign or be fired.

Somerset Medical Center released a statement Tuesday expressing hope that the settlement would bring closure to the victims' families.

Hunterdon Healthcare System spokeswoman Kathleen Seeling confirmed the settlement and said the hospital was "relieved" it was to the families' satisfaction.

Susan Schantz, a spokeswoman for St. Luke's Hospital and Health Network, said Cullen's actions epitomized "the ultimate betrayal of the sacred trust between nurses and patients," but emphasized that the settlement was not an admission of any wrongdoing by the hospital.

The other hospitals involved did not immediately return messages left for comment.