Update in no. of tests in a run + Updates in ratio. (App build)

This commit is contained in:
vsuryakumar
2023-02-13 11:42:51 +05:30
parent 60bcb07441
commit a0936391c6
2 changed files with 8 additions and 8 deletions

View File

@@ -25,5 +25,5 @@ object Constants {
const val ERROR_NORMAL = 400
const val ERROR_CRITICAL = 401
const val NO_OF_TIMES_TO_RUN_SAMPLE = 3
const val NO_OF_TIMES_TO_RUN_SAMPLE = 1
}

View File

@@ -57,16 +57,16 @@ class ResultCalculationWithMaxImpl : TestRightResultCalculation {
val value = absorbanceAtWaveTwo / absorbanceAtWaveOne
testRightCalculationData.ratioValue = value
if (value < 0.30 || value == 0.0) {
if (value < 0.28 || value == 0.0) {
testRightCalculationData.ratioMinRange = 0.0
testRightCalculationData.ratioMaxRange = 0.30
testRightCalculationData.ratioMaxRange = 0.28
return TestRightResultType.NORMAL
} else if (value >= 0.30 && value < 0.31) {
testRightCalculationData.ratioMinRange = 0.30
testRightCalculationData.ratioMaxRange = 0.31
} else if (value >= 0.28 && value < 0.285) {
testRightCalculationData.ratioMinRange = 0.28
testRightCalculationData.ratioMaxRange = 0.285
return TestRightResultType.UNDEFINED
} else if (value >= 0.31 && value < 0.52) {
testRightCalculationData.ratioMinRange = 0.31
} else if (value >= 0.285 && value < 0.52) {
testRightCalculationData.ratioMinRange = 0.285
testRightCalculationData.ratioMaxRange = 0.52
return TestRightResultType.SICKLECELLTRAIT
} else if (value >= 0.52 && value < 0.525) {