From 7bb5096ef9ed8b80cd44e191eee6690c0dd09adb Mon Sep 17 00:00:00 2001 From: Casper Bollen Date: Thu, 4 Jul 2024 11:12:24 +0200 Subject: [PATCH] fix: calc min max from multiple norm dose values --- src/Informedica.GenOrder.Lib/DrugOrder.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Informedica.GenOrder.Lib/DrugOrder.fs b/src/Informedica.GenOrder.Lib/DrugOrder.fs index 2799e4a..f415492 100644 --- a/src/Informedica.GenOrder.Lib/DrugOrder.fs +++ b/src/Informedica.GenOrder.Lib/DrugOrder.fs @@ -75,12 +75,14 @@ module DrugOrder = match minMax.Min, norm with | None, Some norm -> norm * times0_90 |> Some | _ -> minMax.Min |> limToVu + |> Option.bind ValueUnit.minValue |> vuToDto let max = match minMax.Max, norm with | None, Some norm -> norm * times1_10 |> Some | _ -> minMax.Max |> limToVu + |> Option.bind ValueUnit.maxValue |> vuToDto match min with