Getting out of bed shortly after surgery may help decrease the risks of this complication.