change thresholds
This commit is contained in:
@@ -1012,17 +1012,18 @@ class HemoCubeFragment : Fragment() {
|
||||
fun deviceRatioBorderlineThresholds(ratio: Double?): String {
|
||||
try {
|
||||
if (ratio != null) {
|
||||
if (ratio in 0.11..0.237) {
|
||||
val roundedRatio = String.format("%.3f", ratio).toDouble()
|
||||
if (roundedRatio >= 0.11 && roundedRatio < 0.237) {
|
||||
// setSubtitleTextColor(R.color.green_2)
|
||||
return "Normal"
|
||||
}
|
||||
if (ratio in 0.237..0.242)
|
||||
if (roundedRatio in 0.237..0.242)
|
||||
return "Negative Borderline"
|
||||
if (ratio in 0.242..0.318)
|
||||
if (roundedRatio in 0.242..0.318)
|
||||
return "Sickle Cell Trait"
|
||||
if (ratio in 0.318..0.356)
|
||||
if (roundedRatio >= 0.318 && roundedRatio < 0.356)
|
||||
return "Positive for Sickle Cell. HPLC for Confirmation"
|
||||
if (ratio in 0.356..0.7)
|
||||
if (roundedRatio in 0.356..0.7)
|
||||
return "Sickle Cell Disease"
|
||||
} else {
|
||||
return "Invalid"
|
||||
|
||||
Reference in New Issue
Block a user