A 46-year-old man presents with severe epigastric pain radiating to the back, associated with vomiting and worse when lying flat. He drinks 30 units of alcohol per week. Serum amylase is three times the upper limit of normal. What is the most important initial management?