EquationMapping Module
Holds the table of order equations and returns the sum and product equations of an order for a dose type, with variable names filled in.
Types and nested modules
| Type/Module | Description |
|
Holds the name parts of the order variables and the numbers of the five dose types, 3 to 7. |
|
|
An equation with the dose types it applies to and its marks. |
|
|
A mark of an equation in the equations table, one per mark column of the Equations sheet. |
Functions and values
| Function or value |
Description
|
Full Usage:
allDoseTypes
Returns: int list
|
The five dose types: discontinuous (3), continuous (4), timed (5), once (6) and once timed (7).
|
Full Usage:
contOnly
Returns: int list
|
|
Full Usage:
contTimedOnceTimed
Returns: int list
|
|
Full Usage:
discContTimed
Returns: int list
|
|
Full Usage:
discTimed
Returns: int list
|
|
|
The order equations, each with the dose types it applies to and its marks. The equations are fixed in code; the Equations sheet documents them.
|
Full Usage:
getEqsMapping ord indx
Parameters:
Order
indx : int
Returns: EquationMapping * EquationMapping
|
Returns the sum mapping and the product mapping of the order for the dose type indx, with the placeholders in the equations replaced by the order, orderable, component and item names.
|
|
Returns the equation rows for the dose type indx: 3 discontinuous, 4 continuous, 5 timed, 6 once or 7 once timed. The result is memoized.
|
|
Returns true when the defined values of the item component concentration hold exactly one value. Returns false for an item without defined values.
|
|
Returns true when a mark holds or not depending on the order. The other marks do not filter the equations.
|
|
Returns true when the order has more than two components and every item has one component concentration. The item concentrations in the orderable then follow from the tie equations alone; with more concentrations per item they would not be exact.
|
|
|
Full Usage:
row eq doseTypes marks
Parameters:
string
doseTypes : int list
marks : Mark list
Returns: EquationRow
|
Creates an equation row from an equation, its dose types and its marks.
|
Full Usage:
selectEquations indx marks
Parameters:
int
marks : Mark list
Returns: string list * string list
|
Returns the sum equations and the product equations for the dose type indx, given the condition marks that hold for an order. A row is selected when each of its condition marks is in marks.
|
Full Usage:
timedOnly
Returns: int list
|
|
|
Returns true when an adjusted dose quantity, per time, rate or total of the orderable, a component or an item has constraints. Without such constraints the adjusted dose equations do not change the other variables.
|
|
Returns true when the quantity in the orderable per adjust unit has constraints for the orderable, a component or an item of the order.
|
GenPRES