Logo GenPRES

DoseLimit Module

Creates a dose limit, tests the target and the limits of a dose limit, reads a norm dose and prints dose ranges.

Functions and values

Function or value Description

create tar aun dun qty qta ptm pta rte rta

Full Usage: create tar aun dun qty qta ptm pta rte rta

Parameters:
Returns: DoseLimit
tar : LimitTarget
aun : Unit option
dun : Unit
qty : MinMax
qta : MinMax
ptm : MinMax
pta : MinMax
rte : MinMax
rta : MinMax
Returns: DoseLimit

getNormDose minMax

Full Usage: getNormDose minMax

Parameters:
Returns: ValueUnit option
minMax : MinMax
Returns: ValueUnit option

hasNoLimits dl

Full Usage: hasNoLimits dl

Parameters:
Returns: bool
dl : DoseLimit
Returns: bool

isComponentLimit dl

Full Usage: isComponentLimit dl

Parameters:
Returns: bool
dl : DoseLimit
Returns: bool

isNormDose

Full Usage: isNormDose

Returns: MinMax -> bool
Returns: MinMax -> bool

isShapeLimit dl

Full Usage: isShapeLimit dl

Parameters:
Returns: bool
dl : DoseLimit
Returns: bool

isSubstanceLimit dl

Full Usage: isSubstanceLimit dl

Parameters:
Returns: bool
dl : DoseLimit
Returns: bool

limit

Full Usage: limit

Returns: DoseLimit

A dose limit without a target, units or limits.

Returns: DoseLimit

normMaxFactor

Full Usage: normMaxFactor

Returns: ValueUnit

The factor a norm dose is multiplied by for the maximum of the range an order of it can take.

Returns: ValueUnit

normMinFactor

Full Usage: normMinFactor

Returns: ValueUnit

The factor a norm dose is multiplied by for the minimum of the range an order of it can take.

Returns: ValueUnit

printMinMaxDose perDose minMax

Full Usage: printMinMaxDose perDose minMax

Parameters:
    perDose : 'a - The text after the range, such as "/dosis"; may be empty.
    minMax : MinMax - The range to format.

Returns: string An empty string for an empty range; the single value when min equals max; otherwise the range, such as "10 - 20 mg/dosis", or a single limit, such as "max 20 mg/dosis".
Type parameters: 'a

Formats a dose range as text in Dutch, followed by a suffix.

perDose : 'a

The text after the range, such as "/dosis"; may be empty.

minMax : MinMax

The range to format.

Returns: string

An empty string for an empty range; the single value when min equals max; otherwise the range, such as "10 - 20 mg/dosis", or a single limit, such as "max 20 mg/dosis".

ranges fallback dl

Full Usage: ranges fallback dl

Parameters:
Returns: (string * MinMax) list

Returns the six ranges of a dose limit, each named after the limit target and the kind of range. Uses the fallback name when the target has no name.

fallback : string
dl : DoseLimit
Returns: (string * MinMax) list

Type something to start searching.