In this procedure, small samples of the endometrial lining of the uterus are removed to test for cancer and other conditions.