Some who testified against the bill said it would infringe on patient rights.