Diagnosis and management of acute pancreatitis