anatomical_location_relative

A physical site on or within the human body that is described in terms of its relationship to other body parts.

A physical site on or within the human body that is described in terms of its relationship to other body parts.

Purpose. To identify and record structured details about a single physical site on, or within, the human body in terms of its relationship to other macroscopic anatomical landmarks.

Source

ModelLegRole
openEHR-EHR-CLUSTER.anatomical_location_relative.v2openEHRdefines this table

Columns

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
descriptiontextyesDescription/items[at0023]

Referenced by

23 tables reference anatomical_location_relative, via anatomical_location_relative_id. The first 15 alphabetically:

Child tables

2 tables hang off anatomical_location_relative, one row per repetition.

anatomical_location_relative_relative_location

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
anatomical_location_relative_iduuidanatomical_location_relativeno
positionintegernoOrder of this row within its parent, from zero.
landmark_name
landmark_name_code
landmark_name_system
landmark_name_valueset_id
coded text
text, text, text, text
yesLandmark name/items[at0020]/items[at0021]
laterality
laterality_code
laterality_system
laterality_valueset_id
coded text
text, text, text, text
yesLaterality/items[at0020]/items[at0062]
distance_from_landmark_magnitude
distance_from_landmark_units
quantity
numeric, text
yesDistance from landmark/items[at0020]/items[at0022]
direction
direction_code
direction_system
direction_valueset_id
coded text
text, text, text, text
yesDirection/items[at0020]/items[at0006]

Constraints

check ((landmark_name_code is null and landmark_name_system is null and landmark_name_valueset_id is null) or (landmark_name is not null and landmark_name_code is not null and landmark_name_system is not null and landmark_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 ((distance_from_landmark_magnitude is null and distance_from_landmark_units is null) or (distance_from_landmark_magnitude is not null and distance_from_landmark_units is not null))
check (distance_from_landmark_magnitude is null or (distance_from_landmark_units = 'cm' and distance_from_landmark_magnitude >= 0) or (distance_from_landmark_units = '[in_i]' and distance_from_landmark_magnitude >= 0) or (distance_from_landmark_units = 'mm' and distance_from_landmark_magnitude >= 0))
check ((direction_code is null and direction_system is null and direction_valueset_id is null) or (direction is not null and direction_code is not null and direction_system is not null and direction_valueset_id is not null))

Unique

References

ColumnsTargetOn delete
anatomical_location_relative_idanatomical_location_relativecascade
landmark_name_valueset_id, landmark_name_code, landmark_name_system, landmark_namevalueset_coderestrict
laterality_valueset_id, laterality_code, laterality_system, lateralityvalueset_coderestrict
direction_valueset_id, direction_code, direction_system, directionvalueset_coderestrict

anatomical_location_relative_multimedia_representation

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

ColumnTypeNullDescriptionSource
iduuid primary keynoPrimary key.
anatomical_location_relative_iduuidanatomical_location_relativeno
positionintegernoOrder of this row within its parent, from zero.
attachment_iduuidnoMultimedia representation/items[at0054]

Unique

References

ColumnsTargetOn delete
anatomical_location_relative_idanatomical_location_relativecascade
attachment_idattachmentrestrict

Indexes

Value sets

Value setCodes
org.openehr::openEHR-EHR-CLUSTER.anatomical_location_relative.v2/direction17
org.openehr::openEHR-EHR-CLUSTER.anatomical_location_relative.v2/laterality2