The purpose of the study is to test a new medical device for optimizing treatment of heart failure and compare its effect on outcome of patients with a recent hospitalization for worsening heart failure