Testing is most appropriate in patients who are on mechanical ventilation, but the diagnostic strategy is less clear in patients not intubated.