Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | VARCHAR | 36 | null |
|
|
||||||
| location_business_line_id | VARCHAR | 36 | null |
|
|
||||||
| encounter_id | VARCHAR | 36 | null |
|
|
FK to encounters.id |
|||||
| user_id | VARCHAR | 36 | √ | null |
|
|
FK to users.id (null if external participant) |
||||
| caregiver_id | VARCHAR | 36 | √ | null |
|
|
FK to caregivers.id (null if staff or external participant) |
||||
| role | VARCHAR | 30 | null |
|
|
RENDERING_PROVIDER, SUPERVISOR, OBSERVER, CAREGIVER, CO_THERAPIST, INTERPRETER |
|||||
| participant_name | VARCHAR | 200 | √ | null |
|
|
Name if user_id is null (external participant) |
||||
| is_present | BIT | 1 | 1 |
|
|
Was participant actually present? |
|||||
| notes | TEXT | 65535 | √ | null |
|
|
Notes about participation |
||||
| created_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| updated_at | TIMESTAMP | 19 | CURRENT_TIMESTAMP |
|
|
||||||
| created_by | VARCHAR | 36 | √ | null |
|
|
|||||
| updated_by | VARCHAR | 36 | √ | null |
|
|
|||||
| attendance_duration_minutes | INT | 10 | √ | null |
|
|
|||||
| attendance_end_time | TIME | 8 | √ | null |
|
|
|||||
| attendance_start_time | TIME | 8 | √ | null |
|
|
|||||
| relationship_to_client | VARCHAR | 100 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| idx_encounter_participants_caregiver | Performance | Asc | caregiver_id |
| idx_encounter_participants_encounter | Performance | Asc | encounter_id |
| idx_encounter_participants_location | Performance | Asc | location_business_line_id |
| idx_encounter_participants_role | Performance | Asc | role |
| idx_encounter_participants_user | Performance | Asc | user_id |