From 026f8ce69baad2eeff08ca83e96b6a5c75bf18f2 Mon Sep 17 00:00:00 2001 From: saloni0419 Date: Wed, 28 Feb 2024 14:25:15 +0530 Subject: [PATCH] log update vital feature modified --- .../Pain/CriticalCare__PainInputModal.res | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res b/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res index eb4fd2b2376..d55ab1cfc87 100644 --- a/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res +++ b/src/Components/CriticalCareRecording/Pain/CriticalCare__PainInputModal.res @@ -55,13 +55,15 @@ let make = ( } }) - let getStatus = (min, minText, max, maxText, val) => { - switch (val >= min, val <= max) { - | (true, true) => ("Normal", "#059669") - | (true, false) => (maxText, "#DC2626") - | _ => (minText, "#DC2626") - } + let getLabel = (param: float) => { + let minText = "Low" + let maxText = "High" + switch param { + | 0.0 => (minText, "#059669") + | 5.0 => (maxText, "#DC2626") + | _ => ("", "") } +}