During the procedure, the patient lies on an examination table, and a speculum is gently inserted into the vagina to allow access to the cervix. A healthcare provider then uses a small brush or swab to collect a sample of cells or secretions from the cervix. The sample is then sent to a laboratory for analysis.