A doctor from Fredericksburg has been sentenced to 10 years in prison for his role in a scheme to defraud Medicare.