In VA hospitals it was not uncommon to give a patient N beers per day to match their typical consumption to avoid them going into alcohol withdrawal during their stay.
For example, if you're a smoker I guess they give you nicotine patches or something.