Many years ago when I didn't realise that downing 1G of Codeine + 16G of Ibuprofen (good old Nurofen Plus) was an addiction/problem I went into hospital when WDing from it. Mainly due to the WD symptoms of insane stomach cramps and bit of blood in the vomit (from a bleeding ulcer).
They treated me compassionately and with respect in the A&E (I'm in the UK) and seemed to understand what was going on.
They gave me Morphine for the pain and sent me up to the gastro ward to investigate the blood/ulcer.
Up there it was a completely different story. Mostly due to ignorance. The nurses didn't really know much about Codeine and didn't even know you could buy an (admittedly weak) opiate OTC.
The doctors knew about it more and had heard of people getting addicted to it but had never seen a patient with it themselves.
But they did say "this could be why we're seeing people with really bad ulcers and signs of coeliac disease but all the tests come back negative and they have no other symptoms or medical history to suggest a cause of it" so I do think it's a bigger problem that goes hidden in many ways.
Fast forward through that they were judgmental and treated me like a stereotypical addict in the gastro ward.
Got accused of wasting NHS time and money (I was 21 at the time so this just made me more closed to them) and scoffed at me when I asked "if I have a problem with addiction is there anything we can do to help me treat the underlying addiction?".
But back on the way out I popped into the hospital pharmacy to collect my precious N+. The doctor that treated me in A&E saw me and asked me to go with him instead of putting that junk inside me. He took me to a room and explained all about addiction and what he sees with it and how it's affected his life personally. Gave me info leaflets and advice on looking into NA and wrote a referral letter to my GP to advise them of what's been happening.
He then did 2 things which *almost* got me clean for good. He wrote out a script for a huge dose of Dihydrocodeine and wrote out on a little chart how many I should take and when. At first it matched my current dose (a bit under 1g a day in one go) and went down from there. I realise now he actually wrote me a tapering scheme! He said it would mean I wasn't killing myself with ibuprofen and allow the stomach to heal. All in all it was about 1 months worth of tapering down and he also gave me 52 x 300 Pregabalin/Lyrica tablets as well. He said to take one of those twice a day once I made the final jump off the Dihydrocodeine.
This actually worked. Getting in touch with the GP referral he made gave me support + the codeine tablets and the Lyrica to starve off any WDs actually got me clean for 6 months.
I was clean so didn't feel the need to continue with therapy anymore and it wasn't long after that I went back out there.
So yeah, 6 months of my life of normal was thanks to going into A&E due to the symptoms of WD. I will ever be thankful to the doctors and nurses in Southampton General A&E a bunch of smart people.
Nowadays I have my addiction listed on my iphone healthID with the link to the comparison charts (that say 1g of Codeine is ~150mg of morphine dose) as most medical staff can relate to that (namely...wow that's a lot in one go we normally start with 10mg 20 max!) and that's always worked when I've gone in unconscious or when talking to them educating them on my issues
So go in. Be honest. Be polite and ask for compassion and you may just receive it. It doesn't hurt to try!
Although; why weary about rehab? They've helped many of us on here and will definitely know more about you and your situation and should provide more help with the WDs with the aim of keeping you clean long term rather than just getting through the WDs than an Emergency room visit ever will.