Predilution Module
Parses the Predilution sheet and tests whether a predilution rule applies to a setting, an indication and a patient.
Functions and values
| Function or value |
Description
|
Full Usage:
get dataUrlId
Parameters:
string
Returns: Result<Predilution[], Message list>
|
|
Full Usage:
matches routeMapping loc dep rte indication r
Parameters:
RouteMapping array
loc : string option
dep : string option
rte : string option
indication : string
r : Predilution
Returns: bool
|
Whether a predilution applies to a location, a department, a route and an indication: the setting as matchesSetting decides, and the indication, ignoring case, when the predilution names one.
|
|
Whether the age and the weight of a patient are in the ranges of a predilution.
|
Full Usage:
parsePredilution data
Parameters:
string[][]
Returns: Result<Predilution[], Message list>
|
Parses predilution rules from a table of text whose first row holds the column names. A rule without a diluent, or without a product volume or a diluent volume above 0 mL, is left out. Returns no rules for an empty table, and an error when a column is missing from a table that has rules.
|
|
Returns the age range in days and the weight range in grams of a predilution as a patient category.
|
GenPRES