HMBS and autoimmune pancreatitis: Acute intermittent porphyria (AIP, MIM # 176000) is an autosomal dominant disorder caused by a deficiency of hydroxymethylbilane synthase (HMBS; EC 2.5.1.61), which catalyzes the third step of haem biosynthesis.