An abdominal series, consisting of flat and upright abdominal x-rays and upright chest x-rays (left lateral recumbent abdomen and anteroposterior chest x-ray for patients unable to stand), should be done when perforation or obstruction is suspected.