Clinical characteristics and durations of hospitalized patients with COVID-19 in Beijing: a retrospective cohort study