Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| HistID | int identity | 4 | √ | null |
|
|
History primary key - Unique identifier for each diagnosis audit history record |
||||
| DateArchived | datetime | 16,3 | √ | null |
|
|
Archive timestamp - Date and time when the diagnosis change was recorded in the audit history |
||||
| TableName | varchar | 50 | √ | null |
|
|
Source table name - Name of the diagnosis table where the original change occurred |
||||
| FieldName | varchar | 50 | √ | null |
|
|
Changed field name - Name of the specific diagnosis field that was modified |
||||
| ValueBefore | varchar | 4000 | √ | null |
|
|
Previous value - Value of the diagnosis field before the change was made |
||||
| ValueAfter | varchar | 4000 | √ | null |
|
|
New value - Value of the diagnosis field after the change was made |
||||
| ArchivedBy | int | 4 | √ | null |
|
|
Change user reference - Links to AccessUser table for the healthcare provider who made the diagnosis change (foreign key to AccessUser.UserID) |
||||
| InsertID | int | 4 | √ | null |
|
|
Record identifier - Primary key of the diagnosis record that was modified in the source table |
||||
| FieldID | int | 4 | √ | null |
|
|
Field identifier - Numeric identifier for the diagnosis field that was changed |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PK__History_Diagnosis | Primary key | Asc | HistID |
