Abdominal ultrasonography should be done if gallstone pancreatitis is suspected (and another cause is not obvious) to detect gallstones or dilation of the common bile duct, which indicates biliary tract obstruction.