Acute intermittent porphyria (AIP) is a rare inherited metabolic disorder caused by decreased activity of the enzyme porphobilinogen deaminase in the heme synthesis pathway. The gene discussed is HMBS; the disease is autoimmune pancreatitis.