Rob Kardashian was diagnosed with diabetic ketoacidosis ... this according to our Kardashian sources.
TMZ broke the story ... Rob was taken to an L.A. hospital Sunday after feeling terrible all weekend.
Our sources say after a battery of tests, Rob was diagnosed with diabetic ketoacidosis, a serious complication of diabetes that occurs when someone's body produces high levels of blood acids, or ketones.
Rob had no idea he was diabetic, and it's a good thing he took precautionary measures. If untreated, the condition can lead to a diabetic coma.
But there's good news ... our Kardashian sources say the doctors told Rob if he eats well and leads a "healthy lifestyle," he can actually get his diabetes, which is type 2, under control and potentially have it go into remission.
Rob is back at home and resting, and this may be just what the doctor ordered -- literally -- to get him back on the right path.