Acute intermittent porphyria (AIP) is an autosomal-dominant condition resulting from a partial deficiency of the ubiquitously expressed enzyme porphobilinogen deaminase. The gene discussed is HMBS; the disease is autoimmune pancreatitis.