Logo GenPRES

TotalAdjust Module

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

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: TotalAdjust -> TotalAdjust

Apply a function to the OrderVariable in a TotalAdjust

f : OrderVariable -> OrderVariable
Returns: TotalAdjust -> TotalAdjust

applyConstraints

Full Usage: applyConstraints

Returns: TotalAdjust -> TotalAdjust

Apply the constraints of a TotalAdjust to the OrderVariable Variable

Returns: TotalAdjust -> TotalAdjust

applyOnlyMaxConstraints

Full Usage: applyOnlyMaxConstraints

Returns: TotalAdjust -> TotalAdjust

convertFirstUnit u

Full Usage: convertFirstUnit u

Parameters:
Returns: TotalAdjust -> TotalAdjust

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

u : Unit
Returns: TotalAdjust -> TotalAdjust

create n un adj

Full Usage: create n un adj

Parameters:
    n : Name - The Name of the TotalAdjust
    un : Unit - The Unit of the TotalAdjust
    adj : Unit - The Adjust Unit of the TotalAdjust

Returns: TotalAdjust

Create a TotalAdjust with name n

n : Name

The Name of the TotalAdjust

un : Unit

The Unit of the TotalAdjust

adj : Unit

The Adjust Unit of the TotalAdjust

Returns: TotalAdjust

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: TotalAdjust

Create a TotalAdjust from a Dto

dto : Dto
Returns: TotalAdjust

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> TotalAdjust -> TotalAdjust

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

Returns: OrderVariable list -> TotalAdjust -> TotalAdjust

hasConstraints

Full Usage: hasConstraints

Returns: TotalAdjust -> bool
Returns: TotalAdjust -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: TotalAdjust -> bool

Check whether a TotalAdjust is non-zero positive

Returns: TotalAdjust -> bool

isSolved

Full Usage: isSolved

Returns: TotalAdjust -> bool

Check whether a TotalAdjust is solved

Returns: TotalAdjust -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: TotalAdjust -> bool

Check whether a TotalAdjust is within its constraints

useCalc : bool
Returns: TotalAdjust -> bool

name

Full Usage: name

Returns: string
Returns: string

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: TotalAdjust -> TotalAdjust

Set a TotalAdjust to non-zero positive values

Returns: TotalAdjust -> TotalAdjust

toDto

Full Usage: toDto

Returns: TotalAdjust -> Dto

Create a Dto for a TotalAdjust

Returns: TotalAdjust -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a TotalAdjust

arg0 : TotalAdjust
Returns: OrderVariable

toString

Full Usage: toString

Returns: TotalAdjust -> string

Turn a TotalAdjust to a string

Returns: TotalAdjust -> string

toStringWithConstraints

Full Usage: toStringWithConstraints

Returns: TotalAdjust -> string

Get a string representation of a TotalAdjust with exact values and without the constraints

Returns: TotalAdjust -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> TotalAdjust -> string

Get a ValueUnit Markdown representation of a TotalAdjust

Returns: int -> TotalAdjust -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> TotalAdjust -> string

Get a ValueUnit string representation of a TotalAdjust

Returns: int -> TotalAdjust -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: TotalAdjust -> string option

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

Returns: TotalAdjust -> string option

Type something to start searching.