Question!

When you go to the doctors and you pee in the cup do they run a pregnancy test at that moment or send it to the lab?