Schema reference / Tables / view MDX source
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
| Model | Leg | Role |
|---|---|---|
openEHR-EHR-CLUSTER.anatomical_location_relative.v2 | openEHR | defines this table |
Columns
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
description | text | yes | Description | /items[at0023] |
Referenced by
23 tables reference anatomical_location_relative, via anatomical_location_relative_id. The first 15 alphabetically:
adverse_reaction_event_reaction_detailsviaanatomical_location_relative_idanatomical_location_alternative_structureviaanatomical_location_relative_idanatomical_location_relative_relative_locationviaanatomical_location_relative_idanatomical_location_relative_multimedia_representationviaanatomical_location_relative_idcapillary_refillviastructured_measurement_location_anatomical_location_relativeexposure_screening_specific_exposure_additional_detailsviaanatomical_location_relative_idimaging_exam_structured_body_siteviaanatomical_location_relative_idimaging_exam_cervix_structured_body_siteviaanatomical_location_relative_idimaging_exam_fallopian_tube_structured_body_siteviaanatomical_location_relative_idimaging_exam_foetus_structured_body_siteviaanatomical_location_relative_idimaging_exam_gestational_sac_structured_body_siteviaanatomical_location_relative_idimaging_exam_hip_joint_structured_body_siteviaanatomical_location_relative_idimaging_exam_lesion_adnexal_mass_structured_body_siteviaanatomical_location_relative_idimaging_exam_ovary_structured_body_siteviaanatomical_location_relative_idimaging_exam_rectouterine_pouch_structured_body_siteviaanatomical_location_relative_id
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.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
anatomical_location_relative_id | uuid → anatomical_location_relative | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
landmark_namelandmark_name_codelandmark_name_systemlandmark_name_valueset_id | coded texttext, text, text, text | yes | Landmark name | /items[at0020]/items[at0021] |
lateralitylaterality_codelaterality_systemlaterality_valueset_id | coded texttext, text, text, text | yes | Laterality | /items[at0020]/items[at0062] |
distance_from_landmark_magnitudedistance_from_landmark_units | quantitynumeric, text | yes | Distance from landmark | /items[at0020]/items[at0022] |
directiondirection_codedirection_systemdirection_valueset_id | coded texttext, text, text, text | yes | Direction | /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
anatomical_location_relative_id, position
References
| Columns | Target | On delete |
|---|---|---|
anatomical_location_relative_id | anatomical_location_relative | cascade |
landmark_name_valueset_id, landmark_name_code, landmark_name_system, landmark_name | valueset_code | restrict |
laterality_valueset_id, laterality_code, laterality_system, laterality | valueset_code | restrict |
direction_valueset_id, direction_code, direction_system, direction | valueset_code | restrict |
anatomical_location_relative_multimedia_representation
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
anatomical_location_relative_id | uuid → anatomical_location_relative | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
attachment_id | uuid | no | Multimedia representation | /items[at0054] |
Unique
anatomical_location_relative_id, positionanatomical_location_relative_id, attachment_id
References
| Columns | Target | On delete |
|---|---|---|
anatomical_location_relative_id | anatomical_location_relative | cascade |
attachment_id | attachment | restrict |
Indexes
anatomical_location_relative_multimedia_representation_a_c5ef86onattachment_id
Value sets
| Value set | Codes |
|---|---|
org.openehr::openEHR-EHR-CLUSTER.anatomical_location_relative.v2/direction | 17 |
org.openehr::openEHR-EHR-CLUSTER.anatomical_location_relative.v2/laterality | 2 |