Logo GenPRES

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

componentOrderableQuantityStep name ord

Full Usage: componentOrderableQuantityStep name ord

Parameters:
    name : 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.

name : string
ord : Order
Returns: OrderEffect list

effects recipe ord

Full Usage: effects recipe ord

Parameters:
Returns: OrderEffect list

The effects of a recipe on the order.

recipe : Recipe
ord : Order
Returns: OrderEffect list

forReCalcCommand ovarRef ord

Full Usage: forReCalcCommand ovarRef ord

Parameters:
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.

ovarRef : OrderVariableReference
ord : Order
Returns: Recipe option

freeUndetermined kept stays

Full Usage: freeUndetermined kept stays

Parameters:
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.

kept : OrderVariableReference list
stays : OrderVariableReference list
Returns: OrderEffect

keptPreparation ord

Full Usage: keptPreparation ord

Parameters:
Returns: OrderVariableReference list

Returns the references to the orderable quantity of each component, the preparation that a recipe does not change.

ord : Order
Returns: OrderVariableReference list

keptRate ord

Full Usage: keptRate ord

Parameters:
Returns: OrderVariableReference list

Returns the dose rate reference when the schedule has an administration time, so a step keeps the rate.

ord : Order
Returns: OrderVariableReference list

keptWithinConstraints ord refs

Full Usage: keptWithinConstraints ord refs

Parameters:
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.

ord : Order
refs : OrderVariableReference list
Returns: OrderVariableReference list

orderableDoseQuantityPercentile ord

Full Usage: orderableDoseQuantityPercentile ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

orderableDoseQuantityStep ord

Full Usage: orderableDoseQuantityStep ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

orderableDoseRateStep ord

Full Usage: orderableDoseRateStep ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

reCalcDose ord

Full Usage: reCalcDose ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

reCalcPerTime ord

Full Usage: reCalcPerTime ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

reCalcTime ord

Full Usage: reCalcTime ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

scheduleFrequencyStep ord

Full Usage: scheduleFrequencyStep ord

Parameters:
Returns: OrderEffect list

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.

ord : Order
Returns: OrderEffect list

setBackUndetermined ord kept

Full Usage: setBackUndetermined ord kept

Parameters:
Returns: OrderEffect

Sets every variable that the variables in kept, within their constraints, do not determine back to its calculated constraints.

ord : Order
kept : OrderVariableReference list
Returns: OrderEffect

setFloor ovarRef target

Full Usage: setFloor ovarRef target

Parameters:
Returns: OrderEffect

Returns the effect that sets the variable back to the target.

ovarRef : OrderVariableReference
target : SetBackTo
Returns: OrderEffect

Type something to start searching.