Logo GenPRES

DoseRuleLoader Module

Builds the dose rules, with warnings, from the rows of the DoseRules sheet and the products.

Functions and values

Function or value Description

candidateProducts prods rs

Full Usage: candidateProducts prods rs

Parameters:
Returns: ProductComponent array

Returns the products whose generic equals, ignoring case, a component of one of the rows.

prods : ProductComponent[]
rs : DoseRuleData[]
Returns: ProductComponent array

fromData routeMapping formRoutes prods solutionRules data

Full Usage: fromData routeMapping formRoutes prods solutionRules data

Parameters:
Returns: DoseRule array * Message list

The dose rules of the rows, with the warnings. A dose rule without any limit is kept when a solution rule that applies to it limits every component; when a solution rule applies but does not, it is left out with a warning.

routeMapping : RouteMapping array
formRoutes : FormRoute[]
prods : ProductComponent[]
solutionRules : SolutionRule[]
data : DoseRuleData[]
Returns: DoseRule array * Message list

getData dataUrlId

Full Usage: getData dataUrlId

Parameters:
    dataUrlId : string

Returns: Result<DoseRuleData array, Message list>
dataUrlId : string
Returns: Result<DoseRuleData array, Message list>

group routeMapping prods chunk

Full Usage: group routeMapping prods chunk

Parameters:
Returns: GroupedRuleData array
routeMapping : RouteMapping array
prods : ProductComponent[]
chunk : (string list * DoseRuleData array) array
Returns: GroupedRuleData array

Type something to start searching.