Relating patient characteristics at the time of admission to outcomes of hospitalization