Logo GenPRES

Weight Module

Creates the actual, birth, admission and calculation weights of a patient, tells whether the calculation weight is measured and writes each weight as text.

Nested modules

Modules Description

Dto

Holds the Dto of the weights of a patient and converts the weights to and from the Dto. Returns the error of the first invalid weight.

Optics

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

SetGet

Gets the actual, birth, admission and calculation weights 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 : Weight
Returns: string list

admissionToString fixPrec w

Full Usage: admissionToString fixPrec w

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

birthToString fixPrec w

Full Usage: birthToString fixPrec w

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

calculationToString fixPrec w

Full Usage: calculationToString fixPrec w

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

create act birth adm calc

Full Usage: create act birth adm calc

Parameters:
Returns: Weight
act : WeightAtDate list
birth : WeightValue option
adm : WeightAtDate list
calc : Source<WeightAtDate> option
Returns: Weight

fromAgeType gend

Full Usage: fromAgeType gend

Parameters:
Returns: AgeType -> Weight

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

gend : Gender
Returns: AgeType -> Weight

isMeasured w

Full Usage: isMeasured w

Parameters:
Returns: bool

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

w : Weight
Returns: bool

toString fixPrec w

Full Usage: toString fixPrec w

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

Writes the weights. The lists are sorted from the latest date to the earliest, with the undated weights last.

fixPrec : int
w : Weight
Returns: string list * string option * string list * string option

unknown

Full Usage: unknown

Returns: Weight
Returns: Weight

Type something to start searching.