Logo GenPRES

RateAdjust Module

Wraps an order variable as an adjusted rate such as mL/kg/hour, with the name part rte_adj, and applies the order variable functions to it.

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: RateAdjust -> RateAdjust

Apply a function to the OrderVariable in a RateAdjust

f : OrderVariable -> OrderVariable
Returns: RateAdjust -> RateAdjust

applyConstraints

Full Usage: applyConstraints

Returns: RateAdjust -> RateAdjust

Apply the constraints of a RateAdjust to the OrderVariable Variable

Returns: RateAdjust -> RateAdjust

applyOnlyMaxConstraints

Full Usage: applyOnlyMaxConstraints

Returns: RateAdjust -> RateAdjust
Returns: RateAdjust -> RateAdjust

convertFirstUnit u

Full Usage: convertFirstUnit u

Parameters:
Returns: RateAdjust -> RateAdjust

Convert the first unit of a RateAdjust (e.g., mL/kg/h -> L/kg/h)

u : Unit
Returns: RateAdjust -> RateAdjust

convertTimeUnit u

Full Usage: convertTimeUnit u

Parameters:
Returns: RateAdjust -> RateAdjust

Convert the time unit of a RateAdjust (e.g., mL/kg/h -> mL/kg/min)

u : Unit
Returns: RateAdjust -> RateAdjust

create n un adj tu

Full Usage: create n un adj tu

Parameters:
    n : Name - The Name of the RateAdjust
    un : Unit - The Unit of the RateAdjust
    adj : Unit - The Adjust Unit of the RateAdjust
    tu : Unit - The Time Unit of the RateAdjust

Returns: RateAdjust

Create a RateAdjust with name n

n : Name

The Name of the RateAdjust

un : Unit

The Unit of the RateAdjust

adj : Unit

The Adjust Unit of the RateAdjust

tu : Unit

The Time Unit of the RateAdjust

Returns: RateAdjust

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: RateAdjust

Create a RateAdjust from a Dto

dto : Dto
Returns: RateAdjust

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> RateAdjust -> RateAdjust

Replaces a RateAdjust with the OrderVariable of the same name from a list, when the list has one.

Returns: OrderVariable list -> RateAdjust -> RateAdjust

hasConstraints

Full Usage: hasConstraints

Returns: RateAdjust -> bool

Check whether a RateAdjust has constraints

Returns: RateAdjust -> bool

hasNormValue

Full Usage: hasNormValue

Returns: RateAdjust -> bool
Returns: RateAdjust -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: RateAdjust -> bool

Check whether a RateAdjust is non-zero positive

Returns: RateAdjust -> bool

isSolved

Full Usage: isSolved

Returns: RateAdjust -> bool

Check whether a RateAdjust is solved

Returns: RateAdjust -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: RateAdjust -> bool

Check whether a RateAdjust is within its constraints

useCalc : bool
Returns: RateAdjust -> bool

name

Full Usage: name

Returns: string
Returns: string

setNthValue nth

Full Usage: setNthValue nth

Parameters:
    nth : int

Returns: RateAdjust -> RateAdjust

Set the variable to its nth value, counted from 0.

nth : int
Returns: RateAdjust -> RateAdjust

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: RateAdjust -> RateAdjust

Set a RateAdjust to non-zero positive values

Returns: RateAdjust -> RateAdjust

toDto

Full Usage: toDto

Returns: RateAdjust -> Dto

Create a Dto for a RateAdjust

Returns: RateAdjust -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a RateAdjust

arg0 : RateAdjust
Returns: OrderVariable

toString

Full Usage: toString

Returns: RateAdjust -> string

Turn a RateAdjust to a string

Returns: RateAdjust -> string

toStringWithConstraints

Full Usage: toStringWithConstraints

Returns: RateAdjust -> string

Get a string representation of a RateAdjust (including constraints)

Returns: RateAdjust -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> RateAdjust -> string

Get a ValueUnit Markdown representation of a RateAdjust

Returns: int -> RateAdjust -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> RateAdjust -> string

Get a ValueUnit string representation of a RateAdjust

Returns: int -> RateAdjust -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: RateAdjust -> string option

Gets the value set of a RateAdjust as a Dutch string; None without a value set.

Returns: RateAdjust -> string option

Type something to start searching.