Logo GenPRES

Dto Module

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.

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<Height, ValidationErrors>

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

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

toDto w

Full Usage: toDto w

Parameters:
Returns: Dto
w : Height
Returns: Dto

Type something to start searching.