Mostly pain below the rib cage on the back side is called aa pain in the lumbar region is mostly due to the renal colic
. It may be due to decreased renal function which can be caused by any sort of obstruction within the renal parenchyma or in the tract of kidneys that include renal pelvis
ureter or urinary bladder
. It also can be caused by infection of the urinary tract
. You should have investigations for the renal function that includes Renal Function Tests, Ultrasonography
Kidney Ureter Bladder that shows the kidneys and tract of kidneys and an Xray Kidney Ureter Bladder. If they show some abnormality than have Renal scan for GFR estimation.
If all the tests are normal pain is muscular in nature that can respond to pain killers such as Diclofenac sodium and muscle relaxants such as Muscuril.
In present situation if you are having sever pain take some pain killers such as Cap. Campex along with combination of gravinate to avoid vommiting.
I hope I am sucessful in solving your query If u have further you can ask me
Get well soon
Dr. Azhar Sattar