Schema reference / Tables / view MDX source
procedure
A clinical activity carried out for screening, investigative, diagnostic, curative, therapeutic, evaluative or palliative purposes.
A clinical activity carried out for screening, investigative, diagnostic, curative, therapeutic, evaluative or palliative purposes.
Purpose. To record information about the activities required to carry out a procedure, including the planning, scheduling, performance, suspension, cancellation, documentation and completion.
Source
| Model | Leg | Role |
|---|---|---|
openEHR-EHR-ACTION.procedure.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. | — |
procedure_nameprocedure_name_codeprocedure_name_systemprocedure_name_valueset_id | coded texttext, text, text, text | yes | Procedure name | /description[at0001]/items[at0002] |
description | text | yes | Description | /description[at0001]/items[at0049] |
indicationindication_codeindication_systemindication_valueset_id | coded texttext, text, text, text | yes | Indication | /description[at0001]/items[at0070] |
intentintent_codeintent_systemintent_valueset_id | coded texttext, text, text, text | yes | Intent | /description[at0001]/items[at0072] |
method | text | yes | Method | /description[at0001]/items[at0065] |
urgencyurgency_codeurgency_systemurgency_valueset_id | coded texttext, text, text, text | yes | Urgency | /description[at0001]/items[at0058] |
body_site | text | yes | Body site | /description[at0001]/items[at0063] |
impactimpact_codeimpact_systemimpact_valueset_id | coded texttext, text, text, text | yes | Impact | /description[at0001]/items[at0071] |
outcomeoutcome_codeoutcome_systemoutcome_valueset_id | coded texttext, text, text, text | yes | Outcome | /description[at0001]/items[at0048] |
procedural_difficulty | text | yes | Procedural difficulty | /description[at0001]/items[at0069] |
complication | text | yes | Complication | /description[at0001]/items[at0006] |
scheduled_datetime | timestamptz | yes | Scheduled datetime | /description[at0001]/items[at0066] |
start_datetime | timestamptz | yes | Start datetime | /description[at0001]/items[at0073] |
end_datetime | timestamptz | yes | End datetime | /description[at0001]/items[at0060] |
total_duration | interval | yes | Total duration | /description[at0001]/items[at0061] |
pathway_step_duration | interval | yes | Pathway step duration | /description[at0001]/items[at0074] |
procedure_typeprocedure_type_codeprocedure_type_systemprocedure_type_valueset_id | coded texttext, text, text, text | yes | Procedure type | /description[at0001]/items[at0067] |
reason | text | yes | Reason | /description[at0001]/items[at0014] |
comment | text | yes | Comment | /description[at0001]/items[at0005] |
requestor_order_identifier_valuerequestor_order_identifier_system | text, texttext, text | yes | Requestor order identifier | /protocol[at0053]/items[at0054] |
receiver_order_identifier_valuereceiver_order_identifier_system | text, texttext, text | yes | Receiver order identifier | /protocol[at0053]/items[at0056] |
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))
check ((indication_code is null and indication_system is null and indication_valueset_id is null) or (indication is not null and indication_code is not null and indication_system is not null and indication_valueset_id is not null))
check ((intent_code is null and intent_system is null and intent_valueset_id is null) or (intent is not null and intent_code is not null and intent_system is not null and intent_valueset_id is not null))
check ((urgency_code is null and urgency_system is null and urgency_valueset_id is null) or (urgency is not null and urgency_code is not null and urgency_system is not null and urgency_valueset_id is not null))
check ((impact_code is null and impact_system is null and impact_valueset_id is null) or (impact is not null and impact_code is not null and impact_system is not null and impact_valueset_id is not null))
check ((outcome_code is null and outcome_system is null and outcome_valueset_id is null) or (outcome is not null and outcome_code is not null and outcome_system is not null and outcome_valueset_id is not null))
check ((procedure_type_code is null and procedure_type_system is null and procedure_type_valueset_id is null) or (procedure_type is not null and procedure_type_code is not null and procedure_type_system is not null and procedure_type_valueset_id is not null))
check (requestor_order_identifier_system is null or requestor_order_identifier_value is not null)
check (receiver_order_identifier_system is null or receiver_order_identifier_value is not null)Unique
form_block_id
References
| Columns | Target | On delete |
|---|---|---|
form_id | form | cascade |
form_id, form_block_id | form_block | cascade |
procedure_name_valueset_id, procedure_name_code, procedure_name_system, procedure_name | valueset_code | restrict |
indication_valueset_id, indication_code, indication_system, indication | valueset_code | restrict |
intent_valueset_id, intent_code, intent_system, intent | valueset_code | restrict |
urgency_valueset_id, urgency_code, urgency_system, urgency | valueset_code | restrict |
impact_valueset_id, impact_code, impact_system, impact | valueset_code | restrict |
outcome_valueset_id, outcome_code, outcome_system, outcome | valueset_code | restrict |
procedure_type_valueset_id, procedure_type_code, procedure_type_system, procedure_type | valueset_code | restrict |
Referenced by
procedure_procedure_detailviaprocedure_idprocedure_multimediaviaprocedure_id
Indexes
procedure_form_id_idxonform_id
Child tables
2 tables hang off procedure, one row per repetition.
procedure_procedure_detail
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
procedure_id | uuid → procedure | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
anatomical_location_id | uuid | yes | — | — |
anatomical_location_circle_id | uuid | yes | — | — |
anatomical_location_relative_id | uuid | yes | — | — |
device_id | uuid | yes | — | — |
Constraints
check (num_nonnulls(anatomical_location_id, anatomical_location_circle_id, anatomical_location_relative_id, device_id) = 1)Unique
procedure_id, position
References
| Columns | Target | On delete |
|---|---|---|
procedure_id | procedure | cascade |
anatomical_location_id | anatomical_location | no action |
anatomical_location_circle_id | anatomical_location_circle | no action |
anatomical_location_relative_id | anatomical_location_relative | no action |
device_id | device | no action |
Indexes
procedure_procedure_detail_anatomical_location_id_idxonanatomical_location_idprocedure_procedure_detail_anatomical_location_circle_id_idxonanatomical_location_circle_idprocedure_procedure_detail_anatomical_location_relative_id_idxonanatomical_location_relative_idprocedure_procedure_detail_device_id_idxondevice_id
procedure_multimedia
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
procedure_id | uuid → procedure | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
attachment_id | uuid | no | Multimedia | /description[at0001]/items[at0062] |
Unique
procedure_id, positionprocedure_id, attachment_id
References
| Columns | Target | On delete |
|---|---|---|
procedure_id | procedure | cascade |
attachment_id | attachment | restrict |
Indexes
procedure_multimedia_attachment_id_idxonattachment_id