Anyone else have their liver tested due to pain?

I'm having localized pain on my upper right side of my stomach...close to my rib cage. I thought it was just normal aches and pains until I realized it was strictly that side and getting more and more painful. My doc pushed around on my stomach and when she got to that area I nearly flew off the bed from pain. She ordered a bunch of blood work and said it could be preeclampsia or intraheptatic cholestasis of pregnancy. Has anyone ever had an experience like this?