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
|
Full Usage:
NormalValueTables.heightSheet
Returns: string
|
The sheet of the heights by age in years.
|
Full Usage:
NormalValueTables.neoHeightSheet
Returns: string
|
The sheet of the heights of the newborn by post-menstrual age in weeks.
|
Full Usage:
NormalValueTables.neoWeightSheet
Returns: string
|
The sheet of the weights of the newborn by post-menstrual age in weeks.
|
Full Usage:
NormalValueTables.ofRows rows
Parameters:
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.
|
Full Usage:
NormalValueTables.parseSheet sheet rows
Parameters:
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.
|
Full Usage:
NormalValueTables.requiredColumns
Returns: string list
|
The columns a normal-value sheet must have.
|
Full Usage:
NormalValueTables.sheets
Returns: string list
|
The names of the four normal-value sheets.
|
Full Usage:
NormalValueTables.weightSheet
Returns: string
|
The sheet of the weights by age in years.
|
GenPRES