Logo GenPRES

Estimates Module

Estimates the weight and the height of a patient under 18 years from the normal-value tables by gender, age and post-menstrual age. Returns no estimate without an age.

Functions and values

Function or value Description

Estimates.estimate steps pct

Full Usage: Estimates.estimate steps pct

Parameters:
Returns: Percentiles<int<'u>>
Type parameters: 'u

Truncates table percentiles to whole numbers and rounds the mean to the nearest step.

steps : int<'u>[]
pct : Percentiles<float<'u>>
Returns: Percentiles<int<'u>>

Estimates.nearestPercentiles gender age rows

Full Usage: Estimates.nearestPercentiles gender age rows

Parameters:
Returns: Percentiles<float<'u>> option
Type parameters: 'age, 'u

Returns the nearest percentiles at an age for a gender. For an unknown gender, returns the average of the male and the female percentiles.

gender : Gender
age : float<'age>
rows : NormalValue<'age, 'u> list
Returns: Percentiles<float<'u>> option

Estimates.nearestStep steps v

Full Usage: Estimates.nearestStep steps v

Parameters:
    steps : ^a[]
    v : ^b

Returns: ^a
Modifiers: inline
Type parameters: ^a, ^b, ^c (requires (static member op_Subtraction : ^b * ^a -> ^c) and (static member op_Subtraction : ^b * ^a -> ^c) and (static member Abs : ^c -> ^c) and comparison)

The step nearest to a value: the lower step on a tie, and the first or last step for a value beyond the steps. The steps are in ascending order.

steps : ^a[]
v : ^b
Returns: ^a

Estimates.neonatalWeeks pma rows

Full Usage: Estimates.neonatalWeeks pma rows

Parameters:
Returns: float<MeasureProduct<week, MeasureOne>> option
Type parameters: 'u

Returns the post-menstrual age in weeks when the neonatal table has a row at or above it; None otherwise, so an older infant gets the age table and not the value of the last neonatal row.

pma : AgeWeeksDays option
rows : NormalValue<MeasureProduct<week, MeasureOne>, 'u> list
Returns: float<MeasureProduct<week, MeasureOne>> option

Estimates.none

Full Usage: Estimates.none

Returns: Estimates

Estimates without a weight and without a height.

Returns: Estimates

Estimates.ofAge tables calculationWeightsAndHeights gender age pma

Full Usage: Estimates.ofAge tables calculationWeightsAndHeights gender age pma

Parameters:
Returns: Estimates

Estimates the weight and height from the tables for a gender, an age and a post-menstrual age, with the mean rounded to the nearest calculation weight or height; none without an age or from 18 years. Uses the neonatal table when it has a row at or above the post-menstrual age, otherwise the age table. A weight from the age table has its 3rd and 97th percentiles truncated to whole kg.

tables : NormalValueTables
calculationWeightsAndHeights : CalculationWeightsAndHeights
gender : Gender
age : AgeValue option
pma : AgeWeeksDays option
Returns: Estimates

Estimates.percentilesOfGender rows age gender

Full Usage: Estimates.percentilesOfGender rows age gender

Parameters:
Returns: Percentiles<float<'u>> option
Type parameters: 'age, 'u

Returns the percentiles of the row nearest to the age for a gender; None when the table has no row for the gender.

rows : NormalValue<'age, 'u> list
age : float<'age>
gender : Gender
Returns: Percentiles<float<'u>> option

Estimates.tableYears age

Full Usage: Estimates.tableYears age

Parameters:
Returns: float<MeasureProduct<year, MeasureOne>>

Returns the age in years, with the months as a fraction, to read the age tables at.

age : AgeValue
Returns: float<MeasureProduct<year, MeasureOne>>

Estimates.toWhole v

Full Usage: Estimates.toWhole v

Parameters:
Returns: int<'u>
Type parameters: 'u

Truncates a value to a whole number in its unit.

v : float<'u>
Returns: int<'u>

Type something to start searching.