Laparoscopy, or looking inside the abdomen with scopes, may be necessary. This is usually an outpatient surgical procedure. During laparoscopy, the doctor may take a sample tissue for analysis by a pathologist under a microscope. This is called a biopsy.