HMBS and autoimmune pancreatitis: Acute intermittent porphyria (AIP) is caused by mutations in the gene encoding hydroxymethylbilane synthase (HMBS), a key enzyme in the heme biosynthesis pathway.