The integrated diagnostics ( ID ) algorithm is an implantable device-based tool that collates data pertaining to heart rhythm , heart rate , intrathoracic fluid status , and activity , producing a risk score that correlates with 30-day risk of heart failure ( HF ) hospitalization .