--- title: "social_context_screening" description: "Series of questions and associated answers used to screen about the social environment and social situation which may impact the health and well-being of the individual, especiall…" --- Series of questions and associated answers used to screen about the social environment and social situation which may impact the health and well-being of the individual, especially to identify potential issues or risks. **Purpose.** To create a framework for recording answers to pre-defined screening questions about the social context. ## Source | Model | Leg | Role | |---|---|---| | `openEHR-EHR-OBSERVATION.social_context_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]` | | `overall_comment` | `text` | yes | Overall comment | `/data[at0001]/events[at0002]/data[at0003]/items[at0052]` | ## 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 - [`social_context_screening_specific_social_context`](/docs/tables/social_context_screening_specific_social_context) via `social_context_screening_id` ## Indexes - `social_context_screening_form_id_idx` on `form_id` ## Child tables 1 table hang off `social_context_screening`, one row per repetition. ### `social_context_screening_specific_social_context` Child table — one row per repetition, deleted with its parent. | Column | Type | Null | Description | Source | |---|---|---|---|---| | `id` | `uuid primary key` | no | Primary key. | — | | `social_context_screening_id` | `uuid` → [`social_context_screening`](/docs/tables/social_context_screening) | no | — | — | | `position` | `integer` | no | Order of this row within its parent, from zero. | — | | `context`
`context_code`
`context_system`
`context_valueset_id` | coded text
`text`, `text`, `text`, `text` | yes | Context | `/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[at0051]` | | `comment` | `text` | yes | Comment | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0025]` | #### Constraints ```sql check ((context_code is null and context_system is null and context_valueset_id is null) or (context is not null and context_code is not null and context_system is not null and context_valueset_id is not null)) ``` #### Unique - `social_context_screening_id, position` #### References | Columns | Target | On delete | |---|---|---| | `social_context_screening_id` | [`social_context_screening`](/docs/tables/social_context_screening) | cascade | | `context_valueset_id, context_code, context_system, context` | [`valueset_code`](/docs/tables/valueset_code) | restrict | ## Value sets | Value set | Codes | |---|---| | `org.openehr::openEHR-EHR-OBSERVATION.social_context_screening.v1/context` | 2 |