Pain doc gets 10 years in prison