Pharmacy customers will have their prescriptions automatically transferred to nearby pharmacies in the same cities.