Doctors detect pancreatitis through a physical exam, blood tests, and imaging tests. The physical exam may reveal abdominal pain, tenderness, or swelling. Blood tests can measure levels of pancreatic enzymes and other substances, which can indicate inflammation of the pancreas. Imaging tests like ultrasound, MRI, or CT scans can also help diagnose pancreatitis, as they can identify the size and shape of the pancreas, as well as any changes that may indicate inflammation or injury. Pancreatic biopsy, which involves examining a sample of the pancreas tissue, may also be necessary in some cases.