Logo GenPRES

HeightAtDate Module

Creates a height with an optional measurement date and writes the height with the date.

Nested modules

Modules Description

Dto

Holds the Dto of a height at a date and converts a height at a date to and from the Dto. Returns a validation error for a height outside the bounds or a date after today.

Optics

Holds a getter and setter pair for the date and for the height of a height at a date.

SetGet

Gets the date and the height of a height at a date.

Functions and values

Function or value Description

create dt hv

Full Usage: create dt hv

Parameters:
Returns: HeightAtDate

Creates a height at a date; a date of None gives a height without a date.

dt : DateTime option
hv : HeightValue
Returns: HeightAtDate

fromAgeType gend

Full Usage: fromAgeType gend

Parameters:
Returns: AgeType -> HeightAtDate option

Returns the normal height of an age type for a gender as an undated height.

gend : Gender
Returns: AgeType -> HeightAtDate option

toString fixPrec h

Full Usage: toString fixPrec h

Parameters:
Returns: string

Writes the height, followed by the date in brackets when the height has a date.

fixPrec : int
h : HeightAtDate
Returns: string

undated

Full Usage: undated

Returns: HeightValue -> HeightAtDate

Creates a height without a date.

Returns: HeightValue -> HeightAtDate

Type something to start searching.