Acute respiratory distress syndrome and nosocomial pneumonia