We used uni- and multivariate regression analysis to develop a PIFA-N prognostic mathematical model of adverse outcome that factored in community-acquired pneumonia diagnosed on inclusion in the study (odds ratio (OR): 3.09, 95% confidence interval (CI) 1.13-8.5, P = 0.028), a previous myocardial infarction (OR: 4.26, 95% CI 1.54-11.7, P = 0.005), presence of any form of atrial fibrillation (OR: 3.13, 95% CI 1.05-9.2, P = 0.039) and/or anemia (OR: 3.18, 95% CI 1.003-10.1, P = 0.049), and NT-proBNP level (OR: 1.0005, 95% CI 1.0002-1.0008, P = 0.002). The gene discussed is NPPB; the disease is anemia.