Some states allow pharmacists to substitute generic drugs for name brand prescriptions. To my knowledge they don't need the doctor's permission, and can make the change on their own unless the doctor specifically requests the name brand medicine for some reason.