Anorectal manometry is an outpatient test that evaluates bowel function in patients with constipation or stool leakage.