body_segment_length

Measurement of the distance between two points of surface anatomy.

Measurement of the distance between two points of surface anatomy.

Purpose. To record the measurement of the distance between two points of surface anatomy.

Source

ModelLegRole
openEHR-EHR-OBSERVATION.body_segment_length.v1openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
form_iduuidformnoThe form this entry was recorded on.
form_block_iduuidyesThe block within the form, when the entry is bound to one.
event_typetextyesnull represents any_event
body_segment_name
body_segment_name_code
body_segment_name_system
body_segment_name_valueset_id
coded text
text, text, text, text
yesBody segment name/data[at0001]/events[at0002]/data[at0003]/items[at0004]
laterality
laterality_code
laterality_system
laterality_valueset_id
coded text
text, text, text, text
yesLaterality/data[at0001]/events[at0002]/data[at0003]/items[at0005]
length_magnitude
length_units
quantity
numeric, text
yesLength/data[at0001]/events[at0002]/data[at0003]/items[at0008]
commenttextyesComment/data[at0001]/events[at0002]/data[at0003]/items[at0009]
confounding_factorstextyesConfounding factors/data[at0001]/events[at0002]/state[at0010]/items[at0011]
body_position
body_position_code
body_position_system
body_position_valueset_id
coded text
text, text, text, text
yesBody position/data[at0001]/events[at0002]/state[at0010]/items[at0031]
measurement_methodtextyesMeasurement method/protocol[at0014]/items[at0027]
measurement_origin
measurement_origin_code
measurement_origin_system
measurement_origin_valueset_id
coded text
text, text, text, text
yesMeasurement origin/protocol[at0014]/items[at0029]
measurement_endpoint
measurement_endpoint_code
measurement_endpoint_system
measurement_endpoint_valueset_id
coded text
text, text, text, text
yesMeasurement endpoint/protocol[at0014]/items[at0033]

Constraints

check ((body_segment_name_code is null and body_segment_name_system is null and body_segment_name_valueset_id is null) or (body_segment_name is not null and body_segment_name_code is not null and body_segment_name_system is not null and body_segment_name_valueset_id is not null))
check ((laterality_code is null and laterality_system is null and laterality_valueset_id is null and laterality is null) or (laterality is not null and laterality_code is not null and laterality_system is not null and laterality_valueset_id is not null))
check ((length_magnitude is null and length_units is null) or (length_magnitude is not null and length_units is not null))
check (length_magnitude is null or (length_units = 'cm' and length_magnitude >= 0) or (length_units = '[in_i]' and length_magnitude >= 0) or (length_units = 'mm' and length_magnitude >= 0))
check ((body_position_code is null and body_position_system is null and body_position_valueset_id is null) or (body_position is not null and body_position_code is not null and body_position_system is not null and body_position_valueset_id is not null))
check ((measurement_origin_code is null and measurement_origin_system is null and measurement_origin_valueset_id is null) or (measurement_origin is not null and measurement_origin_code is not null and measurement_origin_system is not null and measurement_origin_valueset_id is not null))
check ((measurement_endpoint_code is null and measurement_endpoint_system is null and measurement_endpoint_valueset_id is null) or (measurement_endpoint is not null and measurement_endpoint_code is not null and measurement_endpoint_system is not null and measurement_endpoint_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
form_idformcascade
form_id, form_block_idform_blockcascade
body_segment_name_valueset_id, body_segment_name_code, body_segment_name_system, body_segment_namevalueset_coderestrict
laterality_valueset_id, laterality_code, laterality_system, lateralityvalueset_coderestrict
body_position_valueset_id, body_position_code, body_position_system, body_positionvalueset_coderestrict
measurement_origin_valueset_id, measurement_origin_code, measurement_origin_system, measurement_originvalueset_coderestrict
measurement_endpoint_valueset_id, measurement_endpoint_code, measurement_endpoint_system, measurement_endpointvalueset_coderestrict

Referenced by

Indexes

Child tables

3 tables hang off body_segment_length, one row per repetition.

body_segment_length_measuring_device

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
body_segment_length_iduuidbody_segment_lengthno
positionintegernoOrder of this row within its parent, from zero.
device_iduuidnoMeasuring device/protocol[at0014]/items[at0015]

Unique

References

ColumnsTargetOn delete
body_segment_length_idbody_segment_lengthcascade
device_iddeviceno action

Indexes

body_segment_length_structured_origin

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
body_segment_length_iduuidbody_segment_lengthno
positionintegernoOrder of this row within its parent, from zero.
anatomical_location_iduuidnoStructured origin/protocol[at0014]/items[at0030]

Unique

References

ColumnsTargetOn delete
body_segment_length_idbody_segment_lengthcascade
anatomical_location_idanatomical_locationno action

Indexes

body_segment_length_structured_endpoint

Child table — one row per repetition, deleted with its parent.

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
body_segment_length_iduuidbody_segment_lengthno
positionintegernoOrder of this row within its parent, from zero.
anatomical_location_iduuidnoStructured endpoint/protocol[at0014]/items[at0035]

Unique

References

ColumnsTargetOn delete
body_segment_length_idbody_segment_lengthcascade
anatomical_location_idanatomical_locationno action

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-OBSERVATION.body_segment_length.v1/body_position3
org.openehr::openEHR-EHR-OBSERVATION.body_segment_length.v1/body_segment_name12
org.openehr::openEHR-EHR-OBSERVATION.body_segment_length.v1/laterality2