Logo GenPRES

Models Module

Holds the constructors, the empty values and the logic for the shared types, used by both the client and the server.

Types and nested modules

Type/Module Description

Formulary

Holds the empty formulary, without options, choices, patient data or text.

GestationalAge

Reads the gestational age of a patient and tells whether the gestational age may be given, or is required and missing.

Intervention

Holds the empty intervention, with every text empty and every number absent.

NutritionCategory

Returns the Dutch display name of a nutrition category.

Order

Holds the constructors for the shared order record and for the records an order is built from.

OrderContext

Holds the empty order context and the changes a user makes to an order context: filter choices, diluent, components, scenario and order variable values.

OrderPlan

Creates an order plan and returns the orders of an order plan and the order contexts counted in the totals of an order plan.

OrderScenario

Creates an order scenario from the picks, the option lists, the text blocks, the order and the rule flags, without reconstitution or predilution text.

Parenteralia

Holds the empty parenteralia, without options, choices, patient data or text.

PatientData

Holds the empty patient data, the constructors, the readers and the validation of patient data, shared by the client and the server. Patient data can be incomplete, so validate checks only the minimum. This module calculates no age: the server sets the ages, the adult mark, the gestational age and the estimates with GenCORE, and ServerApi.Patient.toCore maps the patient data to GenCORE patient data. Patient logic that only the server needs belongs in GenFORM or GenCORE.

Totals

Holds the empty intake totals, in which no total is calculated.

PatientError

The reason patient data are not valid.

Type something to start searching.