Evaluating pancreatitis in primary care: a population-based cohort study