Orderable Module
Creates, changes, checks and prints an orderable, which holds the components, the quantities and the dose of what is ordered.
Types and nested modules
| Type/Module | Description |
|
Creates, changes and checks a component of an orderable, with its items, quantities, counts, concentration, dose and products. |
|
|
Creates a dose from its quantity, per time, rate and total variables, plain and adjusted, and applies constraints to and checks the dose variables. |
|
|
Holds the serializable shape of an orderable and converts an orderable to and from the Dto. |
|
|
Creates, changes and checks an item, a substance in a component, with its quantities, concentrations and dose. |
|
|
Prints the orderable quantity, the order quantity, the order count and the dose values of an orderable as plain text or Markdown. |
|
|
|
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
Full Usage:
Orderable.create n orb_qty orb_qty_adj ord_qty ord_cnt dos_cnt dos cc
Parameters:
Name
-
The name of the Orderable
orb_qty : Quantity
-
The quantity of the Orderable
orb_qty_adj : QuantityAdjust
-
The quantity of the Orderable per adjust unit
ord_qty : Quantity
-
The quantity of the Orderable in the Order
ord_cnt : Count
-
The count of the Orderable in the Order
dos_cnt : Count
-
The count of the Orderable dose in the Order
dos : Dose
-
The dose of the Orderable
cc : Component list
-
The list of Components in the Orderable
Returns: Orderable
|
Creates an orderable from its order variables, its dose and its components.
|
Full Usage:
Orderable.createNew id orbN
Parameters:
string
-
The Id of the Orderable
orbN : string
-
The name of the Orderable
Returns: Orderable
|
Creates an orderable without components, with every order variable without a unit.
|
Full Usage:
Orderable.fromOrdVars ovars orb
Parameters:
OrderVariable list
-
The list of OrderVariables
orb : Orderable
-
The old Orderable
Returns: Orderable
The new Orderable
|
Create a new Orderable from a list of OrderVariables using an old Orderable.
|
|
|
|
|
|
|
|
|
|
|
Sets the orderable quantity and every component orderable quantity to one increment from incrs: the smallest on which every component quantity has at most maxCount values, else the largest on which every quantity keeps at least two values. The orderable is unchanged when the component quantities already have at most maxCount values, or when no increment in incrs fits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
Orderable.toOrdVars orb
Parameters:
Orderable
-
The Orderable
Returns: OrderVariable list
|
Return an Orderable as a list of OrderVariables
|
|
Return a list of strings from an Orderable where each string is a variable name with the value range and the Unit
|
|
|
|
GenPRES