Dehydration can cause similar effects to a hangover - if you're running even a low fever it's easy to lose fluids, especially if you drink coffee or other duiretics.
As for rehab, I have no experience to share but I think talking about it with the rehab staff is a good thing to do before you make any decisions Tynesider
Congrats on 21 days and hope you feel better soon
D