Others develop by extension of infection or inflammation resulting from conditions such as appendicitis, diverticulitis, Crohn disease, pancreatitis, pelvic inflammatory disease, or indeed any condition causing generalized peritonitis.