Schema reference / Tables / view MDX source
adverse_reaction_monitoring
Information about the outcome of monitoring for adverse reactions, during or after the administration of a substance.
Information about the outcome of monitoring for adverse reactions, during or after the administration of a substance.
Purpose. To record information about the outcome of monitoring for adverse reactions, during or after the administration of a substance.
Source
| Model | Leg | Role |
|---|---|---|
openEHR-EHR-OBSERVATION.adverse_reaction_monitoring.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. | — |
purposepurpose_codepurpose_systempurpose_valueset_id | coded texttext, text, text, text | yes | Purpose | /data[at0001]/events[at0002]/data[at0003]/items[at0013] |
substancesubstance_codesubstance_systemsubstance_valueset_id | coded texttext, text, text, text | yes | Substance | /data[at0001]/events[at0002]/data[at0003]/items[at0004] |
reactionreaction_codereaction_systemreaction_valueset_id | coded texttext, text, text, text | yes | Reaction? | /data[at0001]/events[at0002]/data[at0003]/items[at0005] |
reaction_event | uuid | yes | Reaction event | /data[at0001]/events[at0002]/data[at0003]/items[at0016] |
comment | text | yes | Comment | /data[at0001]/events[at0002]/data[at0003]/items[at0008] |
mitigation_factor | text | yes | Mitigation factor | /data[at0001]/events[at0002]/state[at0012]/items[at0011] |
methodmethod_codemethod_systemmethod_valueset_id | coded texttext, text, text, text | yes | Method | /protocol[at0009]/items[at0017] |
Constraints
check ((purpose_code is null and purpose_system is null and purpose_valueset_id is null) or (purpose is not null and purpose_code is not null and purpose_system is not null and purpose_valueset_id is not null))
check ((substance_code is null and substance_system is null and substance_valueset_id is null) or (substance is not null and substance_code is not null and substance_system is not null and substance_valueset_id is not null))
check ((reaction_code is null and reaction_system is null and reaction_valueset_id is null) or (reaction is not null and reaction_code is not null and reaction_system is not null and reaction_valueset_id is not null))
check ((method_code is null and method_system is null and method_valueset_id is null) or (method is not null and method_code is not null and method_system is not null and method_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 |
purpose_valueset_id, purpose_code, purpose_system, purpose | valueset_code | restrict |
substance_valueset_id, substance_code, substance_system, substance | valueset_code | restrict |
reaction_valueset_id, reaction_code, reaction_system, reaction | valueset_code | restrict |
method_valueset_id, method_code, method_system, method | valueset_code | restrict |
reaction_event | adverse_reaction_event | no action |
Referenced by
adverse_reaction_monitoring_substance_detailsviaadverse_reaction_monitoring_id
Indexes
adverse_reaction_monitoring_form_id_idxonform_idadverse_reaction_monitoring_reaction_event_idxonreaction_event
Child tables
1 table hang off adverse_reaction_monitoring, one row per repetition.
adverse_reaction_monitoring_substance_details
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
id | uuid primary key | no | Primary key. | — |
adverse_reaction_monitoring_id | uuid → adverse_reaction_monitoring | no | — | — |
position | integer | no | Order of this row within its parent, from zero. | — |
medication_detail_id | uuid | no | Substance details | /data[at0001]/events[at0002]/data[at0003]/items[at0014] |
Unique
adverse_reaction_monitoring_id, positionadverse_reaction_monitoring_id, medication_detail_id
References
| Columns | Target | On delete |
|---|---|---|
adverse_reaction_monitoring_id | adverse_reaction_monitoring | cascade |
medication_detail_id | medication_detail | no action |
Indexes
adverse_reaction_monitoring_substance_details_medication_9a3b3fonmedication_detail_id
Value sets
| Value set | Codes |
|---|---|
org.openehr::openEHR-EHR-OBSERVATION.adverse_reaction_monitoring.v1/reaction | 3 |