Skip to content

Commit

Permalink
chore: change md printing of valueset
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bollen authored and Casper Bollen committed Jun 1, 2024
1 parent b01f15d commit b3f20a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Informedica.GenSolver.Lib/Variable.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,12 +1154,12 @@ module Variable =
let count =
ValueUnit.getValue >> Array.length

if vu |> count <= 10 then
if vu |> count <= 3 then
$"""{vu |> ValueUnit.toDelimitedString prec}"""
else
let first3 = vu |> ValueUnit.takeFirst 3
let last3 = vu |> ValueUnit.takeLast 3
$"{first3 |> ValueUnit.toDelimitedString prec} .. {last3 |> ValueUnit.toDelimitedString prec}"
let first1 = vu |> ValueUnit.takeFirst 1
let last1 = vu |> ValueUnit.takeLast 1
$"{first1 |> ValueUnit.toDelimitedString prec} .. {last1 |> ValueUnit.toDelimitedString prec}"



Expand Down
4 changes: 2 additions & 2 deletions src/Shared/Domain.fs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ module Patient =


(Some "BSA:") |> italic
pat |> calcBSA |> Option.map (fun x -> $" {x} m2")
pat |> calcBSA |> Option.map (fun x -> $"{x} m2") |> bold

if pat |> getAgeInDays |> Option.map (fun ds -> ds < 365.) |> Option.defaultValue false then
(Some $", {Terms.``Patient GA Age`` |> getTerm}:") |> italic
Expand All @@ -761,7 +761,7 @@ module Patient =
|> Option.orElse ("" |> Some)

if pat.RenalFunction |> Option.isSome then
Some "Nierfunctie" |> italic
Some "Nierfunctie:" |> italic
pat.RenalFunction
|> Option.map RenalFunction.renalToOption
|> bold
Expand Down

0 comments on commit b3f20a9

Please sign in to comment.