Before discharging a patient, a hospital shall assess the patient's ability for self-care after discharge and provide the patient with the opportunity to designate a caregiver who agrees to provide aftercare for the patient in a private residence after discharge.