Legislation pending in the California state assembly would allow pharmacies to send patient prescription information to advertisers.