Being in the NYC area, and a former NYPD cop, and AEMT, I have never, ever ever heard of a doc sending a patient to detox to get them off a legitimate pill dosage unless the patient was abusing the perscription. Additionally, the AMA norm is to wean them off.
My wife has sciatic issue and has been on perscription pain killers (percocet) as needed for 2 years. Sometimes she takes one every day for a few days to deal with it...sometimes she goes a month without a single pill. No dependency issues.
There is a lot more to the story than you are saying. There are three choices if you were dependant:
1) Cold turkey = getting sick
2) Weaning under doctors supervision = dosage SLOWLY lowered over time (aka 4+ weeks) which results in little to no sickness
3) Detox- where you go cold turkey, are given synthetics to mimic the drug, and attend NA and therapy
People and insurance companies don't pay for #3 unless it is needed. Plus it is the most time consuming and demanding. Its just not a logical choice.
The NYPD will flag you in the psych for such and will want all the records. Expect a bumpy road ahead.
-In God we trust. All others, put your hands on the car and don't move.