AI and bio samples for the detection and diagnosis of patients with heart failure from electronic health records