A Maine law that would have limited access by medical data companies to doctors' prescription information was reversed on constitutional grounds.