Ronnie from 'Jersey Shore' — My Kidneys Were Ticking Time Bombs …

0508_ronnie_ortiz-margo_tmz_article1
Ronnie from “Jersey Shore” just survived something more painful than a summer with Snooki — 10 agonizing days in the hospital with kidney stones … TMZ has learned.

Sources in Ronnie Magro‘s camp tell us the 27-year-old got out of a Florida hospital Wednesday after undergoing two surgeries to treat kidney stones … and more.

Ronnie initially went in for the stones, but we’re told docs discovered he was born with a hereditary disorder that’s also fouling up his kidney function.

Doctors still haven’t cleared Ronnie to fly — so he’s stuck in FL for the time being.

Btw, we’re told Sammi Sweetheart” was with Ronnie for his entire 10-day hospital stay … so they probably broke up at least twice.