A total of 2449 children ( mean age , 4.7 years ; range , 2 weeks to 17 years ) mechanically ventilated for acute respiratory failure were enrolled in 2009-2013 and followed up until 72 hours after opioids were discontinued , 28 days , or hospital discharge .