Management of chronic pancreatitis