HMBS and autoimmune pancreatitis: Acute intermittent porphyria (AIP) is an autosomal hereditary disease caused by dominant negative mutation in the porphobilinogen deaminase (PBGD) gene and resulting accumulation of potentially neurotoxic porphyrin precursors of heme biosynthesis.