Class: Measurement
FHIR mapping: Observation (https://www.hl7.org/fhir/observation.html)
erDiagram
Age {
string iso8601duration
}
AgeRange {
}
ComplexValue {
}
GestationalAge {
integer days
integer weeks
}
Measurement {
string description
}
OntologyClass {
string id
string label
}
Procedure {
}
Quantity {
double value
}
TimeElement {
string timestamp
}
TimeInterval {
string end
string start
}
TypedQuantity {
}
Value {
}
AgeRange ||--|o Age : "end, start"
ComplexValue ||--}o TypedQuantity : "typedQuantities"
Measurement ||--|o ComplexValue : "complexValue"
Measurement ||--|o OntologyClass : "assay"
Measurement ||--|o Procedure : "procedure"
Measurement ||--|o TimeElement : "timeObserved"
Measurement ||--|o Value : "value"
Procedure ||--|o OntologyClass : "bodySite, code"
Procedure ||--|o TimeElement : "performed"
Quantity ||--|o OntologyClass : "unit"
Quantity ||--|o ReferenceRange : "referenceRange"
TimeElement ||--|o Age : "age"
TimeElement ||--|o AgeRange : "ageRange"
TimeElement ||--|o GestationalAge : "gestationalAge"
TimeElement ||--|o OntologyClass : "ontologyClass"
TimeElement ||--|o TimeInterval : "interval"
TypedQuantity ||--|o OntologyClass : "type"
TypedQuantity ||--|o Quantity : "quantity"
Value ||--|o OntologyClass : "ontologyClass"
Value ||--|o Quantity : "quantity"
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| assay | 0..1 OntologyClass |
An ontology class which describes the assay used to produce the measurement. For example "body temperature" (CMO:0000015) or "Platelets [#/volume] in Blood" (LOINC:26515-7) FHIR mapping: Observation.code | direct |
| complexValue | 0..1 ComplexValue |
direct | |
| description | 0..1 String |
Free-text description of the feature. Note this is not a acceptable place to document/describe the phenotype - the type and onset etc... fields should be used for this purpose. | direct |
| procedure | 0..1 Procedure |
Clinical procedure performed on the subject in order to produce the measurement. | direct |
| timeObserved | 0..1 TimeElement |
The time at which the measurement was made | direct |
| value | 0..1 Value |
direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| Phenopacket | measurements | range | Measurement |
| Biosample | measurements | range | Measurement |
Rules
| Rule Applied | Preconditions | Postconditions | Elseconditions |
|---|---|---|---|
| exactly_one_of | [{'slot_conditions': {'value': {'required': True}}}, {'slot_conditions': {'complexValue': {'required': True}}}] |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/linkml/phenopackets/phenopackets
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | phenopackets:Measurement |
| native | phenopackets:Measurement |
LinkML Source
Direct
name: Measurement
description: 'FHIR mapping: Observation (https://www.hl7.org/fhir/observation.html)'
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
attributes:
assay:
name: assay
annotations:
rank:
tag: rank
value: 2
description: 'An ontology class which describes the assay used to produce the
measurement. For example "body temperature" (CMO:0000015) or "Platelets [#/volume]
in Blood" (LOINC:26515-7) FHIR mapping: Observation.code'
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
domain_of:
- Measurement
range: OntologyClass
inlined: true
complexValue:
name: complexValue
annotations:
rank:
tag: rank
value: 4
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
domain_of:
- Measurement
range: ComplexValue
description:
name: description
annotations:
rank:
tag: rank
value: 1
description: Free-text description of the feature. Note this is not a acceptable
place to document/describe the phenotype - the type and onset etc... fields
should be used for this purpose.
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
domain_of:
- Cohort
- ExternalReference
- Measurement
- PhenotypicFeature
- Biosample
- GeneDescriptor
- VariationDescriptor
range: string
procedure:
name: procedure
annotations:
rank:
tag: rank
value: 6
description: Clinical procedure performed on the subject in order to produce the
measurement.
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
domain_of:
- Measurement
- Biosample
- MedicalAction
range: Procedure
timeObserved:
name: timeObserved
annotations:
rank:
tag: rank
value: 5
description: The time at which the measurement was made
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
domain_of:
- Measurement
range: TimeElement
inlined: true
value:
name: value
annotations:
rank:
tag: rank
value: 3
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
domain_of:
- DictionaryEntry
- Measurement
- Quantity
- Any
- IndefiniteRange
- Number
- Expression
- Extension
range: Value
rules:
- postconditions:
exactly_one_of:
- slot_conditions:
value:
name: value
required: true
- slot_conditions:
complexValue:
name: complexValue
required: true
annotations:
oneof:
tag: oneof
value: measurement_value
description: 'type: LOINC: 26515-7 Platelets [#/volume] in Blood value: quantity:
unit: NCIT:C173275 (Count per Cubic Millimeter), value: 600,000'
comments:
- 'https://github.com/phenopackets/phenopacket-schema/issues/261 e.g. type: Increased
circulating antibody level (HP:0010702) quantity: unit: Microgram per Milliliter
(NCIT:C64572), value: 23456.0'
- 'type: body temperature (CMO:0000015) quantity: unit: Degrees Celsius (UO:0000027),
value: 37.5 Degree Celsius (NCIT:C42559), value: 37.5'
Induced
name: Measurement
description: 'FHIR mapping: Observation (https://www.hl7.org/fhir/observation.html)'
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
attributes:
assay:
name: assay
annotations:
rank:
tag: rank
value: 2
description: 'An ontology class which describes the assay used to produce the
measurement. For example "body temperature" (CMO:0000015) or "Platelets [#/volume]
in Blood" (LOINC:26515-7) FHIR mapping: Observation.code'
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
owner: Measurement
domain_of:
- Measurement
range: OntologyClass
inlined: true
complexValue:
name: complexValue
annotations:
rank:
tag: rank
value: 4
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
owner: Measurement
domain_of:
- Measurement
range: ComplexValue
description:
name: description
annotations:
rank:
tag: rank
value: 1
description: Free-text description of the feature. Note this is not a acceptable
place to document/describe the phenotype - the type and onset etc... fields
should be used for this purpose.
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
owner: Measurement
domain_of:
- Cohort
- ExternalReference
- Measurement
- PhenotypicFeature
- Biosample
- GeneDescriptor
- VariationDescriptor
range: string
procedure:
name: procedure
annotations:
rank:
tag: rank
value: 6
description: Clinical procedure performed on the subject in order to produce the
measurement.
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
owner: Measurement
domain_of:
- Measurement
- Biosample
- MedicalAction
range: Procedure
timeObserved:
name: timeObserved
annotations:
rank:
tag: rank
value: 5
description: The time at which the measurement was made
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
rank: 1000
owner: Measurement
domain_of:
- Measurement
range: TimeElement
inlined: true
value:
name: value
annotations:
rank:
tag: rank
value: 3
description: ''
from_schema: https://w3id.org/linkml/phenopackets/phenopackets
owner: Measurement
domain_of:
- DictionaryEntry
- Measurement
- Quantity
- Any
- IndefiniteRange
- Number
- Expression
- Extension
range: Value
rules:
- postconditions:
exactly_one_of:
- slot_conditions:
value:
name: value
required: true
- slot_conditions:
complexValue:
name: complexValue
required: true
annotations:
oneof:
tag: oneof
value: measurement_value
description: 'type: LOINC: 26515-7 Platelets [#/volume] in Blood value: quantity:
unit: NCIT:C173275 (Count per Cubic Millimeter), value: 600,000'
comments:
- 'https://github.com/phenopackets/phenopacket-schema/issues/261 e.g. type: Increased
circulating antibody level (HP:0010702) quantity: unit: Microgram per Milliliter
(NCIT:C64572), value: 23456.0'
- 'type: body temperature (CMO:0000015) quantity: unit: Degrees Celsius (UO:0000027),
value: 37.5 Degree Celsius (NCIT:C42559), value: 37.5'