Getting a urine sample that way at the vet is safe, and no more uncomfortable than getting blood drawn. It's a very small needle. It has the advantage of being an uncontaminated specimen, in case they're worried about a urinary tract infection and want to do a culture.
Good luck tonight, and keep us posted.