Skip to content

Commit

Permalink
fixed wording for crude
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahar-behpour committed May 2, 2024
1 parent 80b27c9 commit 28b1b6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions data/conceptMappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"age_adjusted_rate": "Age-Adjusted Mortality Rate (per 100,000)",
"Age Adjusted Rate Ratio (Ref=Q1)": "Age Adjusted Rate Ratio (Ref=Q1)",
"Age Adjusted Rate Ratio (Ref=Q8)": "Age Adjusted Rate Ratio (Ref=Q8)",
"Crude Adjusted Rate Ratio (Ref=Q1)": "Crude Adjusted Rate Ratio (Ref=Q1)",
"Crude Adjusted Rate Ratio (Ref=Q8)": "Crude Adjusted Rate Ratio (Ref=Q8)",
"Crude Rate Ratio (Ref=Q1)": "Crude Rate Ratio (Ref=Q1)",
"Crude Rate Ratio (Ref=Q8)": "Crude Rate Ratio (Ref=Q8)",
"deaths": "Death",
"population": "Population"
},
Expand Down
8 changes: 4 additions & 4 deletions src/pages/quantilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const NUMERIC_MEASURES = [
"age_adjusted_rate",
"Age Adjusted Rate Ratio (Ref=Q1)",
"Age Adjusted Rate Ratio (Ref=Q8)",
"Crude Adjusted Rate Ratio (Ref=Q1)",
"Crude Adjusted Rate Ratio (Ref=Q8)",
"Crude Rate Ratio (Ref=Q1)",
"Crude Rate Ratio (Ref=Q8)",
// "deaths",
// "population",
];
Expand Down Expand Up @@ -710,9 +710,9 @@ function getAgeAdjustedRateData(data, row, key) {
+parseFloat(row.age_adjusted_rate / dataSortedByQuantile[firstIndex].age_adjusted_rate).toFixed(2);
row["Age Adjusted Rate Ratio (Ref=Q8)"] =
+parseFloat(row.age_adjusted_rate / dataSortedByQuantile[lastIndex].age_adjusted_rate).toFixed(2);
row["Crude Adjusted Rate Ratio (Ref=Q1)"] =
row["Crude Rate Ratio (Ref=Q1)"] =
+parseFloat(row.crude_rate / dataSortedByQuantile[firstIndex].crude_rate).toFixed(2);
row["Crude Adjusted Rate Ratio (Ref=Q8)"] =
row["Crude Rate Ratio (Ref=Q8)"] =
+parseFloat(row.crude_rate / dataSortedByQuantile[lastIndex].crude_rate).toFixed(2);
}

Expand Down

0 comments on commit 28b1b6a

Please sign in to comment.