Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | BIGINT | 19 | √ | null |
|
|
|||||
| pid | BIGINT | 19 | null |
|
|
The internal patient identifier |
|||||
| list_id | INT | 10 | null |
|
|
Represents the specific medical issue (allergy,surgery,etc) this encounter is linked to |
|||||
| encounter | INT | 10 | null |
|
|
References form_encounter.encounter, representing the encounter that is connected to the issue |
|||||
| resolved | BOOLEAN | 3 | null |
|
|
0=Issue not resolved,1=Issue is resolved |
|||||
| uuid | BINARY | 16 | √ | NULL |
|
|
UUID for this issue encounter record, for data exchange purposes |
||||
| created_by | BIGINT | 19 | √ | NULL |
|
|
fk to users.id for the user that entered in the issue encounter data |
||||
| updated_by | BIGINT | 19 | √ | NULL |
|
|
fk to users.id for the user that last updated the issue encounter data |
||||
| created_at | DATETIME | 19 | √ | current_timestamp() |
|
|
timestamp when this issue encounter record was created |
||||
| updated_at | DATETIME | 19 | √ | current_timestamp() |
|
|
timestamp when this issue encounter record was last updated |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| uniq_issue_key | Must be unique | Asc/Asc/Asc | pid + list_id + encounter |
| uuid_unique | Must be unique | Asc | uuid |