In seven thoracic surgery departments , 360 COPD patients undergoing lung resection surgery were randomly assigned to two groups : conventional postoperative treatment without ( n = 179 ) or with ( n = 181 ) prophylactic NIV , applied intermittently during 6 h per day for 48 h following surgery .