The Providence Police Department in Rhode Island are mourning the loss of an officer who died on Thursday, Oct. 31, after a very public five-year battle with Stage IV liver cancer.

Fifty-one-year-old Sgt. Edmond “Eddie” Malloy, who built a legacy as a standout 30-year Providence police officer, left behind his wife, two children and many friends, WPRI reported.

Malloy first realized his health was in jeopardy in October 2014 when he was working as part of the motorcade that was escorting then-President Barack Obama from Warwick to Providence, WPRI reported.

He was on his police motorcycle when he felt a stabbing pain in the side of his abdomen. But he still completed his assignment and was later rushed to the hospital where he learned his liver had ruptured.

The veteran was diagnosed with late-stage liver cancer, which has a survival rate of about one year. The disease had also spread to his lungs.

Despite undergoing more than 100 chemo and radiation treatments, over five years, the Malloy continued to work for the Providence Police Department and as a member of the FBI joint terrorism task force. He was so committed to the work that he stayed up all night to supervise a SWAT team sniper post during a hostage situation only hours after chemo, the Providence Journal reported.

According to Rhode Island Hospital chemotherapy nurse Jennifer Renaud, Malloy was the most positive patient she has ever encountered during her 15 years on the job.

He was also heavily involved in the Lifespan Cancer Institute’s annual run, which is now known as the “Malloy Strong Fund.”

Malloy died Thursday evening at Rhode Island Hospital where he was surrounded by his friends, family members, and fellow law enforcement officers, the Providence Journal reported.

Just hours earlier, the PPD promoted him to the rank of sergeant in his hospital bed, according to WPRI.

His son followed in his footsteps and is a current member of the department.