Right rib pain

My doctor has been watching for preeclampsia, and shes said to watch out for right rib pain and to let her know. Why is that? I cant tell if baby is causing this sharp pain ache on my right side rib cage or something else. Itll hurt anywhere from 5 minutes to like an hour even with changing positions. Anyone have any insight?