Logo GenPRES

OrderEffect Type

One effect on an order. An action is run as a list of effects.

Union cases

Union case Description

CoarsenIncrements maxCount

Full Usage: CoarsenIncrements maxCount

Parameters:
    maxCount : int

Makes the increment of the volume quantities larger, so the orderable quantity has at most maxCount values. Does not apply to a continuous order.

maxCount : int

Narrows the current range of the variable to a single value.

Item1 : OrderVariableReference
Item2 : ValueUnit

Drops the values a search proves impossible from the list of the variable and solves the order with values, so the other lists follow. A value the search cannot decide stays. Runs only when the dose count has more than one value, the only case found to offer values that no complete order reaches.

Item : OrderVariableReference

EnumerateOrderVariableValues(ValueCap, RateList, original)

Full Usage: EnumerateOrderVariableValues(ValueCap, RateList, original)

Parameters:

Turns the first component quantity, dose quantity or rate that is a min, increment and max into a list of values and solves the order, until none is left. With an original order, the list also has the value of the variable in that order, when the pruning dropped that value and it lies within the calculated constraints.

Item1 : ValueCap
Item2 : RateList
original : Order option

EnumerateRateValues(ValueCap, RateSelection, original)

Full Usage: EnumerateRateValues(ValueCap, RateSelection, original)

Parameters:

Turns the rate of a timed order into a list once its dose quantity has a single value. With an original order, the list also has the rate of that order, as for EnumerateOrderVariableValues.

Item1 : ValueCap
Item2 : RateSelection
original : Order option

RecalculateConstraints OrderEffect list

Full Usage: RecalculateConstraints OrderEffect list

Parameters:

Calculates the calculated constraints from the defined constraints by running the effects on a copy of the order, so the values of the order stay. When the effects fail, the calculated constraints stay as they are.

Item : OrderEffect list

RecordCalculatedConstraints

Full Usage: RecordCalculatedConstraints

Stores the current range of every variable as its calculated constraints.

SelectNearestComponentQuantity

Full Usage: SelectNearestComponentQuantity

Sets each component quantity to the nearest value above it, else below it, and solves the order with values.

SelectOrderVariableValue(OrderVariableReference, Choice)

Full Usage: SelectOrderVariableValue(OrderVariableReference, Choice)

Parameters:

Narrows the current range of the variable to the value the choice selects from the range at the time the effect runs.

Item1 : OrderVariableReference
Item2 : Choice

SetAllOrderVariableRangesBack SetBackTo

Full Usage: SetAllOrderVariableRangesBack SetBackTo

Parameters:

Sets every variable of the order back to the target.

Item : SetBackTo

SetBackUndetermined(kept, stays, SetBackTo)

Full Usage: SetBackUndetermined(kept, stays, SetBackTo)

Parameters:

Sets back to the target every variable that the variables in kept do not determine, except the variables in stays. A step puts the variable it moves in stays: its value changes and the step sets that value.

kept : OrderVariableReference list
stays : OrderVariableReference list
Item3 : SetBackTo

SetNormDose

Full Usage: SetNormDose

Sets the dose to the median of its values and solves the order for min and max.

Sets the current range of the variable back to the target.

Item1 : OrderVariableReference
Item2 : SetBackTo

SolveOrder SolveMode

Full Usage: SolveOrder SolveMode

Parameters:

Solves the order.

Item : SolveMode

Try OrderEffect list

Full Usage: Try OrderEffect list

Parameters:

Runs the effects in turn. When one fails, the order is returned as it was before the first effect.

Item : OrderEffect list

Unless(OrderCondition list, OrderEffect)

Full Usage: Unless(OrderCondition list, OrderEffect)

Parameters:

Runs the effect only when none of the conditions holds on the order at that time.

Item1 : OrderCondition list
Item2 : OrderEffect

Instance members

Instance member Description

this.IsCoarsenIncrements

Full Usage: this.IsCoarsenIncrements

Returns: bool
Returns: bool

this.IsConstrainOrderVariableRange

Full Usage: this.IsConstrainOrderVariableRange

Returns: bool
Returns: bool

this.IsDropImpossibleValues

Full Usage: this.IsDropImpossibleValues

Returns: bool
Returns: bool

this.IsEnumerateOrderVariableValues

Full Usage: this.IsEnumerateOrderVariableValues

Returns: bool
Returns: bool

this.IsEnumerateRateValues

Full Usage: this.IsEnumerateRateValues

Returns: bool
Returns: bool

this.IsRecalculateConstraints

Full Usage: this.IsRecalculateConstraints

Returns: bool
Returns: bool

this.IsRecordCalculatedConstraints

Full Usage: this.IsRecordCalculatedConstraints

Returns: bool
Returns: bool

this.IsSelectNearestComponentQuantity

Full Usage: this.IsSelectNearestComponentQuantity

Returns: bool
Returns: bool

this.IsSelectOrderVariableValue

Full Usage: this.IsSelectOrderVariableValue

Returns: bool
Returns: bool

this.IsSetAllOrderVariableRangesBack

Full Usage: this.IsSetAllOrderVariableRangesBack

Returns: bool
Returns: bool

this.IsSetBackUndetermined

Full Usage: this.IsSetBackUndetermined

Returns: bool
Returns: bool

this.IsSetNormDose

Full Usage: this.IsSetNormDose

Returns: bool
Returns: bool

this.IsSetOrderVariableRangeBack

Full Usage: this.IsSetOrderVariableRangeBack

Returns: bool
Returns: bool

this.IsSolveOrder

Full Usage: this.IsSolveOrder

Returns: bool
Returns: bool

this.IsTry

Full Usage: this.IsTry

Returns: bool
Returns: bool

this.IsUnless

Full Usage: this.IsUnless

Returns: bool
Returns: bool

Type something to start searching.