Neither Lupus or SJS can give you Hepatitis B but I can see why you would question whether he got it in the hospital since he has open sores.
I really doubt it because hepatitis B has an incubation period of 45 to 160 days, average about 120 days and I doubt that your husband has been in there that long.