I have a pain around the right side of my rib cage for about a week now. It started out just hurting when I coughed or sneezed, so I thought maybe I just bruised something, although I don't remember any hits to that area. Over the next few days it developed into pain when coughing, sneezing, bending over, sleeping. Last night it was extremely painful to sleep on my right side and it hurts to be in a lying position and then get up. How long should I wait to see a doctor? Could this just be a bruised muscle?