CompassV2TestPages:v2.X: Difference between revisions
Jump to navigation
Jump to search
DavidHesketh (talk | contribs) No edit summary |
DavidHesketh (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the allergy'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 22: | Line 22: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 28: | Line 28: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 34: | Line 34: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 40: | Line 40: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter this allergy was record in'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 46: | Line 46: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 52: | Line 52: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the clinical code is recorded for'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 58: | Line 58: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 64: | Line 64: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Is this instance of the code a review of a previous encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 70: | Line 70: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the allergy'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 76: | Line 76: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the allergy'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 82: | Line 82: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age the patient was at the time of this event'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 88: | Line 88: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The date the allergy was recorded'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 107: | Line 107: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the appointment'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 113: | Line 113: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 119: | Line 119: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 125: | Line 125: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 131: | Line 131: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 137: | Line 137: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 143: | Line 143: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The start date of the appointment'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 149: | Line 149: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The time allocated for the appointment, not necessarily the actual duration always in minutes'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 155: | Line 155: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Time between sent in and left always in minutes'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 161: | Line 161: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The status of the appointment e.g. arrived/sent in/left/DNA'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 167: | Line 167: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'How long the patient waited from being marked as arrived to being sent in'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 173: | Line 173: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'How long the patient was delayed for'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 179: | Line 179: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Date and time the patient was sent into the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 185: | Line 185: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Date and time the patient left the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 191: | Line 191: | ||
<td>varchar(36)</td> | <td>varchar(36)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Unique reference to the source of the appointment'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 197: | Line 197: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the appointment was cancelled'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 215: | Line 215: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'same as the id column on the patient table '</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 221: | Line 221: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'IM reference (e.g. appointment type)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 227: | Line 227: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'IM reference (e.g. Appointment Type)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 233: | Line 233: | ||
<td>json</td> | <td>json</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id, just raw JSON'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 239: | Line 239: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id or raw JSON, just a basic text value (i.e. GP Practitioner number)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 256: | Line 256: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the concept'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 262: | Line 262: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Concept grouping construct, deprecated'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 268: | Line 268: | ||
<td>varchar(150)</td> | <td>varchar(150)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique concept identifier'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 274: | Line 274: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether its draft/autocreated or confirmed as a "proper" concept'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 280: | Line 280: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Short name'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 286: | Line 286: | ||
<td>varchar(400)</td> | <td>varchar(400)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Full name (or term for ontological concepts)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 292: | Line 292: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The coding scheme for the code (Read, CTV3, SNOMED etc)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 298: | Line 298: | ||
<td>varchar(40)</td> | <td>varchar(40)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The code (non-unique unless coupled with a scheme)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 304: | Line 304: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Rough indicator of number of occurences of the concept'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 310: | Line 310: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The timestamp of the last update to the concept'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 329: | Line 329: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'the legacy (read 2, ctv3, icd10, opcs4, emis local, etc) concept'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 335: | Line 335: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'the core (snomed, discovery) concept that the legacy concept maps to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 341: | Line 341: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Timestamp the map was last updated/added'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 371: | Line 371: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the diagnostic order'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 377: | Line 377: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 383: | Line 383: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 389: | Line 389: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 395: | Line 395: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter the observation was recorded at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 401: | Line 401: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 407: | Line 407: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the diagnostic order was identified by a clinician'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 413: | Line 413: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 419: | Line 419: | ||
<td>double</td> | <td>double</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The value of the result of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 425: | Line 425: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The units of the result of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 431: | Line 431: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 437: | Line 437: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Any text associated with the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 443: | Line 443: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 449: | Line 449: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the observation is marked as a problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 455: | Line 455: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the observation is a review of an existing problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 461: | Line 461: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of the problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 467: | Line 467: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the parent observation in a complex observation eg systolic and diastolic blood pressures will have a parent observation of Blood pressure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 473: | Line 473: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 479: | Line 479: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 485: | Line 485: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age of the patient at the time of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 491: | Line 491: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the episodicity of the problem eg First, review, flare'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 497: | Line 497: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether the diagnostic order is a primary order'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 528: | Line 528: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 534: | Line 534: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 540: | Line 540: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 546: | Line 546: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 552: | Line 552: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 558: | Line 558: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the appointment this encounter took part on'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 564: | Line 564: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the clinical code is recorded for'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 570: | Line 570: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the precision of the date of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 576: | Line 576: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Is this instance of the code a review of a previous encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 582: | Line 582: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the service provider organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 588: | Line 588: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the type of encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 594: | Line 594: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the type of encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 600: | Line 600: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age the patient was when this encounter took place'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 606: | Line 606: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Unused'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 612: | Line 612: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Unused'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 618: | Line 618: | ||
<td>varchar(40)</td> | <td>varchar(40)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The admission method of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 624: | Line 624: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 630: | Line 630: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Reference to the institution the encounter took place at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 636: | Line 636: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the encounter was recorded'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 657: | Line 657: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'same as the id column on the encounter table'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 663: | Line 663: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'IM concept id reference (i.e. Admission method)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 669: | Line 669: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'IM concept id reference (i.e. Emergency admission)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 675: | Line 675: | ||
<td>json</td> | <td>json</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id, just raw JSON (i.e. birth delivery details)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 681: | Line 681: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id, or raw JSON, just a basic text value (i.e. FIN number)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 698: | Line 698: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the encounter event'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 704: | Line 704: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 710: | Line 710: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The patient this event belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 716: | Line 716: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The person this event belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 722: | Line 722: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the parent encounter record'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 728: | Line 728: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 734: | Line 734: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the appointment this encounter took part on'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 740: | Line 740: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the encounter took place'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 746: | Line 746: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the precision of the date of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 752: | Line 752: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the episode of care this encounter belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 758: | Line 758: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the service provider organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 764: | Line 764: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the type of encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 770: | Line 770: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the type of encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 776: | Line 776: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age of the patient at the time of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 782: | Line 782: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Unused'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 788: | Line 788: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Unused'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 794: | Line 794: | ||
<td>varchar(40)</td> | <td>varchar(40)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The admission method of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 800: | Line 800: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of the encounter'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 806: | Line 806: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the institution the encounter took place at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 812: | Line 812: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the encounter was recorded'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 818: | Line 818: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether the encounter is finished'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 835: | Line 835: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the episode of care'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 841: | Line 841: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 847: | Line 847: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 853: | Line 853: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 859: | Line 859: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the registration type of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 865: | Line 865: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the registration status of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 871: | Line 871: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the registration was started for this episode of care'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 877: | Line 877: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the registration was ended for this episode of care'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 883: | Line 883: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the usual GP for this episode of care'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 906: | Line 906: | ||
<td>datetime(3)</td> | <td>datetime(3)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'date time the change was made to this DB'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 912: | Line 912: | ||
<td>tinyint</td> | <td>tinyint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'type of transaction 0=insert, 1=update, 2=delete'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 918: | Line 918: | ||
<td>tinyint</td> | <td>tinyint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'identifier of the table changed'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 924: | Line 924: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'id of the record changed'</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 939: | Line 939: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the flag'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 945: | Line 945: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 951: | Line 951: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 957: | Line 957: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 963: | Line 963: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the flag was entered onto the patients record'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 969: | Line 969: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 975: | Line 975: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the flag is active or not'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 981: | Line 981: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'This is a warning set by the publisher regarding he patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 999: | Line 999: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the location'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,005: | Line 1,005: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The name of a location set by the publisher. E.g. ward, clinic, domiciliary'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,011: | Line 1,011: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The type of location'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,017: | Line 1,017: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Textual description of the type of location eg GP Practice'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,023: | Line 1,023: | ||
<td>varchar(10)</td> | <td>varchar(10)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The postcode of the location'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,029: | Line 1,029: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the managing organisation of the location'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,047: | Line 1,047: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the medication order'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,053: | Line 1,053: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,059: | Line 1,059: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,065: | Line 1,065: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,071: | Line 1,071: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter the medication order was issued in'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,077: | Line 1,077: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,083: | Line 1,083: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the medication order was issued'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,089: | Line 1,089: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,095: | Line 1,095: | ||
<td>varchar(1000)</td> | <td>varchar(1000)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Textual description of the dose'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,101: | Line 1,101: | ||
<td>double</td> | <td>double</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The value of the medication that was prescribed eg 50'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,107: | Line 1,107: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The unit of the medication that was prescribed eg tablets'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,113: | Line 1,113: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'How many days the medication is prescribed for'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,119: | Line 1,119: | ||
<td>double</td> | <td>double</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The estimated cost of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,125: | Line 1,125: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the medication statement. A medication statement can have many medication orders'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,131: | Line 1,131: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,137: | Line 1,137: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,143: | Line 1,143: | ||
<td>varchar(6)</td> | <td>varchar(6)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the drug in the BNF dictionary'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,149: | Line 1,149: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age the patient was at the time of this event'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,155: | Line 1,155: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'The issue method of the medication eg hand written'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,174: | Line 1,174: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,180: | Line 1,180: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,186: | Line 1,186: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,192: | Line 1,192: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,198: | Line 1,198: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter this medication was recorded in'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,204: | Line 1,204: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,210: | Line 1,210: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the medication was clinical relevant'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,216: | Line 1,216: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,222: | Line 1,222: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether the medication is active or not'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,228: | Line 1,228: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the medication was cancelled'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,234: | Line 1,234: | ||
<td>varchar(1000)</td> | <td>varchar(1000)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Texual description of the dose of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,240: | Line 1,240: | ||
<td>double</td> | <td>double</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The value of the medication that was prescribed eg 50'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,246: | Line 1,246: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The unit of the medication that was prescribed eg tablets'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,252: | Line 1,252: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the authorisation type'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,258: | Line 1,258: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,264: | Line 1,264: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the medication'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,270: | Line 1,270: | ||
<td>varchar(6)</td> | <td>varchar(6)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the drug in the BNF dictionary'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,276: | Line 1,276: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age the patient was at the time of this event'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,282: | Line 1,282: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'The issue method of the medication eg hand written'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,307: | Line 1,307: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,313: | Line 1,313: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,319: | Line 1,319: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,325: | Line 1,325: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,331: | Line 1,331: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter the observation was recorded at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,337: | Line 1,337: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,343: | Line 1,343: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the observation was identified by a clinician'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,349: | Line 1,349: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,355: | Line 1,355: | ||
<td>double</td> | <td>double</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The value of the result of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,361: | Line 1,361: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The units of the result of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,367: | Line 1,367: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,373: | Line 1,373: | ||
<td>text</td> | <td>text</td> | ||
<td>No Constraint</td> | <td>No Constraint</td> | ||
<td> | <td> 'Any text associated with the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,379: | Line 1,379: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the result'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,385: | Line 1,385: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the observation is marked as a problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,391: | Line 1,391: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the observation is a review of an existing problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,397: | Line 1,397: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of the problem'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,403: | Line 1,403: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the parent observation in a complex observation eg systolic and diastolic blood pressures will have a parent observation of Blood pressure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,409: | Line 1,409: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,415: | Line 1,415: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,421: | Line 1,421: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age of the patient at the time of the observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,427: | Line 1,427: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the episodicity of the problem eg First, review, flare'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,433: | Line 1,433: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether the observation is a primary observation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,439: | Line 1,439: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the observation was recorded in the system'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,464: | Line 1,464: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'same as the id column on the observation table'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,470: | Line 1,470: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'IM reference (i.e. significance)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,476: | Line 1,476: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'IM reference (i.e. minor, significant)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,482: | Line 1,482: | ||
<td>json</td> | <td>json</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'the JSON data itself '</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,488: | Line 1,488: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id or raw JSON, just a basic text value'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,505: | Line 1,505: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,511: | Line 1,511: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'ODS Code of the organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,517: | Line 1,517: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Name of the organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,523: | Line 1,523: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The type of organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,529: | Line 1,529: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Textual description of the type of organisation eg GP Practice'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,535: | Line 1,535: | ||
<td>varchar(10)</td> | <td>varchar(10)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The postcode of the organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,541: | Line 1,541: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The id of the parent organisation'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,559: | Line 1,559: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'organisation ID, corresponds to same ID in the organizaton table'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,565: | Line 1,565: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'software name of publishing system, i.e. SystmOne'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,571: | Line 1,571: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'date time data was last sent to DDS'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,577: | Line 1,577: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'cutoff date time of the last extract from the publishing system'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,593: | Line 1,593: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,599: | Line 1,599: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,605: | Line 1,605: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,611: | Line 1,611: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The title of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,617: | Line 1,617: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The first names of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,623: | Line 1,623: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The last name of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,629: | Line 1,629: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the gender of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,635: | Line 1,635: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The NHS number of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,641: | Line 1,641: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of birth of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,647: | Line 1,647: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of death of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,653: | Line 1,653: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the current address of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,659: | Line 1,659: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the ethnicity of the patient'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,665: | Line 1,665: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the organisation the patient is registered at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,701: | Line 1,701: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'same as the id column on the patient table '</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,707: | Line 1,707: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'IM reference (e.g. Cause of death)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,713: | Line 1,713: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'IM reference (e.g. COVID)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,719: | Line 1,719: | ||
<td>json</td> | <td>json</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id, just raw JSON'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,725: | Line 1,725: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'where there is no mapped value_id or raw JSON, just a basic text value (i.e. GP Practitioner number)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,742: | Line 1,742: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,748: | Line 1,748: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,754: | Line 1,754: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,760: | Line 1,760: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,766: | Line 1,766: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The first line of the address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,772: | Line 1,772: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The second line of the address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,778: | Line 1,778: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The third line of the address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,784: | Line 1,784: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The fourth line of the address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,790: | Line 1,790: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The city'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,796: | Line 1,796: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The postcode'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,802: | Line 1,802: | ||
<td>int</td> | <td>int</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'use of address (e.g. home, temporary)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,808: | Line 1,808: | ||
<td>date</td> | <td>date</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The start date of this address being relevant'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,814: | Line 1,814: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of this address being relevant'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,820: | Line 1,820: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the LSOA_2001 code'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,826: | Line 1,826: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the LSOA_2011 code'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,832: | Line 1,832: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the MSOA_2001 code'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,838: | Line 1,838: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'A reference to the MSOA_2011 code'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,844: | Line 1,844: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The ward the address belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 1,850: | Line 1,850: | ||
<td>varchar(9)</td> | <td>varchar(9)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The local authority the address belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,103: | Line 2,103: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the patient contact'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,109: | Line 2,109: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,115: | Line 2,115: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,121: | Line 2,121: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,127: | Line 2,127: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'use of contact (e.g. mobile, home,work'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,133: | Line 2,133: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'type of contact (e.g. phone, email)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,139: | Line 2,139: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The start date of the contact being valid'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,145: | Line 2,145: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date of the contact being valid'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,151: | Line 2,151: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The value of the contact information eg phone number, email address'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,168: | Line 2,168: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the patient pseudo id'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,174: | Line 2,174: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,180: | Line 2,180: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the patient this registration status history belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,186: | Line 2,186: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the person this registration status history belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,192: | Line 2,192: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The name of the salt used to create the pseudo id'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,198: | Line 2,198: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> '"Secure Key IDentifier" - the pseudonymised ID generated for this patient using the salt specified in the salt_name column. Typically generated from patient NHS number, but is configurable on a case by case basis (e.g. may include date of birth)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,204: | Line 2,204: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the nhs number is valid'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,210: | Line 2,210: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Whether the nhs number has been verified by the publisher'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,228: | Line 2,228: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,234: | Line 2,234: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,240: | Line 2,240: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,305: | Line 2,305: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,311: | Line 2,311: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,317: | Line 2,317: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The title of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,323: | Line 2,323: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The first names of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,329: | Line 2,329: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The last name of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,335: | Line 2,335: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the gender of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,341: | Line 2,341: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The NHS number of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,347: | Line 2,347: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of birth of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,353: | Line 2,353: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date of death of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,359: | Line 2,359: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the current address of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,365: | Line 2,365: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the ethnicity of the person'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,371: | Line 2,371: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the organisation the person is registered at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,406: | Line 2,406: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,412: | Line 2,412: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,418: | Line 2,418: | ||
<td>varchar(1024)</td> | <td>varchar(1024)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Name of the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,424: | Line 2,424: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The code representing the role of the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,430: | Line 2,430: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Textual description of the role of the practitioner eg General Medical Practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,436: | Line 2,436: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The GMC code of the practitioner'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,453: | Line 2,453: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the procedure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,459: | Line 2,459: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,465: | Line 2,465: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,471: | Line 2,471: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,477: | Line 2,477: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter the procedure was administered at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,483: | Line 2,483: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,489: | Line 2,489: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the procedure was administered by a clinician'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,495: | Line 2,495: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,501: | Line 2,501: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the status of the procedure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,507: | Line 2,507: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the procedure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,513: | Line 2,513: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the procedure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,519: | Line 2,519: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age of the patient at the time of the procedure'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,525: | Line 2,525: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the procedure was recorded in the source system'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,543: | Line 2,543: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,549: | Line 2,549: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,555: | Line 2,555: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,561: | Line 2,561: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique individual across all organisations'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,567: | Line 2,567: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the encounter the referral was made in'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,573: | Line 2,573: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The clinician the activity is recorded against'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,579: | Line 2,579: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the referral was made'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,585: | Line 2,585: | ||
<td>smallint</td> | <td>smallint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,591: | Line 2,591: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the organisation that made the refereral request'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,597: | Line 2,597: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the organization receiving the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,603: | Line 2,603: | ||
<td>smallint</td> | <td>smallint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the priority of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,609: | Line 2,609: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the type of referral request'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,615: | Line 2,615: | ||
<td>varchar(50)</td> | <td>varchar(50)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The mode of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,621: | Line 2,621: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether this is an outgoing referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,627: | Line 2,627: | ||
<td>tinyint(1)</td> | <td>tinyint(1)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Whether this referral is a review'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,633: | Line 2,633: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,639: | Line 2,639: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the clinical coding of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,645: | Line 2,645: | ||
<td>decimal(5,2)</td> | <td>decimal(5,2)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The age of the patient at the time of the referral'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,651: | Line 2,651: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The date the referral request was added to the source system'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,670: | Line 2,670: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the registration status history'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,676: | Line 2,676: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,682: | Line 2,682: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the patient this registration status history belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,688: | Line 2,688: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Reference to the person this registration status history belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,694: | Line 2,694: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the episode of care this status history belongs to'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,700: | Line 2,700: | ||
<td>int</td> | <td>int</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the registration status'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,706: | Line 2,706: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The start date for the period this registration status history was valid'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,712: | Line 2,712: | ||
<td>datetime</td> | <td>datetime</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The end date for the period this registration status history was valid'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,729: | Line 2,729: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Unique Id of the schedule'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,735: | Line 2,735: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>NOT NULL</td> | <td>NOT NULL</td> | ||
<td> | <td> 'Owning organisation (i.e. publisher)'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,741: | Line 2,741: | ||
<td>bigint</td> | <td>bigint</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Reference to the practitioner who owns the schedule'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,747: | Line 2,747: | ||
<td>date</td> | <td>date</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The start date of the schedule'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,753: | Line 2,753: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The type of schedule eg Timed Appointments'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,759: | Line 2,759: | ||
<td>varchar(255)</td> | <td>varchar(255)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'Textual description of the location the schedule was held at'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 2,765: | Line 2,765: | ||
<td>varchar(150)</td> | <td>varchar(150)</td> | ||
<td>DEFAULT NULL</td> | <td>DEFAULT NULL</td> | ||
<td> | <td> 'The name of the schedule'</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="5">Unique index name: `schedule_id` Index Columns: (id)</td> </tr> <tr> | <td colspan="5">Unique index name: `schedule_id` Index Columns: (id)</td> </tr> <tr> | ||
<td colspan="5">PRIMARY KEY CONSTRAINT(s) (`organization_id`,`id`)</td> </tr> </table> | <td colspan="5">PRIMARY KEY CONSTRAINT(s) (`organization_id`,`id`)</td> </tr> </table> |
Revision as of 13:18, 28 November 2022
Remote Subscriber Database (RSD) Schema (Compass 2) Version: v2.1.2test
allergy_intolerance
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the allergy' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter this allergy was record in' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the clinical code is recorded for' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
is_review | tinyint(1) | NOT NULL | 'Is this instance of the code a review of a previous encounter' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the allergy' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the allergy' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age the patient was at the time of this event' | |
date_recorded | datetime | NOT NULL | 'The date the allergy was recorded' | |
Unique index name: `allergy_intolerance_id` Index Columns: (id) | ||||
Index name: `allergy_intolerance_patient_id` Index Columns: (patient_id) | ||||
Index name: `allergy_intolerance_core_concept_id` Index Columns: (core_concept_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
appointment
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the appointment' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
schedule_id | bigint | DEFAULT NULL | 'The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule' | |
start_date | date | DEFAULT NULL | 'The start date of the appointment' | |
planned_duration | int | DEFAULT NULL | 'The time allocated for the appointment, not necessarily the actual duration always in minutes' | |
actual_duration | int | DEFAULT NULL | 'Time between sent in and left always in minutes' | |
appointment_status_concept_id | int | DEFAULT NULL | 'The status of the appointment e.g. arrived/sent in/left/DNA' | |
patient_wait | int | DEFAULT NULL | 'How long the patient waited from being marked as arrived to being sent in' | |
patient_delay | int | DEFAULT NULL | 'How long the patient was delayed for' | |
date_time_sent_in | datetime | DEFAULT NULL | 'Date and time the patient was sent into the practitioner' | |
date_time_left | datetime | DEFAULT NULL | 'Date and time the patient left the practitioner' | |
source_id | varchar(36) | DEFAULT NULL | 'Unique reference to the source of the appointment' | |
cancelled_date | datetime | DEFAULT NULL | 'The date the appointment was cancelled' | |
Unique index name: `appointment_id` Index Columns: (id) | ||||
Index name: `appointment_patient_id` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
appointment_additional
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'same as the id column on the patient table ' | |
property_id | int | NOT NULL | 'IM reference (e.g. appointment type)' | |
value_id | int | DEFAULT NULL | 'IM reference (e.g. Appointment Type)' | |
json_value | json | DEFAULT NULL | 'where there is no mapped value_id, just raw JSON' | |
text_value | varchar(255) | DEFAULT NULL | 'where there is no mapped value_id or raw JSON, just a basic text value (i.e. GP Practitioner number)' | |
Index name: `appointment_additional_value_id` Index Columns: (value_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`,`property_id`) |
concept
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
dbid | int | NOT NULL | 'Unique Id of the concept' | |
Document | int | NOT NULL | 'Concept grouping construct, deprecated' | |
Id | varchar(150) | NOT NULL | 'Unique concept identifier' | |
Draft | tinyint(1) | NOT NULL | 'Whether its draft/autocreated or confirmed as a "proper" concept' | |
Name | varchar(255) | DEFAULT NULL | 'Short name' | |
Description | varchar(400) | DEFAULT NULL | 'Full name (or term for ontological concepts)' | |
Scheme | bigint | DEFAULT NULL | 'The coding scheme for the code (Read, CTV3, SNOMED etc)' | |
Code | varchar(40) | DEFAULT NULL | 'The code (non-unique unless coupled with a scheme)' | |
use_count | bigint | NOT NULL | 'Rough indicator of number of occurences of the concept' | |
updated | datetime | NOT NULL | 'The timestamp of the last update to the concept' | |
Index name: `ix_scheme_code` Index Columns: (Scheme,Code) | ||||
Index name: `ix_code` Index Columns: (Code) | ||||
Index name: `ix_dbid_code` Index Columns: (dbid,Code) | ||||
PRIMARY KEY CONSTRAINT(s) (`dbid`) |
concept_map
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
legacy | int | NOT NULL | 'the legacy (read 2, ctv3, icd10, opcs4, emis local, etc) concept' | |
core | int | NOT NULL | 'the core (snomed, discovery) concept that the legacy concept maps to' | |
updated | datetime | NOT NULL | 'Timestamp the map was last updated/added' | |
id | int | NOT NULL, | No comment yet added | |
deleted | tinyint(1) | DEFAULT NULL, | No comment yet added | |
Unique index name: `concept_map_uq` Index Columns: (legacy,deleted,updated) | ||||
Index name: `ix_legacy_core` Index Columns: (legacy,core) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
diagnostic_order
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the diagnostic order' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter the observation was recorded at' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the diagnostic order was identified by a clinician' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
result_value | double | DEFAULT NULL | 'The value of the result of the observation' | |
result_value_units | varchar(50) | DEFAULT NULL | 'The units of the result of the observation' | |
result_date | date | DEFAULT NULL | 'The date of the result' | |
result_text | text | No Constraint | 'Any text associated with the result' | |
result_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the result' | |
is_problem | tinyint(1) | NOT NULL | 'Whether the observation is marked as a problem' | |
is_review | tinyint(1) | NOT NULL | 'Whether the observation is a review of an existing problem' | |
problem_end_date | date | DEFAULT NULL | 'The end date of the problem' | |
parent_observation_id | bigint | DEFAULT NULL | 'Reference to the parent observation in a complex observation eg systolic and diastolic blood pressures will have a parent observation of Blood pressure' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the observation' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the observation' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age of the patient at the time of the observation' | |
episodicity_concept_id | int | DEFAULT NULL | 'Reference to the episodicity of the problem eg First, review, flare' | |
is_primary | tinyint(1) | DEFAULT NULL | 'Whether the diagnostic order is a primary order' | |
date_recorded | datetime | DEFAULT NULL, | No comment yet added | |
Unique index name: `diagnostic_order_id` Index Columns: (id) | ||||
Index name: `diagnostic_order_patient_id` Index Columns: (patient_id) | ||||
Index name: `diagnostic_order_core_concept_id` Index Columns: (core_concept_id) | ||||
Index name: `diagnostic_order_core_concept_id_is_problem` Index Columns: (core_concept_id,is_problem) | ||||
Index name: `diagnostic_order_core_concept_id_result_value` Index Columns: (core_concept_id,result_value) | ||||
Index name: `diagnostic_order_non_core_concept_id` Index Columns: (non_core_concept_id) | ||||
Index name: `ix_diagnostic_order_organization_id` Index Columns: (organization_id) | ||||
Index name: `ix_diagnostic_order_clinical_effective_date` Index Columns: (clinical_effective_date) | ||||
Index name: `ix_diagnostic_order_person_id` Index Columns: (person_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
encounter
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the encounter' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
appointment_id | bigint | DEFAULT NULL | 'Reference to the appointment this encounter took part on' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the clinical code is recorded for' | |
date_precision_concept_id | int | DEFAULT NULL | 'Reference to the precision of the date of the encounter' | |
episode_of_care_id | bigint | DEFAULT NULL | 'Is this instance of the code a review of a previous encounter' | |
service_provider_organization_id | bigint | DEFAULT NULL | 'Reference to the service provider organisation' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the type of encounter' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the type of encounter' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age the patient was when this encounter took place' | |
Type | text | No Constraint | 'Unused' | |
sub_type | text | No Constraint | 'Unused' | |
admission_method | varchar(40) | DEFAULT NULL | 'The admission method of the encounter' | |
end_date | date | DEFAULT NULL | 'The end date of the encounter' | |
institution_location_id | text | No Constraint | 'Reference to the institution the encounter took place at' | |
date_recorded | datetime | DEFAULT NULL | 'The date the encounter was recorded' | |
Unique index name: `encounter_id` Index Columns: (id) | ||||
Index name: `encounter_patient_id` Index Columns: (patient_id) | ||||
Index name: `fki_encounter_appointment_id` Index Columns: (appointment_id) | ||||
Index name: `fki_encounter_patient_id_organization_id` Index Columns: (patient_id,organization_id) | ||||
Index name: `encounter_core_concept_id_clinical_effective_date` Index Columns: (core_concept_id,clinical_effective_date) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
encounter_additional
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'same as the id column on the encounter table' | |
property_id | int | NOT NULL | 'IM concept id reference (i.e. Admission method)' | |
value_id | int | DEFAULT NULL | 'IM concept id reference (i.e. Emergency admission)' | |
json_value | json | DEFAULT NULL | 'where there is no mapped value_id, just raw JSON (i.e. birth delivery details)' | |
text_value | varchar(255) | DEFAULT NULL | 'where there is no mapped value_id, or raw JSON, just a basic text value (i.e. FIN number)' | |
Index name: `encounter_additional_value_id` Index Columns: (value_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`,`property_id`) |
encounter_event
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the encounter event' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The patient this event belongs to' | |
person_id | bigint | NOT NULL | 'The person this event belongs to' | |
encounter_id | bigint | NOT NULL | 'Reference to the parent encounter record' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
appointment_id | bigint | DEFAULT NULL | 'Reference to the appointment this encounter took part on' | |
clinical_effective_date | datetime | DEFAULT NULL | 'The date the encounter took place' | |
date_precision_concept_id | int | DEFAULT NULL | 'Reference to the precision of the date of the encounter' | |
episode_of_care_id | bigint | DEFAULT NULL | 'Reference to the episode of care this encounter belongs to' | |
service_provider_organization_id | bigint | DEFAULT NULL | 'Reference to the service provider organisation' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the type of encounter' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the type of encounter' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age of the patient at the time of the encounter' | |
type | text | No Constraint | 'Unused' | |
sub_type | text | No Constraint | 'Unused' | |
admission_method | varchar(40) | DEFAULT NULL | 'The admission method of the encounter' | |
end_date | date | DEFAULT NULL | 'The end date of the encounter' | |
institution_location_id | bigint | DEFAULT NULL | 'Reference to the institution the encounter took place at' | |
date_recorded | datetime | DEFAULT NULL | 'The date the encounter was recorded' | |
finished | tinyint(1) | DEFAULT NULL | 'Whether the encounter is finished' | |
Unique index name: `encounter_event_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
episode_of_care
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the episode of care' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
registration_type_concept_id | int | DEFAULT NULL | 'Reference to the registration type of the patient' | |
registration_status_concept_id | int | DEFAULT NULL | 'Reference to the registration status of the patient' | |
date_registered | date | DEFAULT NULL | 'The date the registration was started for this episode of care' | |
date_registered_end | date | DEFAULT NULL | 'The date the registration was ended for this episode of care' | |
usual_gp_practitioner_id | bigint | DEFAULT NULL | 'Reference to the usual GP for this episode of care' | |
Unique index name: `episode_of_care_id` Index Columns: (id) | ||||
Index name: `episode_of_care_patient_id` Index Columns: (patient_id) | ||||
Index name: `episode_of_care_registration_type_concept_id` Index Columns: (registration_type_concept_id) | ||||
Index name: `episode_of_care_date_registered` Index Columns: (date_registered) | ||||
Index name: `episode_of_care_date_registered_end` Index Columns: (date_registered_end) | ||||
Index name: `episode_of_care_person_id` Index Columns: (person_id) | ||||
Index name: `episode_of_care_organization_id` Index Columns: (organization_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
event_log
Column Name | Data Type | Constraint | CollapseComment |
---|---|---|---|
dt_change | datetime(3) | NOT NULL | 'date time the change was made to this DB' |
change_type | tinyint | NOT NULL | 'type of transaction 0=insert, 1=update, 2=delete' |
table_id | tinyint | NOT NULL | 'identifier of the table changed' |
record_id | bigint | NOT NULL | 'id of the record changed' |
flag
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the flag' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
effective_date | date | DEFAULT NULL | 'The date the flag was entered onto the patients record' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
is_active | tinyint(1) | NOT NULL | 'Whether the flag is active or not' | |
flag_text | text | No Constraint | 'This is a warning set by the publisher regarding he patient' | |
Unique index name: `flag_id` Index Columns: (id) | ||||
Index name: `flag_patient_id` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
location
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the location' | |
name | varchar(255) | DEFAULT NULL | 'The name of a location set by the publisher. E.g. ward, clinic, domiciliary' | |
type_code | varchar(50) | DEFAULT NULL | 'The type of location' | |
type_desc | varchar(255) | DEFAULT NULL | 'Textual description of the type of location eg GP Practice' | |
postcode | varchar(10) | DEFAULT NULL | 'The postcode of the location' | |
managing_organization_id | bigint | DEFAULT NULL | 'Reference to the managing organisation of the location' | |
Unique index name: `location_id` Index Columns: (id) | ||||
Index name: `fk_location_managing_organisation_id` Index Columns: (managing_organization_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
medication_order
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the medication order' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter the medication order was issued in' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the medication order was issued' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
dose | varchar(1000) | DEFAULT NULL | 'Textual description of the dose' | |
quantity_value | double | DEFAULT NULL | 'The value of the medication that was prescribed eg 50' | |
quantity_unit | varchar(255) | DEFAULT NULL | 'The unit of the medication that was prescribed eg tablets' | |
duration_days | int | DEFAULT NULL | 'How many days the medication is prescribed for' | |
estimated_cost | double | DEFAULT NULL | 'The estimated cost of the medication' | |
medication_statement_id | bigint | DEFAULT NULL | 'Reference to the medication statement. A medication statement can have many medication orders' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the medication' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the medication' | |
bnf_reference | varchar(6) | DEFAULT NULL | 'A reference to the drug in the BNF dictionary' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age the patient was at the time of this event' | |
issue_method | text | No Constraint | 'The issue method of the medication eg hand written' | |
Unique index name: `medication_order_id` Index Columns: (id) | ||||
Index name: `medication_order_patient_id` Index Columns: (patient_id) | ||||
Index name: `medication_order_core_concept_id` Index Columns: (core_concept_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
medication_statement
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the medication' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter this medication was recorded in' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the medication was clinical relevant' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
is_active | tinyint(1) | DEFAULT NULL | 'Whether the medication is active or not' | |
cancellation_date | date | DEFAULT NULL | 'The date the medication was cancelled' | |
dose | varchar(1000) | DEFAULT NULL | 'Texual description of the dose of the medication' | |
quantity_value | double | DEFAULT NULL | 'The value of the medication that was prescribed eg 50' | |
quantity_unit | varchar(255) | DEFAULT NULL | 'The unit of the medication that was prescribed eg tablets' | |
authorisation_type_concept_id | int | DEFAULT NULL | 'Reference to the authorisation type' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the medication' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the medication' | |
bnf_reference | varchar(6) | DEFAULT NULL | 'A reference to the drug in the BNF dictionary' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age the patient was at the time of this event' | |
Issue_method | text | No Constraint | 'The issue method of the medication eg hand written' | |
date_recorded | datetime | DEFAULT NULL, | No comment yet added | |
Unique index name: `medication_statement_id` Index Columns: (id) | ||||
Index name: `medication_statement_patient_id` Index Columns: (patient_id) | ||||
Index name: `medication_statement_dmd_id` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
observation
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the observation' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter the observation was recorded at' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the observation was identified by a clinician' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
result_value | double | DEFAULT NULL | 'The value of the result of the observation' | |
result_value_units | varchar(50) | DEFAULT NULL | 'The units of the result of the observation' | |
result_date | date | DEFAULT NULL | 'The date of the result' | |
result_text | text | No Constraint | 'Any text associated with the result' | |
result_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the result' | |
is_problem | tinyint(1) | NOT NULL | 'Whether the observation is marked as a problem' | |
is_review | tinyint(1) | NOT NULL | 'Whether the observation is a review of an existing problem' | |
problem_end_date | date | DEFAULT NULL | 'The end date of the problem' | |
parent_observation_id | bigint | DEFAULT NULL | 'Reference to the parent observation in a complex observation eg systolic and diastolic blood pressures will have a parent observation of Blood pressure' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the observation' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the observation' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age of the patient at the time of the observation' | |
episodicity_concept_id | int | DEFAULT NULL | 'Reference to the episodicity of the problem eg First, review, flare' | |
is_primary | tinyint(1) | DEFAULT NULL | 'Whether the observation is a primary observation' | |
date_recorded | datetime | DEFAULT NULL | 'The date the observation was recorded in the system' | |
Unique index name: `observation_id` Index Columns: (id) | ||||
Index name: `observation_patient_id` Index Columns: (patient_id) | ||||
Index name: `observation_core_concept_id` Index Columns: (core_concept_id) | ||||
Index name: `observation_core_concept_id_is_problem` Index Columns: (core_concept_id,is_problem) | ||||
Index name: `observation_core_concept_id_result_value` Index Columns: (core_concept_id,result_value) | ||||
Index name: `observation_non_core_concept_id` Index Columns: (non_core_concept_id) | ||||
Index name: `ix_observation_organization_id` Index Columns: (organization_id) | ||||
Index name: `ix_observation_clinical_effective_date` Index Columns: (clinical_effective_date) | ||||
Index name: `ix_observation_person_id` Index Columns: (person_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
observation_additional
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'same as the id column on the observation table' | |
property_id | int | NOT NULL | 'IM reference (i.e. significance)' | |
value_id | int | DEFAULT NULL | 'IM reference (i.e. minor, significant)' | |
json_value | json | DEFAULT NULL | 'the JSON data itself ' | |
text_value | varchar(255) | DEFAULT NULL | 'where there is no mapped value_id or raw JSON, just a basic text value' | |
Index name: `observation_additional_value_id` Index Columns: (value_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`,`property_id`) |
organization
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the organisation' | |
ods_code | varchar(50) | DEFAULT NULL | 'ODS Code of the organisation' | |
Name | varchar(255) | DEFAULT NULL | 'Name of the organisation' | |
type_code | varchar(50) | DEFAULT NULL | 'The type of organisation' | |
type_desc | varchar(255) | DEFAULT NULL | 'Textual description of the type of organisation eg GP Practice' | |
Postcode | varchar(10) | DEFAULT NULL | 'The postcode of the organisation' | |
parent_organization_id | bigint | DEFAULT NULL | 'The id of the parent organisation' | |
Unique index name: `organization_id` Index Columns: (id) | ||||
Index name: `fki_organization_parent_organization_id` Index Columns: (parent_organization_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
organization_metadata
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'organisation ID, corresponds to same ID in the organizaton table' | |
publishing_software | varchar(50) | NOT NULL | 'software name of publishing system, i.e. SystmOne' | |
last_data_to_dds | datetime | DEFAULT NULL | 'date time data was last sent to DDS' | |
last_data_cutoff | datetime | DEFAULT NULL | 'cutoff date time of the last extract from the publishing system' | |
PRIMARY KEY CONSTRAINT(s) (`id`,`publishing_software`) |
patient
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the patient' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
title | varchar(255) | DEFAULT NULL | 'The title of the patient' | |
first_names | varchar(255) | DEFAULT NULL | 'The first names of the patient' | |
last_name | varchar(255) | DEFAULT NULL | 'The last name of the patient' | |
gender_concept_id | int | DEFAULT NULL | 'Reference to the gender of the patient' | |
nhs_number | varchar(255) | DEFAULT NULL | 'The NHS number of the patient' | |
date_of_birth | date | DEFAULT NULL | 'The date of birth of the patient' | |
date_of_death | date | DEFAULT NULL | 'The date of death of the patient' | |
current_address_id | bigint | DEFAULT NULL | 'Reference to the current address of the patient' | |
ethnic_code_concept_id | int | DEFAULT NULL | 'Reference to the ethnicity of the patient' | |
registered_practice_organization_id | bigint | DEFAULT NULL | 'Reference to the organisation the patient is registered at' | |
birth_year | smallint | DEFAULT NULL, | No comment yet added | |
birth_month | tinyint | DEFAULT NULL, | No comment yet added | |
birth_week | tinyint | DEFAULT NULL, | No comment yet added | |
Unique index name: `patient_id` Index Columns: (id) | ||||
Index name: `patient_person_id` Index Columns: (person_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
patient_additional
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'same as the id column on the patient table ' | |
property_id | int | NOT NULL | 'IM reference (e.g. Cause of death)' | |
value_id | int | DEFAULT NULL | 'IM reference (e.g. COVID)' | |
json_value | json | DEFAULT NULL | 'where there is no mapped value_id, just raw JSON' | |
text_value | varchar(255) | DEFAULT NULL | 'where there is no mapped value_id or raw JSON, just a basic text value (i.e. GP Practitioner number)' | |
Index name: `ix_patient_additional_id` Index Columns: (value_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`,`property_id`) |
patient_address
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
Id | bigint | NOT NULL | 'Unique Id of the address' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
address_line_1 | varchar(255) | DEFAULT NULL | 'The first line of the address' | |
address_line_2 | varchar(255) | DEFAULT NULL | 'The second line of the address' | |
address_line_3 | varchar(255) | DEFAULT NULL | 'The third line of the address' | |
address_line_4 | varchar(255) | DEFAULT NULL | 'The fourth line of the address' | |
city | varchar(255) | DEFAULT NULL | 'The city' | |
postcode | varchar(255) | DEFAULT NULL | 'The postcode' | |
use_concept_id | int | NOT NULL | 'use of address (e.g. home, temporary)' | |
start_date | date | NOT NULL | 'The start date of this address being relevant' | |
end_date | date | DEFAULT NULL | 'The end date of this address being relevant' | |
lsoa_2001_code | varchar(9) | DEFAULT NULL | 'A reference to the LSOA_2001 code' | |
lsoa_2011_code | varchar(9) | DEFAULT NULL | 'A reference to the LSOA_2011 code' | |
msoa_2001_code | varchar(9) | DEFAULT NULL | 'A reference to the MSOA_2001 code' | |
msoa_2011_code | varchar(9) | DEFAULT NULL | 'A reference to the MSOA_2011 code' | |
ward_code | varchar(9) | DEFAULT NULL | 'The ward the address belongs to' | |
local_authority_code | varchar(9) | DEFAULT NULL | 'The local authority the address belongs to' | |
townsend_deprivation_index | double | DEFAULT NULL, | No comment yet added | |
Unique index name: `ux_patient_address_id` Index Columns: (Id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`Id`,`patient_id`,`person_id`) |
patient_address_match
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | No comment yet added | |
patient_address_id | bigint | NOT NULL, | No comment yet added | |
uprn | varchar(255) | CHARACTER SET | No comment yet added | |
uprn_ralf00 | varchar(255) | DEFAULT NULL, | No comment yet added | |
status | tinyint(1) | DEFAULT NULL, | No comment yet added | |
uprn_property_classification | varchar(45) | CHARACTER SET | No comment yet added | |
latitude | double | DEFAULT NULL, | No comment yet added | |
longitude | double | DEFAULT NULL, | No comment yet added | |
uprn_xcoordinate | double | DEFAULT NULL, | No comment yet added | |
uprn_ycoordinate | double | DEFAULT NULL, | No comment yet added | |
qualifier | varchar(50) | CHARACTER SET | No comment yet added | |
match_rule | varchar(4096) | CHARACTER SET | No comment yet added | |
match_date | datetime | DEFAULT NULL, | No comment yet added | |
abp_address_number | varchar(255) | CHARACTER SET | No comment yet added | |
abp_address_street | varchar(255) | CHARACTER SET | No comment yet added | |
abp_address_locality | varchar(255) | CHARACTER SET | No comment yet added | |
abp_address_town | varchar(255) | CHARACTER SET | No comment yet added | |
abp_address_postcode | varchar(10) | CHARACTER SET | No comment yet added | |
abp_address_organization | varchar(255) | CHARACTER SET | No comment yet added | |
match_pattern_postcode | varchar(255) | CHARACTER SET | No comment yet added | |
match_pattern_street | varchar(255) | CHARACTER SET | No comment yet added | |
match_pattern_number | varchar(255) | CHARACTER SET | No comment yet added | |
match_pattern_building | varchar(255) | CHARACTER SET | No comment yet added | |
match_pattern_flat | varchar(255) | CHARACTER SET | No comment yet added | |
algorithm_version | varchar(255) | CHARACTER SET | No comment yet added | |
epoch | varchar(255) | CHARACTER SET | No comment yet added | |
Index name: `patient_address_uprn_index` Index Columns: (uprn) | ||||
Index name: `patient_address_patient_address_id` Index Columns: (id,uprn) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
patient_address_ralf
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL, | No comment yet added | |
organization_id | bigint | NOT NULL, | No comment yet added | |
patient_id | bigint | NOT NULL, | No comment yet added | |
person_id | bigint | NOT NULL, | No comment yet added | |
patient_address_id | bigint | NOT NULL, | No comment yet added | |
patient_address_match_uprn_ralf00 | varchar(255) | NOT NULL, | No comment yet added | |
salt_name | varchar(50) | NOT NULL, | No comment yet added | |
ralf | varchar(255) | NOT NULL, | No comment yet added | |
Index name: `ux_patient_address_ralf_id` Index Columns: (id) | ||||
Index name: `patient_address_ralf_patient_id` Index Columns: (patient_id) | ||||
Index name: `patient_address_ralf_patient_address_id` Index Columns: (patient_address_id) | ||||
Index name: `patient_address_ralf_patient_address_match_uprn_ralf_00` Index Columns: (patient_address_match_uprn_ralf00) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`,`patient_address_id`,`patient_address_match_uprn_ralf00`) |
patient_contact
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the patient contact' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
use_concept_id | int | DEFAULT NULL | 'use of contact (e.g. mobile, home,work' | |
type_concept_id | int | DEFAULT NULL | 'type of contact (e.g. phone, email)' | |
start_date | date | DEFAULT NULL | 'The start date of the contact being valid' | |
end_date | date | DEFAULT NULL | 'The end date of the contact being valid' | |
value | varchar(255) | DEFAULT NULL | 'The value of the contact information eg phone number, email address' | |
Unique index name: `ux_patient_contact_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`id`,`patient_id`,`person_id`) |
patient_pseudo_id
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the patient pseudo id' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'Reference to the patient this registration status history belongs to' | |
person_id | bigint | NOT NULL | 'Reference to the person this registration status history belongs to' | |
salt_name | varchar(50) | NOT NULL | 'The name of the salt used to create the pseudo id' | |
Skid | varchar(255) | NOT NULL | '"Secure Key IDentifier" - the pseudonymised ID generated for this patient using the salt specified in the salt_name column. Typically generated from patient NHS number, but is configurable on a case by case basis (e.g. may include date of birth)' | |
is_nhs_number_valid | tinyint(1) | NOT NULL | 'Whether the nhs number is valid' | |
is_nhs_number_verified_by_publisher | tinyint(1) | NOT NULL | 'Whether the nhs number has been verified by the publisher' | |
Unique index name: `ux_patient_pseudo_id` Index Columns: (id) | ||||
Index name: `patient_pseudo_id_patient` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
patient_uprn
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
uprn | bigint | DEFAULT NULL, | No comment yet added | |
qualifier | varchar(50) | DEFAULT NULL, | No comment yet added | |
algorithm | varchar(255) | DEFAULT NULL, | No comment yet added | |
match | varchar(255) | DEFAULT NULL, | No comment yet added | |
no_address | tinyint(1) | DEFAULT NULL, | No comment yet added | |
invalid_address | tinyint(1) | DEFAULT NULL, | No comment yet added | |
missing_postcode | tinyint(1) | DEFAULT NULL, | No comment yet added | |
invalid_postcode | tinyint(1) | DEFAULT NULL, | No comment yet added | |
Unique index name: `patient_uprn_id` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`patient_id`) |
person
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the person' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
title | varchar(255) | DEFAULT NULL | 'The title of the person' | |
first_names | varchar(255) | DEFAULT NULL | 'The first names of the person' | |
last_name | varchar(255) | DEFAULT NULL | 'The last name of the person' | |
gender_concept_id | int | DEFAULT NULL | 'Reference to the gender of the person' | |
nhs_number | varchar(255) | DEFAULT NULL | 'The NHS number of the person' | |
date_of_birth | date | DEFAULT NULL | 'The date of birth of the person' | |
date_of_death | date | DEFAULT NULL | 'The date of death of the person' | |
current_address_id | bigint | NOT NULL | 'Reference to the current address of the person' | |
ethnic_code_concept_id | int | DEFAULT NULL | 'Reference to the ethnicity of the person' | |
registered_practice_organization_id | bigint | DEFAULT NULL | 'Reference to the organisation the person is registered at' | |
birth_year | smallint | DEFAULT NULL, | No comment yet added | |
birth_month | tinyint | DEFAULT NULL, | No comment yet added | |
birth_week | tinyint | DEFAULT NULL, | No comment yet added | |
Unique index name: `person_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
practitioner
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the practitioner' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
name | varchar(1024) | DEFAULT NULL | 'Name of the practitioner' | |
role_code | varchar(50) | DEFAULT NULL | 'The code representing the role of the practitioner' | |
role_desc | varchar(255) | DEFAULT NULL | 'Textual description of the role of the practitioner eg General Medical Practitioner' | |
gmc_code | varchar(50) | DEFAULT NULL | 'The GMC code of the practitioner' | |
Unique index name: `practitioner_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`id`) |
procedure_request
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the procedure' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter the procedure was administered at' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the procedure was administered by a clinician' | |
date_precision_concept_id | int | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
status_concept_id | int | DEFAULT NULL | 'Reference to the status of the procedure' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the procedure' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the procedure' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age of the patient at the time of the procedure' | |
date_recorded | datetime | DEFAULT NULL | 'The date the procedure was recorded in the source system' | |
Unique index name: `procedure_request_id` Index Columns: (id) | ||||
Index name: `procedure_request_patient_id` Index Columns: (patient_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
referral_request
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the referral' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times' | |
person_id | bigint | NOT NULL | 'Unique individual across all organisations' | |
encounter_id | bigint | DEFAULT NULL | 'Reference to the encounter the referral was made in' | |
practitioner_id | bigint | DEFAULT NULL | 'The clinician the activity is recorded against' | |
clinical_effective_date | date | DEFAULT NULL | 'The date the referral was made' | |
date_precision_concept_id | smallint | DEFAULT NULL | 'Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)' | |
requester_organization_id | bigint | DEFAULT NULL | 'Reference to the organisation that made the refereral request' | |
recipient_organization_id | bigint | DEFAULT NULL | 'Reference to the organization receiving the referral' | |
referral_request_priority_concept_id | smallint | DEFAULT NULL | 'Reference to the priority of the referral' | |
referral_request_type_concept_id | int | DEFAULT NULL | 'Reference to the type of referral request' | |
Mode | varchar(50) | DEFAULT NULL | 'The mode of the referral' | |
outgoing_referral | tinyint(1) | DEFAULT NULL | 'Whether this is an outgoing referral' | |
is_review | tinyint(1) | DEFAULT NULL | 'Whether this referral is a review' | |
core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the referral' | |
non_core_concept_id | int | DEFAULT NULL | 'Reference to the clinical coding of the referral' | |
age_at_event | decimal(5,2) | DEFAULT NULL | 'The age of the patient at the time of the referral' | |
date_recorded | datetime | DEFAULT NULL | 'The date the referral request was added to the source system' | |
Unique index name: `referral_request_id` Index Columns: (id) | ||||
Index name: `referral_request_patient_id` Index Columns: (patient_id) | ||||
Index name: `referral_request_core_concept_id` Index Columns: (core_concept_id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`person_id`,`id`) |
registration_status_history
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the registration status history' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
patient_id | bigint | NOT NULL | 'Reference to the patient this registration status history belongs to' | |
person_id | bigint | NOT NULL | 'Reference to the person this registration status history belongs to' | |
episode_of_care_id | bigint | DEFAULT NULL | 'Reference to the episode of care this status history belongs to' | |
registration_status_concept_id | int | DEFAULT NULL | 'Reference to the registration status' | |
start_date | datetime | DEFAULT NULL | 'The start date for the period this registration status history was valid' | |
end_date | datetime | DEFAULT NULL | 'The end date for the period this registration status history was valid' | |
Unique index name: `ux_registration_status_history_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`id`,`patient_id`,`person_id`) |
schedule
Column Name | Data Type | Constraint | CollapseComment | |
---|---|---|---|---|
id | bigint | NOT NULL | 'Unique Id of the schedule' | |
organization_id | bigint | NOT NULL | 'Owning organisation (i.e. publisher)' | |
practitioner_id | bigint | DEFAULT NULL | 'Reference to the practitioner who owns the schedule' | |
start_date | date | DEFAULT NULL | 'The start date of the schedule' | |
type | varchar(255) | DEFAULT NULL | 'The type of schedule eg Timed Appointments' | |
location | varchar(255) | DEFAULT NULL | 'Textual description of the location the schedule was held at' | |
name | varchar(150) | DEFAULT NULL | 'The name of the schedule' | |
Unique index name: `schedule_id` Index Columns: (id) | ||||
PRIMARY KEY CONSTRAINT(s) (`organization_id`,`id`) |