Schema reference / Tables / view MDX source
procedure_screening
Series of questions and associated answers used to screen for procedures that has been carried out in the past.
Series of questions and associated answers used to screen for procedures that has been carried out in the past.
Purpose. To create a framework for recording answers to pre-defined screening questions about clinical management related to surgical/operative procedures that have been carried out in the past.
Source
| Model | Leg | Role |
|---|---|---|
openEHR-EHR-OBSERVATION.procedure_screening.v1 | openEHR | defines this table |
Columns
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
form_id | uuid → form | no | The form this entry was recorded on. | — |
form_block_id | uuid | yes | The block within the form, when the entry is bound to one. | — |
screening_purposescreening_purpose_codescreening_purpose_systemscreening_purpose_valueset_id | coded texttext, text, text, text | yes | Screening purpose | /data[at0001]/events[at0002]/data[at0003]/items[at0034] |
any_previous_procedures | boolean | yes | Any previous procedures? | /data[at0001]/events[at0002]/data[at0003]/items[at0028] |
description | text | yes | Description | /data[at0001]/events[at0002]/data[at0003]/items[at0041] |
Constraints
check ((screening_purpose_code is null and screening_purpose_system is null and screening_purpose_valueset_id is null) or (screening_purpose is not null and screening_purpose_code is not null and screening_purpose_system is not null and screening_purpose_valueset_id is not null))Unique
form_block_id
References
| Columns | Target | On delete |
|---|---|---|
form_id | form | cascade |
form_id, form_block_id | form_block | cascade |
screening_purpose_valueset_id, screening_purpose_code, screening_purpose_system, screening_purpose | valueset_code | restrict |
Referenced by
procedure_screening_specific_procedureviaprocedure_screening_id
Indexes
procedure_screening_form_id_idxonform_id
Child tables
2 tables hang off procedure_screening, one row per repetition.
procedure_screening_specific_procedure
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
procedure_screening_id | uuid → procedure_screening | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
procedure_nameprocedure_name_codeprocedure_name_systemprocedure_name_valueset_id | coded texttext, text, text, text | yes | Procedure name | /data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0004] |
carried_out | boolean | yes | Carried out? | /data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0005] |
timing | timestamptz | yes | Timing | /data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0037] |
comment | text | yes | Comment | /data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0025] |
Constraints
check ((procedure_name_code is null and procedure_name_system is null and procedure_name_valueset_id is null) or (procedure_name is not null and procedure_name_code is not null and procedure_name_system is not null and procedure_name_valueset_id is not null))Unique
procedure_screening_id, position
References
| Columns | Target | On delete |
|---|---|---|
procedure_screening_id | procedure_screening | cascade |
procedure_name_valueset_id, procedure_name_code, procedure_name_system, procedure_name | valueset_code | restrict |
Referenced by
procedure_screening_specific_procedure_additional_detailsviaprocedure_screening_specific_procedure_id
procedure_screening_specific_procedure_additional_details
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
procedure_screening_specific_procedure_id | uuid → procedure_screening_specific_procedure | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
organization_id | uuid | no | Additional details | /data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0036] |
Unique
procedure_screening_specific_procedure_id, positionprocedure_screening_specific_procedure_id, organization_id
References
| Columns | Target | On delete |
|---|---|---|
procedure_screening_specific_procedure_id | procedure_screening_specific_procedure | cascade |
organization_id | organization | no action |
Indexes
procedure_screening_specific_procedure_additional_detail_56f7econorganization_id