Orderable.Item Module
Creates, changes and checks an item, a substance in a component, with its quantities, concentrations and dose.
Nested modules
| Modules | Description |
|
Holds the serializable shape of an item and converts an item to and from the Dto. |
|
|
Prints the concentrations, the quantities and the dose values of an item as plain text or Markdown. |
Functions and values
| Function or value |
Description
|
|
|
|
|
Full Usage:
Item.create n cmp_qty orb_qty orb_qty_adj cmp_cnc orb_cnc dos
Parameters:
Name
-
The name of the Item
cmp_qty : Quantity
-
The quantity of the item in the Component
orb_qty : Quantity
-
The quantity of the item in the Orderable
orb_qty_adj : QuantityAdjust
-
The quantity of the item in the Orderable per adjust unit
cmp_cnc : Concentration
-
The concentration of the item in the Component
orb_cnc : Concentration
-
The concentration of the item in the Orderable
dos : Dose
-
The dose of the item
Returns: Item
|
Creates an item from its name, its order variables and its dose.
|
Full Usage:
Item.createNew id orbN cmpN itmN
Parameters:
string
-
The Id of the Item
orbN : string
-
The name of the Orderable
cmpN : string
-
The name of the Component
itmN : string
-
The name of the Item
Returns: Item
|
Creates an item with every order variable without a unit.
|
Full Usage:
Item.fromOrdVars ovars itm
Parameters:
OrderVariable list
-
The list of OrderVariables
itm : Item
-
The old Item
Returns: Item
|
Create a new Item from a list of OrderVariables using an old Item.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create a string list from an Item where each string is a variable name with the value range and the Unit
|
GenPRES