1. A computer-implemented method of detecting an impending decompensation of heart failure in a patient, the method comprising: receiving transthoracic impedance data measured by a cardiac rhythm management device implanted in the patient; obtaining a weight measurement of the patient; and detecting impending decompensation of acute heart failure, based at least in part upon the weight measurement and the transthoracic impedance data received from the cardiac rhythm management device.