Massachusetts medical records dispute highlights competition over primary care