add hemocube classification numbers

This commit is contained in:
Pritimay Sarkar
2023-10-28 12:52:00 +05:30
parent 147fb23546
commit e57ae45596

View File

@@ -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++;
}
});