Logo GenPRES

Height Module

Creates the actual, birth and calculation heights of a patient, tells whether the calculation height is measured and writes each height as text.

Nested modules

Modules Description

Dto

Holds the Dto of the heights of a patient and converts the heights to and from the Dto. Returns the error of the first invalid height.

Optics

Holds a getter and setter pair for the actual, calculation and birth heights of a patient.

SetGet

Gets the actual, birth and calculation heights of a patient.

Functions and values

Function or value Description

actualToString fixPrec w

Full Usage: actualToString fixPrec w

Parameters:
Returns: string list
fixPrec : int
w : Height
Returns: string list

birthToString fixPrec w

Full Usage: birthToString fixPrec w

Parameters:
Returns: string option
fixPrec : int
w : Height
Returns: string option

calculationToString fixPrec w

Full Usage: calculationToString fixPrec w

Parameters:
Returns: string option
fixPrec : int
w : Height
Returns: string option

create act birth calc

Full Usage: create act birth calc

Parameters:
Returns: Height
act : HeightAtDate list
birth : HeightValue option
calc : Source<HeightAtDate> option
Returns: Height

fromAgeType gend

Full Usage: fromAgeType gend

Parameters:
Returns: AgeType -> Height

Creates a height with the normal height of the age type as an estimated calculation height without a date.

gend : Gender
Returns: AgeType -> Height

isMeasured h

Full Usage: isMeasured h

Parameters:
Returns: bool

True when the calculation height is measured; false for an estimate or without a calculation height.

h : Height
Returns: bool

toString fixPrec h

Full Usage: toString fixPrec h

Parameters:
Returns: string list * string option * string option

Writes the heights. The list is sorted from the latest date to the earliest, with the undated heights last.

fixPrec : int
h : Height
Returns: string list * string option * string option

unknown

Full Usage: unknown

Returns: Height
Returns: Height

Type something to start searching.