Dto Module
Holds the Dto of the patient data, without the patient identity, and converts patient data to and from the Dto. Returns the validation errors of an invalid Dto.
Types
| Type | Description |
|
|
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
fromDto today resources dto
Parameters:
DateTime
resources : PatientDataResources option
dto : Dto
Returns: Result<PatientData, ValidationErrors>
|
Validates a Dto as patient data and calculates the values that follow from it. With the resources, it also sets the estimates and the options. The calculated fields of the Dto are not read. A weight or height dated after today is an error.
|
Full Usage:
parseField field tryFromString s
Parameters:
string
tryFromString : string -> 'a option
s : string
Returns: Result<'a, ValidationErrors>
Type parameters: 'a |
Parses a string with a function. Returns an error that names the field and the string when the function returns None.
|
|
The Dto of patient data. MarkedAdult is true only for a patient that may be marked and is marked.
|
GenPRES