A chronic disease score from automated pharmacy data