HMBS and autoimmune pancreatitis: Acute intermittent porphyria (AIP) is an autosomal dominant genetic disease caused by a lack or decrease in hydroxymethylbilane synthase (HMBS) activity.