Can I write off my 32 year old son as a dependent?

my 32 year old son lived with us for the first 6 1/2 months of the year.  during that time he spent 3 months in a alcoholic rehab facility which i covered for ~ $64,000 .  can i write that off as a medical expense?  since he got out he did work the last quarter of the year.