Persistent pain under my ribs and also in the middle?

Hurts since April. First the pain shows up to the uppper back on the right side. Then the pain travels all around in the middle &under my ribs. Been to the doctor and he diagnosed me with scoliosis. Barely notable. I always sit straight and I keep my posture. If I am trying to sleep on my back I experience terrible back and front pain. Been analyzing some medical raports and I noticed that RBC and erytrocites are abnormal. Rbc are 50 and the normal value should be 10. Could this be something related to my pain? Kidney? Stone? I will go to the doctor next week but I am so worried
Persistent pain under my ribs and also in the middle?
Post Opinion