Recipe Module
Returns the effects of each recipe, a step or percentile on a variable or a recalculation, and returns the recalculation recipe for a variable on the schedule of an order.
Functions and values
| Function or value |
Description
|
Full Usage:
componentOrderableQuantityStep name ord
Parameters:
string
ord : Order
Returns: OrderEffect list
|
The step of the orderable quantity of the component name: keeps the frequency, the orderable quantities of the other components, the rate, the order count, the invariants and, with one component, the dose quantity. The orderable quantity of the orderable goes to its min and increment; with more than one component the dose quantity goes to its min and increment and the dose count to 1.
|
|
|
Full Usage:
forReCalcCommand ovarRef ord
Parameters:
OrderVariableReference
ord : Order
Returns: Recipe option
|
Returns the recalculation recipe for the variable on the schedule of the order: Dose, Per time or Time. Returns None for a variable that no recipe recalculates on that schedule, and for an item dose of a component without dose constraints.
|
Full Usage:
freeUndetermined kept stays
Parameters:
OrderVariableReference list
stays : OrderVariableReference list
Returns: OrderEffect
|
Sets every variable that the variables in kept do not determine back to any positive value, except the variables in stays, such as the target of a step, which gets the value of the step.
|
|
Returns the references to the orderable quantity of each component, the preparation that a recipe does not change.
|
|
Returns the dose rate reference when the schedule has an administration time, so a step keeps the rate.
|
Full Usage:
keptWithinConstraints ord refs
Parameters:
Order
refs : OrderVariableReference list
Returns: OrderVariableReference list
|
Returns the references in refs whose variables lie within their constraints, so a variable that a step moved outside its constraints is set back by the recalculation.
|
|
The percentile of the dose quantity: keeps the frequency, the preparation, the order count and the invariants. The dose quantity goes to its defined constraints up to the orderable quantity, the adjusted dose quantity and the dose rate to their defined constraints, the dose count to at least 1, and on a schedule with a time the time to its calculated constraints.
|
|
The step of the dose quantity: keeps the frequency, the rate, the order count, the invariants and, with more than one component, the preparation. The dose count goes to 1 with one component, to at least 1 with more. The orderable quantity of a single component is freed with the rest, and so keeps its increment.
|
|
The step of the dose rate: keeps the frequency, the dose quantity, the preparation, the order count and the invariants, so the time and the rates of the components and items follow the rate.
|
|
The recalculation of the kind Dose: keeps the frequency, the order count and the invariants. The preparation is not kept, because a fixed preparation limits the dose to the preparation divided by the dose count, a single value when the dose count has one value.
|
|
The recalculation of the kind Per time: keeps the order count and the invariants, but not the frequency, because the dose per time is the dose quantity times the frequency. When the order has one component and the calculated constraints of the dose quantity hold one value, only the product can change the dose per time, so the component quantity and the item quantities and concentrations of that component are not kept either.
|
|
The recalculation of the kind Time: keeps the frequency, the order count and the invariants. It also keeps the preparation and the dose quantity, except when the preparation is outside its constraints or the time is fixed. A fixed time ties the dose to the rate, and a dose count with one value ties the preparation to the dose.
|
|
The step of the frequency: keeps the dose quantity, the preparation, the rate, the order count and the invariants, so the doses per time follow the frequency.
|
Full Usage:
setBackUndetermined ord kept
Parameters:
Order
kept : OrderVariableReference list
Returns: OrderEffect
|
Sets every variable that the variables in kept, within their constraints, do not determine back to its calculated constraints.
|
Full Usage:
setFloor ovarRef target
Parameters:
OrderVariableReference
target : SetBackTo
Returns: OrderEffect
|
Returns the effect that sets the variable back to the target.
|
GenPRES