Cystoscopy is a procedure performed by the doctor to examine the lining of the bladder (where urine is stored) and the urethra (the tube that carries urine out of the body).