Schema reference / Tables / view MDX source
anatomical_location_circle
A physical site on or within the human body that is described in terms of the direction, and optionally the distance, of the site from a central landmark.
A physical site on or within the human body that is described in terms of the direction, and optionally the distance, of the site from a central landmark.
Purpose. To record structured details about a physical site on or within the human body that is described in terms of the direction, and optionally the distance, of the site from a central landmark.
Source
| Model | Leg | Role |
|---|---|---|
openEHR-EHR-CLUSTER.anatomical_location_circle.v1 | openEHR | defines this table |
Columns
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
reference_direction | text | yes | Reference direction | /items[at0065] |
centre_landmarkcentre_landmark_codecentre_landmark_systemcentre_landmark_valueset_id | coded texttext, text, text, text | yes | Centre landmark | /items[at0079] |
circular_directioncircular_direction_codecircular_direction_systemcircular_direction_valueset_id | coded texttext, text, text, text | yes | Circular direction | /items[at0061] |
distance_from_landmark_magnitudedistance_from_landmark_units | quantitynumeric, text | yes | Distance from landmark | /items[at0080] |
description | text | yes | Description | /items[at0023] |
Constraints
check ((centre_landmark_code is null and centre_landmark_system is null and centre_landmark_valueset_id is null) or (centre_landmark is not null and centre_landmark_code is not null and centre_landmark_system is not null and centre_landmark_valueset_id is not null))
check ((circular_direction_code is null and circular_direction_system is null and circular_direction_valueset_id is null and circular_direction is null) or (circular_direction is not null and circular_direction_code is not null and circular_direction_system is not null and circular_direction_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))References
| Columns | Target | On delete |
|---|---|---|
centre_landmark_valueset_id, centre_landmark_code, centre_landmark_system, centre_landmark | valueset_code | restrict |
circular_direction_valueset_id, circular_direction_code, circular_direction_system, circular_direction | valueset_code | restrict |
Referenced by
19 tables reference anatomical_location_circle, via anatomical_location_circle_id. The first 15 alphabetically:
anatomical_location_alternative_structureviaanatomical_location_circle_idanatomical_location_circle_multimedia_representationviaanatomical_location_circle_idexposure_screening_specific_exposure_additional_detailsviaanatomical_location_circle_idimaging_exam_structured_body_siteviaanatomical_location_circle_idimaging_exam_cervix_structured_body_siteviaanatomical_location_circle_idimaging_exam_fallopian_tube_structured_body_siteviaanatomical_location_circle_idimaging_exam_foetus_structured_body_siteviaanatomical_location_circle_idimaging_exam_gestational_sac_structured_body_siteviaanatomical_location_circle_idimaging_exam_hip_joint_structured_body_siteviaanatomical_location_circle_idimaging_exam_lesion_adnexal_mass_structured_body_siteviaanatomical_location_circle_idimaging_exam_ovary_structured_body_siteviaanatomical_location_circle_idimaging_exam_rectouterine_pouch_structured_body_siteviaanatomical_location_circle_idmedicationviaadministration_details_structured_body_site_anatomical_l_afc7f9medication_orderviastructured_body_site_anatomical_location_circleproblem_diagnosis_structured_body_siteviaanatomical_location_circle_id
Child tables
1 table hang off anatomical_location_circle, one row per repetition.
anatomical_location_circle_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_circle_id | uuid → anatomical_location_circle | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
attachment_id | uuid | no | Multimedia representation | /items[at0054] |
Unique
anatomical_location_circle_id, positionanatomical_location_circle_id, attachment_id
References
| Columns | Target | On delete |
|---|---|---|
anatomical_location_circle_id | anatomical_location_circle | cascade |
attachment_id | attachment | restrict |
Indexes
anatomical_location_circle_multimedia_representation_att_f3a774onattachment_id
Value sets
| Value set | Codes |
|---|---|
org.openehr::openEHR-EHR-CLUSTER.anatomical_location_circle.v1/circular_direction | 12 |