Determinants of outcomes in pancreatic surgery and use of hospital resources