The state's largest health care system will close 47 Walgreens clinics as part of a broader shift in operations.