The Seattle Heart Failure Score is calculated by the following:
Seattle HF Score = (age/10)*ln(1.09) + male*ln(1.089) + (NYHA class)*ln(1.6) + (100/(ejection fraction))*ln(1.03) + (if ischemic etiology)*ln(1.354) + (SBP/10)*ln(0.877) + (diuretic dose)*ln(1.178) + (if using allopurinol)*ln(1.571) + (if using statins)*ln(0.63) + (if using ACE inhibitors) + (if using beta-blockers)*ln(0.66) + (if using angiotensin receptor blockers)*ln(0.85) + (if using K-sparing diuretics)*ln(0.74) + (if using biventricular pacemaker) + (if using implantable cardioverter-defibrillator)*ln(0.73) + (if using biventricular implantable cardioverter-defibrillator)*ln(0.79) + (138 – sodium)*ln(1.05) + (100/(total cholesterol, mg/dL))*ln(2.206) + (hgb score) + ((% lymphocytes)/5)*ln(0.897) + (uric acid, mg/dL)*ln(1.064),
where diuretic dose, mg/kg = (furosemide + 2*torsemide + 26.7*bumetanide + 40*metolazone + 3.2*hydrochlorothiazide)/(weight, kg)
If hemoglobin, g/dL <16 g/dL,
hgb score = (16 – hemoglobin)*ln(1.124)
If hemoglobin, g/dL ≥16 g/dL,
hgb score = (hemoglobin – 16)*ln(1.336)
Note:
With so many If's for the life of me I cannot come up with a solution to make it work, please can someone help?
Also I have obne other question, I am trying to use the MAGGIC score for Heart Failure which gives a value to a parameter following the Table 1, and returns a score that relates as is the Table 2
How can I formulate a score cell to lookup the value for each parameter, add them up and fetch from table to the corresponding 1 and 5 year mortality and place it in the approppiate cells?
Table 1
Table 2
Seattle HF Score = (age/10)*ln(1.09) + male*ln(1.089) + (NYHA class)*ln(1.6) + (100/(ejection fraction))*ln(1.03) + (if ischemic etiology)*ln(1.354) + (SBP/10)*ln(0.877) + (diuretic dose)*ln(1.178) + (if using allopurinol)*ln(1.571) + (if using statins)*ln(0.63) + (if using ACE inhibitors) + (if using beta-blockers)*ln(0.66) + (if using angiotensin receptor blockers)*ln(0.85) + (if using K-sparing diuretics)*ln(0.74) + (if using biventricular pacemaker) + (if using implantable cardioverter-defibrillator)*ln(0.73) + (if using biventricular implantable cardioverter-defibrillator)*ln(0.79) + (138 – sodium)*ln(1.05) + (100/(total cholesterol, mg/dL))*ln(2.206) + (hgb score) + ((% lymphocytes)/5)*ln(0.897) + (uric acid, mg/dL)*ln(1.064),
where diuretic dose, mg/kg = (furosemide + 2*torsemide + 26.7*bumetanide + 40*metolazone + 3.2*hydrochlorothiazide)/(weight, kg)
If hemoglobin, g/dL <16 g/dL,
hgb score = (16 – hemoglobin)*ln(1.124)
If hemoglobin, g/dL ≥16 g/dL,
hgb score = (hemoglobin – 16)*ln(1.336)
Note:
- Lymphocyte values >47% are set to 47%.
- Uric acid values <3.4 mg/dL are set to 3.4 mg/dL.
- SBP values >160 mm Hg are set to 160 mm Hg.
- Sodium values >138 mEq/L are set to 138 mEq/L.
With so many If's for the life of me I cannot come up with a solution to make it work, please can someone help?
Also I have obne other question, I am trying to use the MAGGIC score for Heart Failure which gives a value to a parameter following the Table 1, and returns a score that relates as is the Table 2
How can I formulate a score cell to lookup the value for each parameter, add them up and fetch from table to the corresponding 1 and 5 year mortality and place it in the approppiate cells?
Table 1
Table 2
Integer risk score | 1-year probability of death | 3-year probability of death |
0 | 0.015 | 0.039 |
1 | 0.016 | 0.043 |
2 | 0.018 | 0.048 |
3 | 0.020 | 0.052 |
4 | 0.022 | 0.058 |
5 | 0.024 | 0.063 |
6 | 0.027 | 0.070 |
7 | 0.029 | 0.077 |
8 | 0.032 | 0.084 |
9 | 0.036 | 0.092 |
10 | 0.039 | 0.102 |
11 | 0.043 | 0.111 |
12 | 0.048 | 0.122 |
13 | 0.052 | 0.134 |
14 | 0.058 | 0.146 |
15 | 0.063 | 0.160 |
16 | 0.070 | 0.175 |
17 | 0.077 | 0.191 |
18 | 0.084 | 0.209 |
19 | 0.093 | 0.227 |
20 | 0.102 | 0.247 |
21 | 0.111 | 0.269 |
22 | 0.122 | 0.292 |
23 | 0.134 | 0.316 |
24 | 0.147 | 0.342 |
25 | 0.160 | 0.369 |
26 | 0.175 | 0.397 |
27 | 0.191 | 0.427 |
28 | 0.209 | 0.458 |
29 | 0.227 | 0.490 |
30 | 0.248 | 0.523 |
31 | 0.269 | 0.556 |
32 | 0.292 | 0.590 |
33 | 0.316 | 0.625 |
34 | 0.342 | 0.658 |
35 | 0.369 | 0.692 |
36 | 0.398 | 0.725 |
37 | 0.427 | 0.756 |
38 | 0.458 | 0.787 |
39 | 0.490 | 0.815 |
40 | 0.523 | 0.842 |
41 | 0.557 | 0.866 |
42 | 0.591 | 0.889 |
43 | 0.625 | 0.908 |
44 | 0.659 | 0.926 |
45 | 0.692 | 0.941 |
46 | 0.725 | 0.953 |
47 | 0.757 | 0.964 |
48 | 0.787 | 0.973 |
49 | 0.816 | 0.980 |
50 | 0.842 | 0.985 |