Logo GenPRES

UnitValidation Module

Checks that the unit of a dose limit field has the adjust unit and the time unit the field needs.

Functions and values

Function or value Description

hasAdjustUnit u

Full Usage: hasAdjustUnit u

Parameters:
Returns: bool

Whether a unit has a weight or body surface area unit in the denominator of a Per.

u : Unit
Returns: bool

hasTimeUnit u

Full Usage: hasTimeUnit u

Parameters:
Returns: bool

Whether a unit has a time unit in the denominator of a Per.

u : Unit
Returns: bool

validatePerTimeAdjustUnit u

Full Usage: validatePerTimeAdjustUnit u

Parameters:
Returns: Result<unit, string>

Checks that a PerTimeAdjust unit has an adjust unit and a time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

validatePerTimeUnit u

Full Usage: validatePerTimeUnit u

Parameters:
Returns: Result<unit, string>

Checks that a PerTime unit has no adjust unit and has a time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

validateQuantityAdjustUnit u

Full Usage: validateQuantityAdjustUnit u

Parameters:
Returns: Result<unit, string>

Checks that a QuantityAdjust unit has an adjust unit and no time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

validateQuantityUnit u

Full Usage: validateQuantityUnit u

Parameters:
Returns: Result<unit, string>

Checks that a Quantity unit has no adjust unit and no time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

validateRateAdjustUnit u

Full Usage: validateRateAdjustUnit u

Parameters:
Returns: Result<unit, string>

Checks that a RateAdjust unit has an adjust unit and a time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

validateRateUnit u

Full Usage: validateRateUnit u

Parameters:
Returns: Result<unit, string>

Checks that a Rate unit has no adjust unit and has a time unit, or returns the error text.

u : Unit
Returns: Result<unit, string>

Type something to start searching.