Drug companies are getting paid based on how well their treatments work. That's more complicated than it sounds.