Hello there :)

Today in the clinic they told me that I had to do a chest xray because I was exposed to tuberculosis, so it was either now, or after I give birth but they would hold my baby until I get it done.. & I don't want that, but I'm scared of doing xrays while I'm pregnant, doctor said it was fine, but I still have my doubts. Has anyone gone through this, & if so did the baby have any problems ? I'm sorry if it might be a stupid question to some but is my first baby & i want everything to be fine with him... I'm 28 weeks.