Student graduates from hospital bed