How is chronic pancreatitis diagnosed in children?