File tree 4 files changed +11
-10
lines changed
4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ module DoseRule =
25
25
let limit =
26
26
{
27
27
Component = " "
28
- Products = [||]
29
28
DoseLimitTarget = NoLimitTarget
30
29
AdjustUnit = None
31
30
DoseUnit = NoUnit
@@ -89,13 +88,9 @@ module DoseRule =
89
88
| _ -> false
90
89
91
90
92
- let hasProducts ( dl : DoseLimit ) = dl.Products |> Array.isEmpty |> not
93
-
94
-
95
91
let hasNoLimits ( dl : DoseLimit ) =
96
92
{ limit with
97
93
Component = dl.Component
98
- Products = dl.Products
99
94
DoseLimitTarget = dl.DoseLimitTarget
100
95
AdjustUnit = dl.AdjustUnit
101
96
DoseUnit = dl.DoseUnit
@@ -739,7 +734,6 @@ cannot map {r}
739
734
740
735
{
741
736
Component = r.Component
742
- Products = r.Products
743
737
DoseLimitTarget =
744
738
if r.Substance |> String.isNullOrWhiteSpace then
745
739
dr.Shape |> ShapeLimitTarget
Original file line number Diff line number Diff line change @@ -34,3 +34,13 @@ open Informedica.Utils.Lib.BCL
34
34
DoseRule.get ()
35
35
|> Array.tryFind (_. Generic >> String.equalsCapInsens " nutrilon pepti 1" )
36
36
|> Option.map _. ComponentLimits
37
+
38
+
39
+ Web.getDataUrlIdGenPres ()
40
+ |> DoseRule.get_
41
+ |> Array.tryFind ( fst >> _. Generic >> String.equalsCapInsens " nutrilon pepti 1" )
42
+ |> Option.map ( fun ( dr , rs ) ->
43
+ dr
44
+ |> DoseRule.addDoseLimits rs
45
+ )
46
+ |> Option.get
Original file line number Diff line number Diff line change @@ -152,8 +152,6 @@ module Types =
152
152
type DoseLimit =
153
153
{
154
154
Component : string
155
- // The list of associated Products of the DoseLimit.
156
- Products : Product array
157
155
DoseLimitTarget : LimitTarget
158
156
// The unit to adjust dosing with
159
157
AdjustUnit : Unit option
Original file line number Diff line number Diff line change @@ -195,8 +195,7 @@ module DrugOrder =
195
195
)
196
196
Dose = lim.Limit
197
197
Substances =
198
- lim.SubstanceLimits
199
- |> Array.collect _. Products
198
+ lim.Products
200
199
|> Array.collect _. Substances
201
200
|> Array.groupBy _. Name
202
201
|> Array.map ( fun ( n , xs ) ->
You can’t perform that action at this time.
0 commit comments