The precise mechanism of gallstone pancreatitis is unknown but likely involves increased pressure in the pancreatic duct caused by obstruction at the ampulla secondary to a stone or edema caused by the passage of a stone.