Class: Measure
Defines a concrete measure as a number associated to a unit. It extends MeasureBase by requiring the value attribute to be present. A measure may be unit-less so the unit attribute is still optional.
URI: common_domain_model:Measure
classDiagram
class Measure
click Measure href "../Measure/"
MeasureBase <|-- Measure
click MeasureBase href "../MeasureBase/"
Measure : unit
Measure --> "0..1" UnitType : unit
click UnitType href "../UnitType/"
Measure : value
Inheritance
- MeasureBase
- Measure
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| value | 0..1 Decimal |
Specifies the value of the measure as a number | MeasureBase |
| unit | 0..1 UnitType |
Qualifies the unit by which the amount is measured | MeasureBase |
Usages
| used by | used in | type | used |
|---|---|---|---|
| QuantitySchedule | multiplier | range | Measure |
| Quantity | multiplier | range | Measure |
| NonNegativeQuantity | multiplier | range | Measure |
| NonNegativeQuantitySchedule | multiplier | range | Measure |
| Money | multiplier | range | Measure |
Rules
| Rule Applied | Preconditions | Postconditions | Elseconditions |
|---|---|---|---|
In Subsets
Comments
- Rosetta condition: ValueExists — value exists
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/common-domain-model
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | common_domain_model:Measure |
| native | common_domain_model:Measure |
| close | gist:Magnitude |
LinkML Source
Direct
name: Measure
description: Defines a concrete measure as a number associated to a unit. It extends
MeasureBase by requiring the value attribute to be present. A measure may be unit-less
so the unit attribute is still optional.
comments:
- 'Rosetta condition: ValueExists — value exists'
in_subset:
- cdm_base_math
from_schema: https://w3id.org/lmodel/common-domain-model
close_mappings:
- gist:Magnitude
is_a: MeasureBase
rules:
- postconditions:
slot_conditions:
value:
name: value
required: true
description: The value attribute must be present in a concrete measure.
Induced
name: Measure
description: Defines a concrete measure as a number associated to a unit. It extends
MeasureBase by requiring the value attribute to be present. A measure may be unit-less
so the unit attribute is still optional.
comments:
- 'Rosetta condition: ValueExists — value exists'
in_subset:
- cdm_base_math
from_schema: https://w3id.org/lmodel/common-domain-model
close_mappings:
- gist:Magnitude
is_a: MeasureBase
attributes:
value:
name: value
description: Specifies the value of the measure as a number. Optional because
in a measure vector or schedule, this single value may be omitted.
from_schema: https://w3id.org/lmodel/common-domain-model
rank: 1000
owner: Measure
domain_of:
- MeasureBase
- Schedule
- DatedValue
- Taxonomy
- TaxonomyClassification
- CodeValue
- AdjustmentFactor
- AccrualFactor
- DisputeResolution
- OtherEligibleAndPostedSupport
- CSAThresholdVariableSet
- CSAMinimumTransferAmountVariableSet
- MasterAgreementVariableSet
range: decimal
unit:
name: unit
description: Qualifies the unit by which the amount is measured. Optional because
a measure may be unit-less (e.g. when representing a ratio between amounts in
the same unit).
from_schema: https://w3id.org/lmodel/common-domain-model
rank: 1000
owner: Measure
domain_of:
- MeasureBase
- Qty
- Term
range: UnitType
rules:
- postconditions:
slot_conditions:
value:
name: value
required: true
description: The value attribute must be present in a concrete measure.