From e57ae45596e50f8d8812ef7a27163ce297d627eb Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Sat, 28 Oct 2023 12:52:00 +0530 Subject: [PATCH] add hemocube classification numbers --- src/App.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 1affe6d..c134603 100644 --- a/src/App.js +++ b/src/App.js @@ -57,13 +57,14 @@ function App() { const hposTestData = document.data(); hposTests.push(hposTestData); const { result } = hposTestData; - if (result === "NORMAL") { + const { classificationResult } = hposTestData; + if (result === "NORMAL" || classificationResult === 'Normal') { normalCount++; } - if (result === 'SICKLECELLTRAIT') { + if (result === 'SICKLECELLTRAIT' || classificationResult === 'Sickle Cell Trait') { traitCount++; } - if (result === 'SICKLECELLDISEASE') { + if (result === 'SICKLECELLDISEASE' || classificationResult === 'Sickle Cell Disease') { diseaseCount++; } });