HMBS and autoimmune pancreatitis: AIP is a rare autosomal dominant genetic disease caused by a deficiency of the third enzyme in heme biosynthesis, hydroxymethylbilane synthase (HMBS), leading to the accumulation of the porphyrin precursors delta-aminolevulinic acid (ALA), and porphobilinogen (PBG).