Sorry to hear you had to go through such misery, hope you never get another one. I've had 7 Kidney Stones. My last one was 27mm.
My stones are Calcium Oxalate, the most common.
Your doctor probably already told you all this but…….
1️⃣ Drink lots of water, lemonade, orange juice or something citric. I drink lemonade and take Potassium Citrate.
2️⃣ Get plenty of calcium. Lack of Calcium can increase oxalates leading to stone formation. Since your name is John I assume your a guy so you should get 1,000mg of Calcium a day if your over 50 and about 800-1,000mg of Vitamin D to help your body absorb
Calcium. You should get your Calcium through your food, not supplements since they can cause stones.
3️⃣ Kick salt out the door. A high-sodium diet can cause kidney stones since it increases calcium in the urine. Sodium should be limited to 2,300mg a day. My doctor recommended 1,500mg. Reducing sodium will also be good for your blood pressure and heart.
4️⃣ I was distressed when my doctor said to cut down on animal protein. Red meat, poultry, eggs, and seafood, increases the uric acid levels and may lead to kidney stones. It reduces levels of citrate which helps prevent stones.
5️⃣ Avoid foods high in oxalate's. I can't find my list but some I remember are yams, beets, chocolate, spinach, rhubarb, tea, most nuts and colas have phosphate with Brazil nuts having the most. Phosphate can contribute to kidney stones.
6️⃣ Vitamin C supplements taken in high doses may increase the risk of kidney stones. Our bodies convert vitamin C into oxalate.