---
title: "adverse_reaction_screening"
description: "Series of questions and associated answers used to screen for the presence of any previous adverse reactions."
---
Series of questions and associated answers used to screen for the presence of any previous adverse reactions.
**Purpose.** To create a framework for recording answers to pre-defined screening questions about adverse reactions.
## Source
| Model | Leg | Role |
|---|---|---|
| `openEHR-EHR-OBSERVATION.adverse_reaction_screening.v1` | openEHR | defines this table |
## Columns
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
| `id` | `uuid primary key` | no | Primary key. | — |
| `form_id` | `uuid` → [`form`](/docs/tables/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_purpose`
`screening_purpose_code`
`screening_purpose_system`
`screening_purpose_valueset_id` | coded text
`text`, `text`, `text`, `text` | yes | Screening purpose | `/data[at0001]/events[at0002]/data[at0003]/items[at0034]` |
| `any_adverse_reactions` | `boolean` | yes | Any adverse reactions? | `/data[at0001]/events[at0002]/data[at0003]/items[at0028]` |
| `description` | `text` | yes | Description | `/data[at0001]/events[at0002]/data[at0003]/items[at0043]` |
## Constraints
```sql
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`](/docs/tables/form) | cascade |
| `form_id, form_block_id` | [`form_block`](/docs/tables/form_block) | cascade |
| `screening_purpose_valueset_id, screening_purpose_code, screening_purpose_system, screening_purpose` | [`valueset_code`](/docs/tables/valueset_code) | restrict |
## Referenced by
- [`adverse_reaction_screening_specific_adverse_reaction`](/docs/tables/adverse_reaction_screening_specific_adverse_reaction) via `adverse_reaction_screening_id`
## Indexes
- `adverse_reaction_screening_form_id_idx` on `form_id`
## Child tables
2 tables hang off `adverse_reaction_screening`, one row per repetition.
### `adverse_reaction_screening_specific_adverse_reaction`
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
| `id` | `uuid primary key` | no | Primary key. | — |
| `adverse_reaction_screening_id` | `uuid` → [`adverse_reaction_screening`](/docs/tables/adverse_reaction_screening) | no | — | — |
| `position` | `integer` | no | Order of this row within its parent, from zero. | — |
| `substance_name`
`substance_name_code`
`substance_name_system`
`substance_name_valueset_id` | coded text
`text`, `text`, `text`, `text` | yes | Substance name | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0004]` |
| `presence` | `boolean` | yes | Presence? | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0005]` |
| `timing` | `timestamptz` | yes | Timing | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0040]` |
| `comment` | `text` | yes | Comment | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0025]` |
#### Constraints
```sql
check ((substance_name_code is null and substance_name_system is null and substance_name_valueset_id is null) or (substance_name is not null and substance_name_code is not null and substance_name_system is not null and substance_name_valueset_id is not null))
```
#### Unique
- `adverse_reaction_screening_id, position`
#### References
| Columns | Target | On delete |
|---|---|---|
| `adverse_reaction_screening_id` | [`adverse_reaction_screening`](/docs/tables/adverse_reaction_screening) | cascade |
| `substance_name_valueset_id, substance_name_code, substance_name_system, substance_name` | [`valueset_code`](/docs/tables/valueset_code) | restrict |
### Referenced by
- [`adverse_reaction_screening_specific_adverse_reaction_add_eb257e`](/docs/tables/adverse_reaction_screening_specific_adverse_reaction_add_eb257e) via `adverse_reaction_screening_specific_adverse_reaction_id`
### `adverse_reaction_screening_specific_adverse_reaction_add_eb257e`
Child table — one row per repetition, deleted with its parent.
| Column | Type | Null | Description | Source |
|---|---|---|---|---|
| `id` | `uuid primary key` | no | Primary key. | — |
| `adverse_reaction_screening_specific_adverse_reaction_id` | `uuid` → [`adverse_reaction_screening_specific_adverse_reaction`](/docs/tables/adverse_reaction_screening_specific_adverse_reaction) | 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[at0039]` |
#### Unique
- `adverse_reaction_screening_specific_adverse_reaction_id, position`
- `adverse_reaction_screening_specific_adverse_reaction_id, organization_id`
#### References
| Columns | Target | On delete |
|---|---|---|
| `adverse_reaction_screening_specific_adverse_reaction_id` | [`adverse_reaction_screening_specific_adverse_reaction`](/docs/tables/adverse_reaction_screening_specific_adverse_reaction) | cascade |
| `organization_id` | [`organization`](/docs/tables/organization) | no action |
#### Indexes
- `adverse_reaction_screening_specific_adverse_reaction_add_8f359b` on `organization_id`