24 hour urine

Kaimee
My doctors office wants me to do a 24 hour urine collection. Anybody ever had to do one of these ? And why?