Class DV_PROPORTION

Models a ratio of values, i.e. where the numerator and denominator are both pure
numbers.
Used for recording titers (e.g. 1:128), concentration ratios, e.g. Na:K (unitary
denominator), albumin:creatinine ratio, and percentages, e.g. red cell distirbution
width (RDW).

Should not be used to represent things like blood pressure which are often written
using a /' character, giving the misleading impression that the item is a ratio,
when in fact it is a structured value. E.g. visual acuity 6/24 is not a ratio.
Should not be used for formulations.

Declaration :

Artifact : DV_PROPORTION

Attribut numerator

numerator of ratio

Declaration :

Attribut denominator

denominator of ratio.

Declaration :

Attribut type

Indicates semantic type of proportion, including percent, unitary etc.

Declaration :

Attribut precision

Precision to which the numerator and denominator values of the
proportion are expressed, in terms of number of decimal places. The
value 0 implies an integral quantity. The value -1 implies no limit, i.e.
any number of decimal places.

Declaration :

Operation magnitude

Effective magnitude represented by ratio.

Declaration :

Operation is_integral

True if the numerator and denominator values are integers, i.e. if the
precision is 0.

Declaration :

Operation DV_PROPORTION

Class constructor

Declaration :

Operation operator=

assignment operator

Declaration :

Operation DV_PROPORTION

copy constructor

Declaration :

Stereotype: copy

All public operations : is_integral , is_normal , is_simple , is_strictly_comparable_to , limits , magnitude , operator+ , operator- , operator< , operator= , operator= , valid_magnitude_status , valid_percentage , valid_proportion_kind