HemoCubeFragment changes in device ratio and borderline metric

This commit is contained in:
chandrashekhar reddy
2024-03-30 13:45:47 +05:30
parent 96ba5ce92f
commit 31e92a0cbb

View File

@@ -1127,7 +1127,7 @@ class HemoCubeFragment : Fragment() {
"Borderline. Sickle Cell Trait" "Borderline. Sickle Cell Trait"
} }
if (deviceRatioClass == "Positive for Sickle Cell. HPLC for Confirmation") { if (deviceRatioClass == "Positive for Sickle Cell. HPLC for Confirmation") {
return if (borderlineMetric >= 1.34) return if (borderlineMetric >= 1.4)//1.34
"Borderline. Sickle Cell Trait" "Borderline. Sickle Cell Trait"
else else
"Borderline. Sickle Cell Disease" "Borderline. Sickle Cell Disease"
@@ -1169,7 +1169,7 @@ class HemoCubeFragment : Fragment() {
fun deviceRatioClassification(ratio: Double?): String { fun deviceRatioClassification(ratio: Double?): String {
try { try {
if (ratio != null) { if (ratio != null) {
if (ratio in 0.16..0.23) { if (ratio in 0.11..0.23) {
// setSubtitleTextColor(R.color.green_2) // setSubtitleTextColor(R.color.green_2)
return "Normal" return "Normal"
} }
@@ -1177,9 +1177,9 @@ class HemoCubeFragment : Fragment() {
return "Negative Borderline" return "Negative Borderline"
if (ratio in 0.25..0.31) if (ratio in 0.25..0.31)
return "Sickle Cell Trait" return "Sickle Cell Trait"
if (ratio in 0.31..0.36) if (ratio in 0.31..0.39)//0.36
return "Positive for Sickle Cell. HPLC for Confirmation" return "Positive for Sickle Cell. HPLC for Confirmation"
if (ratio in 0.36..0.7) if (ratio in 0.39..1.0)
return "Sickle Cell Disease" return "Sickle Cell Disease"
} else { } else {
return "Invalid" return "Invalid"