The gynecologist scratched the surface of the uterus to obtain a sample of cells that were subsequently analyzed in order to detect any abnormalities.