Factors associated with readmission included age , marital status , chronic renal disease , prior malignancy , nursing home residence , congestive heart failure , use of oral corticosteroids , number of emergency department visits a year prior , prior admission , number of outpatient clinic visits in a year prior , and length of hospital stay .