Logo GenPRES

Dto Module

Holds the serializable shape of an order plan, with the patient data, the filtered ids, every context, the totals and the norms, and converts a plan to and from the Dto. Reading returns a BrokenLink error for every context with a link error.

Types

Type Description

Dto

Functions and values

Function or value Description

fromDto today dto

Full Usage: fromDto today dto

Parameters:
Returns: Result<OrderPlan, DtoError list>

Reads an order plan from a Dto. Returns the errors of the patient data, the contexts and the totals; when these read, returns a BrokenLink error for every context with a link error. The links are checked on the whole plan, so the order of the contexts does not matter.

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

toDto plan

Full Usage: toDto plan

Parameters:
Returns: Dto
plan : OrderPlan
Returns: Dto

Type something to start searching.