Acute intermittent porphyria (AIP, MIM # 176000) is an autosomal dominant inheritance disease caused by the gene mutation of hydroxymethylbilane synthase (HMBS, also known as porphobilinogen deaminase). Here, HMBS is linked to autoimmune pancreatitis.