Logo GenPRES

DoseRange Module

Creates a dose range with normal and absolute limits, each also per kg and per m2, and calculates and converts dose ranges and turns them into text.

Functions that handles a DoseRange. A DoseRange models a medication dose range with lower and upper limits

  • Normthe 'normal' non-adjusted upper and lower limits
  • NormWeightthe 'normal' by weight adjusted upper and lower limits
  • NormBSAthe 'normal' by BSA adjusted upper and lower limits
  • Absthe 'absolute' non-adjusted upper and lower limits
  • AbsWeightthe 'absolute' by weight adjusted upper and lower limits
  • AbsBSAthe 'absolute' by BSA adjusted upper and lower limits

Nested modules

Modules Description

Dto

Holds the Dto of a dose range and the conversions to and from the Dto.

Optics

Holds the lenses on the limits and the adjust units of a dose range.

Functions and values

Function or value Description

calc op dr1 dr2

Full Usage: calc op dr1 dr2

Parameters:
Returns: DoseRange The resulting DoseRange of the calculation

Apply a calculation to a DoseRange.

op : MinMax -> MinMax -> MinMax

The calculation operator

dr1 : DoseRange

The first DoseRange

dr2 : DoseRange

The second DoseRange

Returns: DoseRange

The resulting DoseRange of the calculation

convertTo u dr

Full Usage: convertTo u dr

Parameters:
    u : Unit - The Unit to convert to
    dr : DoseRange - The DoseRange to convert

Returns: DoseRange

Convert the Unit of a DoseRange.

Only converts the substance unit to unit u weight and bsa units remain the same!

u : Unit

The Unit to convert to

dr : DoseRange

The DoseRange to convert

Returns: DoseRange

count vu

Full Usage: count vu

Parameters:
    vu : ValueUnit - The ValueUnit to create the DoseRange

Returns: DoseRange

Creates a DoseRange with the same min and max values and a Count unit.

vu : ValueUnit

The ValueUnit to create the DoseRange

Returns: DoseRange

create norm (arg2, arg2) (arg3, arg3) abs (arg5, arg5) (arg6, arg6)

Full Usage: create norm (arg2, arg2) (arg3, arg3) abs (arg5, arg5) (arg6, arg6)

Parameters:
Returns: DoseRange

Create a DoseRange with a Norm, NormWeight, NormBSA, Abs, AbsWeight and AbsBSA min max values.

Note: units in normWght and absWght are weight units and units in normBSA and absBSA are bsa units.

norm : MinMax
arg1 : MinMax
arg2 : Unit
arg3 : MinMax
arg4 : Unit
abs : MinMax
arg6 : MinMax
arg7 : Unit
arg8 : MinMax
arg9 : Unit
Returns: DoseRange

empty

Full Usage: empty

Returns: DoseRange

An empty DoseRange.

Returns: DoseRange

emptyBSA

Full Usage: emptyBSA

Returns: MinMax * Unit

An empty BSA MinMax.

Returns: MinMax * Unit

emptyWeight

Full Usage: emptyWeight

Returns: MinMax * Unit

An empty Weight MinMax.

Returns: MinMax * Unit

toString ru dr

Full Usage: toString ru dr

Parameters:
    ru : Unit option - The unit to use for the string representation
    dr : DoseRange - The DoseRange to get the string representation of

Returns: string

Get the string representation of a DoseRange.

If the DoseRange is a rate unit, then ru is used.

ru : Unit option

The unit to use for the string representation

dr : DoseRange

The DoseRange to get the string representation of

Returns: string

Type something to start searching.