In exploratory analyses , intervention patients had fewer days of opioid administration ( median , 9 [ IQR , 5-15 ] days vs 10 [ IQR , 4-21 ] days ; P = .01 ) , were exposed to fewer sedative classes ( median , 2 [ IQR , 2-3 ] classes vs 3 [ IQR , 2-4 ] classes ; P < .001 ) , and were more often awake and calm while intubated ( median , 86 % [ IQR , 67 % -100 % ] of days vs 75 % [ IQR , 50 % -100 % ] of days ; P = .004 ) than control patients , respectively ; however , intervention patients had more days with any report of a pain score 4 ( median , 50 % [ IQR , 27 % -67 % ] of days vs 23 % [ IQR , 0 % -46 % ] of days ; P < .001 ) and any report of agitation ( median , 60 % [ IQR , 33 % -80 % ] vs 40 % [ IQR , 13 % -67 % ] ; P = .003 ) , respectively .