In the face of industry headwinds, pharmacies can work to make the most of their distinct advantages to meet shifting consumer needs.