Logo GenPRES

Reconstitution Module

Parses the Reconstitution sheet and selects the reconstitution rules for a location, a department, a route and a patient.

Functions and values

Function or value Description

filter routeMapping filter rs

Full Usage: filter routeMapping filter rs

Parameters:
Returns: Reconstitution array
routeMapping : RouteMapping array
filter : DoseFilter
rs : Reconstitution[]
Returns: Reconstitution array

get dataUrlId

Full Usage: get dataUrlId

Parameters:
    dataUrlId : string

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

matches routeMapping loc dep rte r

Full Usage: matches routeMapping loc dep rte r

Parameters:
Returns: bool

Whether a reconstitution applies to a location, a department and a route, as matchesSetting decides.

routeMapping : RouteMapping array
loc : string option
dep : string option
rte : string option
r : Reconstitution
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 reconstitution.

dat : CorePatientData
r : Reconstitution
Returns: bool

parseReconstitution data

Full Usage: parseReconstitution data

Parameters:
    data : string array array

Returns: Result<Reconstitution array, Message list>

Parses the Reconstitution sheet; the first row holds the column names. A row without a solvent or a solvent volume above 0 mL is left out. Returns an error when a column is missing.

data : string array array
Returns: Result<Reconstitution array, 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 reconstitution as a patient category.

r : Reconstitution
Returns: PatientCategory

Type something to start searching.