New technologies are creating more efficient ways for pharma companies to work directly with consumers.