Updated ratios.

This commit is contained in:
vsuryakumar
2023-02-23 14:29:46 +05:30
parent f7137ec7d3
commit b1b7a31f74

View File

@@ -57,24 +57,24 @@ class ResultCalculationWithMaxImpl : TestRightResultCalculation {
val value = absorbanceAtWaveTwo / absorbanceAtWaveOne val value = absorbanceAtWaveTwo / absorbanceAtWaveOne
testRightCalculationData.ratioValue = value testRightCalculationData.ratioValue = value
if (value < 0.28 || value == 0.0) { if (value <= 0.29) {
testRightCalculationData.ratioMinRange = 0.0 testRightCalculationData.ratioMinRange = 0.0
testRightCalculationData.ratioMaxRange = 0.28 testRightCalculationData.ratioMaxRange = 0.29
return TestRightResultType.NORMAL return TestRightResultType.NORMAL
} else if (value >= 0.28 && value < 0.33) { } else if (value > 0.29 && value <= 0.32) {
testRightCalculationData.ratioMinRange = 0.28 testRightCalculationData.ratioMinRange = 0.29
testRightCalculationData.ratioMaxRange = 0.33 testRightCalculationData.ratioMaxRange = 0.32
return TestRightResultType.NEGATIVEBORDERLINE return TestRightResultType.NEGATIVEBORDERLINE
} else if (value >= 0.33 && value < 0.52) { } else if (value > 0.32 && value <= 0.50) {
testRightCalculationData.ratioMinRange = 0.33 testRightCalculationData.ratioMinRange = 0.32
testRightCalculationData.ratioMaxRange = 0.52 testRightCalculationData.ratioMaxRange = 0.50
return TestRightResultType.SICKLECELLTRAIT return TestRightResultType.SICKLECELLTRAIT
} else if (value >= 0.52 && value < 0.57) { } else if (value > 0.50 && value <= 0.55) {
testRightCalculationData.ratioMinRange = 0.52 testRightCalculationData.ratioMinRange = 0.50
testRightCalculationData.ratioMaxRange = 0.57 testRightCalculationData.ratioMaxRange = 0.55
return TestRightResultType.POSITIVEBORDERLINE return TestRightResultType.POSITIVEBORDERLINE
}else if (value >= 0.57) { }else if (value > 0.55) {
testRightCalculationData.ratioMinRange = 0.57 testRightCalculationData.ratioMinRange = 0.55
testRightCalculationData.ratioMaxRange = 999.0 testRightCalculationData.ratioMaxRange = 999.0
return TestRightResultType.SICKLECELLDISEASE return TestRightResultType.SICKLECELLDISEASE
} }