I have had right flank pain for at least three weeks. It keeps me awake at night. Aleve settles the pain for a couple of hours. I find it hard to reposition myself in bed. I have no fever, and no swelling in the extremities. Urination is regular, urine is straw colored.
Hi, Welcome to Chat Doctor forum.  The reason for the pain in the right flanks might be due to the gastric irritation, kidney infection, stone in the kidney, ureter, hepatitis, gallbladder infection, or stones, colitis, appendicitis.  I advise you to consult a surgeon for diagnosis and treatment. You may need to have gastrostomy, ultrasound, for confirmation.  Take more of green leafy vegetables, pulses, sprouts, and protein rich foods to hasten the recovery.  Wishing for a quick and complete recovery. Thank you.