A 47-year-old man presents with severe epigastric pain radiating to the back, vomiting and raised serum amylase and lipase consistent with acute pancreatitis. Ultrasound shows gallstones. He is haemodynamically stable without organ failure. Which of the following is recommended in the initial management?