A procedure known as a endoscopic retrograde cholangiopancreatography (ERCP) may be done to open the pancreatic duct if blocked. In those with gallstones the gallbladder is often also removed. In chronic pancreatitis, in addition to the above, temporary feeding through a nasogastric tube may be used to provide adequate nutrition.