Logo GenPRES

Dto Module

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.

Types

Type Description

Dto

Functions and values

Function or value Description

dto ()

Full Usage: dto ()

Parameters:
    () : unit

Returns: Dto
() : unit
Returns: Dto

fromDto today dto

Full Usage: fromDto today dto

Parameters:
Returns: Result<Weight, ValidationErrors>

Validates a Dto as weights. Returns the error of the first invalid weight: a value outside the bounds, or a date after today.

today : DateTime
dto : Dto
Returns: Result<Weight, ValidationErrors>

toDto w

Full Usage: toDto w

Parameters:
Returns: Dto
w : Weight
Returns: Dto

Type something to start searching.