From 028a7080073ce27266f1d038578a9a14cf98f079 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Thu, 6 Jun 2024 17:42:56 +0530 Subject: [PATCH] Show link asset popup only for IV and NIV resp. support types. --- .../CriticalCare__VentilatorParametersEditor.res | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Components/CriticalCareRecording/VentilatorParametersEditor/CriticalCare__VentilatorParametersEditor.res b/src/Components/CriticalCareRecording/VentilatorParametersEditor/CriticalCare__VentilatorParametersEditor.res index c06780aad75..0933f46bf1a 100644 --- a/src/Components/CriticalCareRecording/VentilatorParametersEditor/CriticalCare__VentilatorParametersEditor.res +++ b/src/Components/CriticalCareRecording/VentilatorParametersEditor/CriticalCare__VentilatorParametersEditor.res @@ -304,15 +304,11 @@ let make = ( (state.ventilator_interface != CriticalCare__VentilatorParameters.decodeVentilatorInterfaceType( ventilatorInterfaceOptions[0].value, - ) || - switch state.bilateral_air_entry { - | Some(true) => true - | _ => false - } || - switch (state.etco2) { - | Some(intValue) => true - | None => false - }) + ) && + state.ventilator_interface != + CriticalCare__VentilatorParameters.decodeVentilatorInterfaceType( + ventilatorInterfaceOptions[3].value, + )) ) { toggleOpen() } else {