HMBS and autoimmune pancreatitis: Background: Acute intermittent porphyria (AIP; OMIM#176000) is a genetic disorder that is caused by mutations in the hydroxymethylbilane synthetase (HMBS) gene.