Logo GenPRES

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

get dataUrlId

Full Usage: get dataUrlId

Parameters:
    dataUrlId : string

Returns: Result<Predilution[], Message list>
dataUrlId : string
Returns: Result<Predilution[], Message list>

matches routeMapping loc dep rte indication r

Full Usage: matches routeMapping loc dep rte indication r

Parameters:
    routeMapping : 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.

routeMapping : RouteMapping array
loc : string option
dep : string option
rte : string option
indication : string
r : Predilution
Returns: bool

matchesPatient dat r

Full Usage: matchesPatient dat r

Parameters:
Returns: bool

Whether the age and the weight of a patient are in the ranges of a predilution.

dat : CorePatientData
r : Predilution
Returns: bool

parsePredilution data

Full Usage: parsePredilution data

Parameters:
    data : 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.

data : string[][]
Returns: Result<Predilution[], Message list>

patientCategory r

Full Usage: patientCategory r

Parameters:
Returns: PatientCategory

Returns the age range in days and the weight range in grams of a predilution as a patient category.

r : Predilution
Returns: PatientCategory

Type something to start searching.