Mapping Module
Reads the Units, Routes, FormRoute, ValidForms, Totals, RuleSets and LinkRules sheets into rows and maps unit names and route names.
Nested modules
| Modules | Description |
|
Holds the names of the sheets read by the mapping functions. |
Functions and values
| Function or value |
Description
|
Full Usage:
eqsRoute routeMapping r1 r2
Parameters:
RouteMapping array
r1 : string option
r2 : string
Returns: bool
|
|
Full Usage:
filterFormRoutes routeMapping mapping rte form unt
Parameters:
RouteMapping array
mapping : FormRoute[]
rte : string
form : string
unt : Unit
Returns: FormRoute array
|
|
Full Usage:
formRouteRow unitMapping
Parameters:
UnitMapping array
Returns: (string -> string) -> (string -> float option) -> FormRoute
|
Map one row of the "FormRoute" sheet, using the unit mappings to parse the units. The dose limits are read only when the dose unit, or else the unit, resolves.
|
|
|
Full Usage:
getFormRoutes dataUrlId unitMapping
Parameters:
string
unitMapping : UnitMapping array
Returns: Result<FormRoute array, Message list>
|
|
Full Usage:
getLinkRules dataUrlId
Parameters:
string
Returns: Result<LinkRuleData array, Message list>
|
Returns the rows of the "LinkRules" sheet, blank rows included, so each row keeps its sheet row number.
|
Full Usage:
getRouteMapping dataUrlId
Parameters:
string
Returns: Result<RouteMapping array, Message list>
|
|
Full Usage:
getRuleSets dataUrlId
Parameters:
string
Returns: Result<RuleSetData array, Message list>
|
Returns the rows of the "RuleSets" sheet, without the rows that have no category.
|
|
|
Full Usage:
getTotals dataUrlId
Parameters:
string
Returns: Result<TotalsData array, Message list>
|
|
Full Usage:
getUnitMapping dataUrlId
Parameters:
string
Returns: Result<UnitMapping array, Message list>
|
|
|
|
Full Usage:
linkRuleRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: LinkRuleData
|
A row of the "LinkRules" sheet, every cell trimmed.
|
Full Usage:
mapRoute mapping s
Parameters:
RouteMapping array
s : string
Returns: string option
|
|
Full Usage:
mapUnit mapping s
Parameters:
UnitMapping array
s : string
Returns: Unit option
|
|
|
|
Full Usage:
requiresReconstitution routeMapping formRoutes (rtes, unt, form)
Parameters:
RouteMapping array
formRoutes : FormRoute[]
rtes : string array
unt : Unit
form : string
Returns: bool
|
|
Full Usage:
routeMappingRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: RouteMapping
|
Map one row of the "Routes" sheet. A separate function so the column-contract test runs without IO.
|
Full Usage:
routeOption rte
Parameters:
string
Returns: string option
|
Returns None for an empty route, which asks for no route, and the route otherwise.
|
Full Usage:
ruleSetRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: RuleSetData
|
Map one row of the "RuleSets" sheet, every cell trimmed; an empty Loc or Dep is None.
|
Full Usage:
totalsRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: TotalsData
|
Map one row of the "Totals" sheet.
|
Full Usage:
unitMappingRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: UnitMapping
|
Map one row of the "Units" sheet.
|
Full Usage:
validFormRow get arg2
Parameters:
string -> string
arg1 : string -> float option
Returns: string
|
Map one row of the "ValidForms" sheet.
|
GenPRES