Logo GenPRES

Target Module

Reads and changes the order variable in an order that a target addresses.

Functions and values

Function or value Description

componentVar prop cmp

Full Usage: componentVar prop cmp

Parameters:
Returns: OrderVariable

Returns the variable of a component property.

prop : ComponentProperty
cmp : Component
Returns: OrderVariable

itemVar prop itm

Full Usage: itemVar prop itm

Parameters:
Returns: OrderVariable

Returns the variable of an item property.

prop : ItemProperty
itm : Item
Returns: OrderVariable

map target f ord

Full Usage: map target f ord

Parameters:
Returns: Order

Applies f to the variable the target addresses; returns the order unchanged when it has no such variable. A component concentration is also changed in the first component, as the dose dialog does.

target : Target
f : OrderVariable -> OrderVariable
ord : Order
Returns: Order

mapComponentVar prop f cmp

Full Usage: mapComponentVar prop f cmp

Parameters:
Returns: Component

Applies f to the variable of a component property.

prop : ComponentProperty
f : OrderVariable -> OrderVariable
cmp : Component
Returns: Component

mapItemVar prop f itm

Full Usage: mapItemVar prop f itm

Parameters:
Returns: Item

Applies f to the variable of an item property.

prop : ItemProperty
f : OrderVariable -> OrderVariable
itm : Item
Returns: Item

tryGet target ord

Full Usage: tryGet target ord

Parameters:
Returns: OrderVariable option

Returns the variable the target addresses in the order; None when the order has no such component or item.

target : Target
ord : Order
Returns: OrderVariable option

Type something to start searching.