HMBS and autoimmune pancreatitis: AIP, which is caused by a deficiency in the enzymatic activity of hydroxymethylbilane synthase (HMBS), is characterized by acute attacks, typically consisting of severe abdominal pain, nausea, constipation, confusion and seizure.