While data mining laws are mired in court, alternatives are helping physicians control rep encounters and help states manage costs.