HMBS and autoimmune pancreatitis: Background: Acute intermittent porphyria (AIP) is caused by the haploinsufficiency of porphobilinogen deaminase (PBGD) enzymatic activity.