Worried about my unborn baby

Gigi

I have a uti and the dr in the emergency room prescribed me 500mg cephalexin ... is it safe to take while pregnant.. did anyone deliver a healthy baby when taking it .?