A Philadelphia police officer returned to work Monday almost three years after being shot. 

Officer Edward Davies was nearly killed during a violent struggle in a convenience store in August 2013.

According to NBC 10, Davies was shot in the abdomen, which severed an artery and punctured a kidney. Doctors removed his kidney and he spent more than a month in a medically-induced coma. 

RELATED: Officer Edward Davies remains hospitalized in critical condition

Police said that Davies and Eric Torres struggled over a stolen gun. The confrontation turned violent when Torres, who had just fled a traffic stop, fired the gun and hit Davies below his bullet-proof vest, NBC 10 reported.

According to Philly.com, Torres was charged with aggravated assault and attempted murder. He was held without bail before being sentenced to 66 to 132 years in prison in July 2015 by Common Pleas Court Judge Charles Ehrlich. The judge called the sentencing appropriate for a "career criminal." 

During the trial, Ehrlich went over Torres' history of arrests since he came to Philadelphia in 2004 from Puerto Rico and noted that he was on probation at the time of the Aug. 13 shooting for assaulting another police officer.

RELATED: Injured officer Edward Davies' family releases thank-you statement 

Davies, a six-year police veteran and married father of four, was assigned to the 25th District. He returns as a member of the Advanced Training Unit at the Police Academy, a department spokesperson told NBC 10.

The Philadelphia Police Department posted a message on their Facebook page welcoming Davies back. The post said "Welcome back, Officer Davies - the department and the citizens of the great city of Philadelphia couldn't be happier to see you back in blue."