Logo GenPRES

Dto Module

Holds the serializable shape of an order context and converts a context to and from the Dto. Reading returns the errors of the filter, the patient data and every scenario.

Types

Type Description

Dto

Functions and values

Function or value Description

fromDto today dto

Full Usage: fromDto today dto

Parameters:
Returns: Result<OrderContext, DtoError list>

Reads an order context from a Dto on today's date. Returns the errors of the filter, the patient data and every scenario.

today : DateTime
dto : Dto
Returns: Result<OrderContext, DtoError list>

toDto ctx

Full Usage: toDto ctx

Parameters:
Returns: Dto
ctx : OrderContext
Returns: Dto

Type something to start searching.