Hi Beeper and welcome to Healing Well. I hope you will hang out with us here, we really have a great group of caring people here.
To answer your questions, yes, your dr can legally end the patient/dr relationship as he did. Every pain dr I have ever been a patient of had all patients sign a Contract that had the do's and the don't listed. If you did a don't the patient was immediately dismissed from care.
Unfortunately, this is going to make it difficult for you to get under the care of a new dr. Once they obtain your records from the dr most likely you run a fair chance of being dismissed by number 2.
These pain drs are watched by the DEA so closely because of the medications they are scripting. When a patient fails a urine test or starts obtaining medication from other drs too, it is grounds for immediate dismissal by the dr.
You have the choice it looks like of trying to get a new pain dr before your meds run out, or get in a detox center. I wish I could give you better anwswers. Susie