Skip to content

Commit

Permalink
fix: calc min max from multiple norm dose values
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bollen authored and Casper Bollen committed Jul 4, 2024
1 parent dbd92a9 commit 7bb5096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Informedica.GenOrder.Lib/DrugOrder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bb5096

Please sign in to comment.