Swabs are collected during a pelvic exam. The patient lies on an examination table, and a speculum is inserted into the vagina to allow the healthcare provider to see the cervix and vaginal walls. The swab is then gently inserted to collect the necessary sample. The procedure is usually quick and causes minimal discomfort.