release 2.1.108

This commit is contained in:
Pritimay Sarkar
2024-02-10 11:10:06 +05:30
parent ef98b09eaf
commit 7302ad669f
2 changed files with 6 additions and 6 deletions

View File

@@ -928,17 +928,17 @@ class HemoCubeFragment : Fragment() {
fun deviceRatioClassification(ratio: Double?): String {
try {
if (ratio != null) {
if (ratio in 0.001..0.23) {
if (ratio in 0.016..0.22) {
// setSubtitleTextColor(R.color.green_2)
return "Normal"
}
if (ratio in 0.23..0.24)
if (ratio in 0.22..0.24)
return "Negative Borderline, Repeat Test"
if (ratio in 0.24..0.29)
if (ratio in 0.24..0.32)
return "Sickle Cell Trait"
if (ratio in 0.29..0.32)
if (ratio in 0.32..0.37)
return "Positive for Sickle Cell. HPLC for Confirmation"
if (ratio in 0.32..Double.POSITIVE_INFINITY)
if (ratio in 0.37..0.56)
return "Sickle Cell Disease"
} else {
return "Invalid"

View File

@@ -339,7 +339,7 @@ class HemoCubeFragmentTest {
@Test
fun testDeviceRatioClassificationPositiveForSickleCell() {
val ratio = 0.31
val ratio = 0.37
val result = hemoCubeFragment.deviceRatioClassification(ratio)
assertEquals("Positive for Sickle Cell. HPLC for Confirmation", result)
}