The future of healthcare, according to Cuban, is technology that eliminates the middle man (namely doctors' offices and pharmacies) in the diagnosis and treatment process, the Shark Tank judge told Arianna Huffington onstage at Advertising Week in New York on Wednesday.

Today, when you visit a drugstore, the pharmacist describes side effects and risks attached to your medication. "Over the next 15 to 20 years," Cuban says, "medicinewill be so personalized there will be no drugstores."

#9: "It's not about money or connections -- it's the willingness to outwork and outlearn everyone when it comes to your business. And if it fails, you learn from what happened and do a better job next time."

Credit: Getty

#10: "What I've learned is that if you really want to be successful at something, you'll find that you put the time in. You won't just ask somebody if it's a good idea, you'll go figure out if it's a good idea."

Instead, Cuban sees a future when technology can diagnose and design tailored treatments by analyzing your sweat or monitoring your heart rate or breathing. That's why over the last few years, Cuban has been accumulating investments in healthcare technology companies. At San Francisco's Launch Festival in February 2014, he said sensors like those in a Fitbit would be the next wave of healthcare tech, freeing users from manually entering data to learn about their health.

Now, he's investing in companies that make hardware attachments that turn smartphones into multi-purpose physicians. Among others, he's invested in the cervical cancer screening toolMobileODT and Biomeme, which claims to do genetic testing for certain types of diseases within an hour.

Traditional pharmacies and sharing economy companies alike are on board with this vision to either automate diagnoses and treatment processes or eliminate the physical task of visiting a doctor or pharmacist altogether. CVS has been experimenting with telemedicine, which allows patients to video chat with a doctor to discuss symptoms and treatment, Norman de Greve, chief marketing officer at CVS Health said at a panel on the future of branding in New York on Tuesday.

On the same panel was Kira Scherer, the chief marketing officer at car-hailing app Lyft. She discussed the potential of the company's concierge service, which allows users to arrange pickup and dropoff for a non-emergency medical appointments.

RELATED: See what famous business leaders looked like in high school

22PHOTOS

What famous business leaders looked like in high school

See Gallery

What famous business leaders looked like in high school

Mark Cuban

Mark Cuban may have ditched his wild 'do, but otherwise, he hasn't aged a day since he took his senior portrait in 1976!