Gallbladder?

I am almost 22 weeks pregnant. I woke up this morning in severe pain under my right rib and around to my back. After about an hour of tossing and turning sitting up walking around and everything else to try to get it to go away it finally eased up. Now I have a constant dull ache in my back and I’m not sure what it is. I called my OB and they said to go to labor and delivery to get checked. I just feel silly going when I’m not in as much pain anymore but want to get it checked out before it gets worse also. What do you guys think I should do?