More than likely, the friend has been diagnosed with a failing liver, kidneys, or both. Unfortunately, this has claimed many, many lives. While the human body is able to bounce back in amazing ways, there is never a way to tell if it will or not.
The doctor may give the best clues as to whether there is any glimmer of hope or not. If they suggest rehab, then they must feel there is a chance for recovery of the damage from drinking. The alcoholic may still deny there is a problem so it may be time for intervention. Your doctor may be able to help. Getting your friend into a holistic rehab which treats mind, body and spirit may just be what it takes to help the body heal and recover.

Liver and/or kidney failure are both painful. Loved ones suffer right along with the alcoholic. If the doctor has recommended hospice or something similar, chances are not good that they can survive at all. If this is the case, all you can do is be there to support them. Sometimes it is just too late to save them. This is not the time to heap guilt on your friend or loved one. It is a time to offer emotional, physical and spiritual help if they request it. Do what you can to make your friend comfortable but do not neglect your own needs along the way.
If death is imminent, the doctor will probably prescribe some very strong painkillers such as morphine. This only happens in the end stages of liver and kidney disease though. By this time, the patient is usually bed-ridden and not able to get hold of any alcohol anyway. However, if there is the slimmest of chances that a friend could recover, it is worth taking that shot. Get them into rehab. Given the chance, the body often heals itself. Of course, there are no guarantees, but even a slim chance is still a chance. You should do what you can do given the circumstances of your friend.
If there is hope, persuade them to go for it. If there is no hope, be there for them as much as possible.
Better a living dog than a dead lion.