diff --git a/app/src/main/java/com/example/hpos/data/constant/Constants.kt b/app/src/main/java/com/example/hpos/data/constant/Constants.kt index 18ea8b4..ab0baf6 100644 --- a/app/src/main/java/com/example/hpos/data/constant/Constants.kt +++ b/app/src/main/java/com/example/hpos/data/constant/Constants.kt @@ -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 } \ No newline at end of file diff --git a/app/src/main/java/com/example/hpos/domain/ResultCalculationWithMaxImpl.kt b/app/src/main/java/com/example/hpos/domain/ResultCalculationWithMaxImpl.kt index b725a02..a6a999b 100644 --- a/app/src/main/java/com/example/hpos/domain/ResultCalculationWithMaxImpl.kt +++ b/app/src/main/java/com/example/hpos/domain/ResultCalculationWithMaxImpl.kt @@ -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) {