Orderable.Dose Module
Creates a dose from its quantity, per time, rate and total variables, plain and adjusted, and applies constraints to and checks the dose variables.
Nested modules
| Modules | Description |
|
Holds the serializable shape of a dose and converts a dose to and from the Dto. |
|
|
Prints the quantity, per time and rate of a dose, plain or adjusted, as plain text or Markdown, and the defined constraints of each as plain text. |
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
create qty ptm rte tot qty_adj ptm_adj rte_adj tot_adj
Parameters:
Quantity
-
The quantity of the dose
ptm : PerTime
-
The per time of the dose
rte : Rate
-
The rate of the dose
tot : Total
-
The total of the dose
qty_adj : QuantityAdjust
-
The quantity adjust of the dose
ptm_adj : PerTimeAdjust
-
The per time adjust of the dose
rte_adj : RateAdjust
-
The rate adjust of the dose
tot_adj : TotalAdjust
-
The total adjust of the dose
Returns: Dose
|
Creates a dose from its order variables.
|
|
|
Full Usage:
fromOrdVars ovars dos
Parameters:
OrderVariable list
-
The list of OrderVariables
dos : Dose
-
The old Dose
Returns: Dose
|
Create a new Dose from a list of OrderVariables using an old Dose.
|
|
|
|
Whether the rules constrain a dose: one of its dose variables has defined constraints.
|
Full Usage:
isPerTimeWithinConstraints useCalc dos
Parameters:
bool
dos : Dose
Returns: bool
|
|
Full Usage:
isQuantityWithinConstraints useCalc dos
Parameters:
bool
dos : Dose
Returns: bool
|
|
|
|
Check if all variables in a Dose are solved
|
|
|
|
|
|
|
|
Full Usage:
setDose set sch setRate dos
Parameters:
OrderVariable -> OrderVariable
-
The function that sets the value of the order variable
sch : Schedule
-
The schedule of the order
setRate : bool
-
Whether a timed or once timed order sets the rate instead of the quantity
dos : Dose
-
The Dose
Returns: Dose
The Dose with the value set
|
Applies set to the dose rate of a continuous order, and to the dose quantity of the other orders. A timed or once timed order applies set to the dose rate when setRate is true.
|
|
|
|
|
|
|
|
|
|
|
|
|
Create a string list from a Dose where each string is a variable name with the value range and the Unit
|
GenPRES