Logo GenPRES

NormalValueTables Module

Parses the rows of the four normal-value sheets into the tables of weight and height. Returns every error in the rows and every missing sheet.

Functions and values

Function or value Description

NormalValueTables.heightSheet

Full Usage: NormalValueTables.heightSheet

Returns: string

The sheet of the heights by age in years.

Returns: string

NormalValueTables.neoHeightSheet

Full Usage: NormalValueTables.neoHeightSheet

Returns: string

The sheet of the heights of the newborn by post-menstrual age in weeks.

Returns: string

NormalValueTables.neoWeightSheet

Full Usage: NormalValueTables.neoWeightSheet

Returns: string

The sheet of the weights of the newborn by post-menstrual age in weeks.

Returns: string

NormalValueTables.ofRows rows

Full Usage: NormalValueTables.ofRows rows

Parameters:
    rows : Map<string, string[][]>

Returns: Validation<NormalValueTables, NormalValueError>

Builds the tables from the rows of the four sheets, keyed by sheet name. Returns every error of every sheet, with MissingSheet for a sheet that is not in the map.

rows : Map<string, string[][]>
Returns: Validation<NormalValueTables, NormalValueError>

NormalValueTables.parseSheet sheet rows

Full Usage: NormalValueTables.parseSheet sheet rows

Parameters:
    sheet : string
    rows : string[][]

Returns: Validation<NormalValue<'age, 'u> list, NormalValueError>
Type parameters: 'age, 'u

Parses the rows of a normal-value sheet, header first, into a table with the units the caller sets. Returns every error in the rows. A header without rows gives an empty table; no header gives MissingColumns.

sheet : string
rows : string[][]
Returns: Validation<NormalValue<'age, 'u> list, NormalValueError>

NormalValueTables.requiredColumns

Full Usage: NormalValueTables.requiredColumns

Returns: string list

The columns a normal-value sheet must have.

Returns: string list

NormalValueTables.sheets

Full Usage: NormalValueTables.sheets

Returns: string list

The names of the four normal-value sheets.

Returns: string list

NormalValueTables.weightSheet

Full Usage: NormalValueTables.weightSheet

Returns: string

The sheet of the weights by age in years.

Returns: string

Type something to start searching.