BISMARCK, N.D. (AP) – A former pharmacy worker who pleaded guilty to stealing thousands of painkillers from an American Indian hospital in North Dakota has been sentenced to three years of supervised release and 50 hours of community service.

Timothy Davis Jr., 28, on Tuesday also was given credit for the one day he spent in custody, U.S. Attorney Timothy Purdon said. Davis will spend six months in a Mandan halfway house and then be on home confinement for a year with electronic monitoring for six months. He also will have to pay nearly $5,800 in restitution.

Davis was accused of manipulating inventory while working at the Quentin N. Burdick Memorial Hospital in Belcourt. Authorities said nearly 50,000 hydrocodone pills were reported missing between May 2009 and June 2010.

The case was the basis of a congressional investigation into regional Indian Health Service facilities that was spearheaded by former U.S. Sen. Byron Dorgan, D-N.D.

Three others were accused of selling the pills from the hospital for profit. Davis’ wife, Candace Keplin, was sentenced in May to probation and restitution. John Allery is to be sentenced on Aug. 25 in federal court in Bismarck. Jordan Delong is to be sentenced four days later in Minot. All three had also pleaded guilty.

“The investigation and prosecution of this case should send a strong message to those in the healthcare community that diversion of prescription drugs is drug dealing, plain and simple,” Purdon said in a statement.