Hi welcome to Health care magic forum.
Thanks for calling H.C.M.F.
Pain right abdomen near the
rib cage, and to the front, acute pain when starving, all these suggest gastric irritation, or
peptic ulcer. This is to be treated first to solve the confusion.
If you stretch your hands up you get muscle pull under the ribs, at the right back,lack of energy in the right limb some times, this is all suggestive of
muscle pain due to some systemic infection,
cervical spondylosis,
If you hold urine for long time and then pass urine you get pain of right testicle and burning in the foot may be due to
kidney stone on the right side or urine infection. So it is to be treated as a second step. Muscle pains could be secondary to the U.T.I.or kidney stones.
I advise you to consult a physician for diagnosis and treatment . You may need to have M.R.I. of the
urinary system, and
cervical spine and gastroscopy for confermation,
Wishing for a qiuck recovery.
Best regards.