The presence or suspected presence of kidney stones is grounding in FAA-land due to the risk of sudden incapacitation due to pain.
The good news is that you can get them treated, prove you a free of them, and be GTG. I know two major airline guys who had them, both are back to work, and both got them on military deployments to the desert...apparently hydration is key.