add classification result
This commit is contained in:
@@ -67,7 +67,7 @@ const TestAnalytics = () => {
|
||||
const todaysTests = hposTests.filter((x) => moment(x.testTime).isBetween(moment(lastTestedDate).startOf('day'), moment(lastTestedDate).endOf('day')));
|
||||
setCurDayTests(todaysTests);
|
||||
const dailyCategoryCounts = todaysTests.reduce(function (result, test) {
|
||||
const category = test.result;
|
||||
const category = test.classificationResult;
|
||||
if (!result[category]) {
|
||||
result[category] = 0;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
const constants = {
|
||||
categoryshortname: {
|
||||
"SICKLECELLTRAIT": "Trait",
|
||||
"SICKLECELLDISEASE": "Disease",
|
||||
"NEGATIVEBORDERLINE": "-Borderline",
|
||||
"POSITIVEBORDERLINE": "+Borderline",
|
||||
"NORMAL": "Normal",
|
||||
"Sickle Cell Trait": "Trait",
|
||||
"Sickle Cell Disease": "Disease",
|
||||
"Negative Borderline. Repeat Test": "-Borderline",
|
||||
"Positive for Sickle Cell. HPLC for Confirmation": "+Borderline",
|
||||
"Normal": "Normal",
|
||||
"Inconclusive. Very low Absorbance - Repeat test with Higher Blood Volume": "Inconclusive - Low Abs",
|
||||
"Inconclusive. Repeat with test with lower volume of blood": "Inconclusive - Low vol. retest",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user