It is important to note that, while these body fluids are sterile at first, they frequently become infected once they leak out of their organ, leading to infectious peritonitis within 24 to 48 hours. Sterile abdominal surgery, under normal circumstances, causes localised or minimal generalised peritonitis, which may leave behind a foreign body reaction or fibrotic adhesions. However, peritonitis may also be caused by the rare case of a sterile foreign body inadvertently left in the abdomen after surgery (e.g., gauze, sponge). Much rarer non-infectious causes may include familial Mediterranean fever, TNF receptor associated periodic syndrome, porphyria, and systemic lupus erythematosus. Risk factors
Previous history of peritonitis
History of alcoholism
Liver disease
Fluid accumulation in the abdomen
Weakened immune system
Pelvic inflammatory disease

Diagnosis
A diagnosis of peritonitis is based primarily on the clinical manifestations described above. Rigidity (involuntary contraction of the abdominal muscles) is the most specific exam finding for diagnosing peritonitis. If focal peritonitis is detected, further work-up should be done. If diffuse peritonitis is detected, then urgent surgical consultation should be obtained, and may warrant surgery without further investigations. Leukocytosis, hypokalemia, hypernatremia, and acidosis may be present, but they are not specific findings. Abdominal X-rays may reveal dilated, edematous intestines, although such X-rays are mainly useful to look for pneumoperitoneum, an indicator of gastrointestinal perforation. The role of whole-abdomen ultrasound examination is under study and is likely to expand in the future. Computed tomography (CT or CAT scanning) may be useful in differentiating causes of abdominal pain. If reasonable doubt still persists, an exploratory peritoneal lavage or laparoscopy may be performed.
Peritonitis is inflammation of the localized or generalized peritoneum, the lining of the inner wall of the abdomen and cover of the abdominal organs. Symptoms may include severe pain, swelling of the abdomen, fever, or weight loss. One part or the entire abdomen may be tender. Complications may include shock and acute respiratory distress syndrome.Causes include perforation of the intestinal tract, pancreatitis, pelvic inflammatory disease, stomach ulcer, cirrhosis, or a ruptured appendix. Risk factors include ascites (the abnormal build-up of fluid in the abdomen) and peritoneal dialysis. Diagnosis is generally based on examination, blood tests, and medical imaging.Treatment often includes antibiotics, intravenous fluids, pain medication, and surgery. Other measures may include a nasogastric tube or blood transfusion. Without treatment death may occur within a few days. About 20% of people with cirrhosis who are hospitalized have peritonitis. Signs and symptoms
Abdominal pain
The main manifestations of peritonitis are acute abdominal pain, abdominal tenderness, abdominal guarding, rigidity, which are exacerbated by moving the peritoneum, e.g., coughing (forced cough may be used as a test), flexing ones hips, or eliciting the Blumberg sign (meaning that pressing a hand on the abdomen elicits less pain than releasing the hand abruptly, which will aggravate the pain, as the peritoneum snaps back into place). Rigidity is highly specific for diagnosing peritonitis (specificity: 76–100%). The presence of these signs in a person is sometimes referred to as peritonism. The localization of these manifestations depends on whether peritonitis is localized (e.g., appendicitis or diverticulitis before perforation), or generalized to the whole abdomen.