The primary outcome was the proportion of patients intubated at day 28 ; secondary outcomes included all-cause mortality in the intensive care unit and at 90 days and the number of ventilator-free days at day 28 .