Terrible rib pain

Anne 💙💙💙 • Mom to 3 boys. August 2015, December 2016, December 2018
I have been having pain in my ribs for a week. It's getting more intense as the days go on. I coughed earlier and it hurt so bad. It's on the right side under my boob area. I don't understand what is going on. I go to the dr tomorrow but I'm afraid of any X-rays or anything because I'm in my TWW. I don't know if that can harm a potential pregnancy. The dr I'm seeing has a really crappy bedside manor and isn't super helpful. I hate the weekend dr but my normal didn't have any appointments left today. Anyone know if an x Ray could cause issues if i conceived this month??