--- title: "physical_activity_screening" description: "Series of questions and associated answers used to screen for physical activity." --- Series of questions and associated answers used to screen for physical activity. **Purpose.** To create a framework for recording answers to pre-defined screening questions about the broad range of physical activites. ## Source | Model | Leg | Role | |---|---|---| | `openEHR-EHR-OBSERVATION.physical_activity_screening.v0` | 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_physical_activity` | `boolean` | yes | Any physical activity? | `/data[at0001]/events[at0002]/data[at0003]/items[at0039]` | | `description` | `text` | yes | Description | `/data[at0001]/events[at0002]/data[at0003]/items[at0044]` | ## 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 - [`physical_activity_screening_physical_activity`](/docs/tables/physical_activity_screening_physical_activity) via `physical_activity_screening_id` ## Indexes - `physical_activity_screening_form_id_idx` on `form_id` ## Child tables 1 table hang off `physical_activity_screening`, one row per repetition. ### `physical_activity_screening_physical_activity` Child table — one row per repetition, deleted with its parent. | Column | Type | Null | Description | Source | |---|---|---|---|---| | `id` | `uuid primary key` | no | Primary key. | — | | `physical_activity_screening_id` | `uuid` → [`physical_activity_screening`](/docs/tables/physical_activity_screening) | no | — | — | | `position` | `integer` | no | Order of this row within its parent, from zero. | — | | `physical_activity_name`
`physical_activity_name_code`
`physical_activity_name_system`
`physical_activity_name_valueset_id` | coded text
`text`, `text`, `text`, `text` | yes | Physical activity name | `/data[at0001]/events[at0002]/data[at0003]/items[at0022]/items[at0004]` | | `specific_physical_activity` | `boolean` | yes | Specific physical activity? | `/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[at0035]` | #### Constraints ```sql check ((physical_activity_name_code is null and physical_activity_name_system is null and physical_activity_name_valueset_id is null) or (physical_activity_name is not null and physical_activity_name_code is not null and physical_activity_name_system is not null and physical_activity_name_valueset_id is not null)) ``` #### Unique - `physical_activity_screening_id, position` #### References | Columns | Target | On delete | |---|---|---| | `physical_activity_screening_id` | [`physical_activity_screening`](/docs/tables/physical_activity_screening) | cascade | | `physical_activity_name_valueset_id, physical_activity_name_code, physical_activity_name_system, physical_activity_name` | [`valueset_code`](/docs/tables/valueset_code) | restrict |