Remote Subscriber Database (RSD) Schema (Compass 2): Difference between revisions
No edit summary |
m (Added comments provided by Stu) |
||
Line 11: | Line 11: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the allergy | ||
| | | | ||
|- | |- | ||
Line 17: | Line 17: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 23: | Line 23: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 29: | Line 29: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 35: | Line 35: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter this allergy was record in | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 41: | Line 41: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 47: | Line 47: | ||
|Date | |Date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The date the clinical code is recorded for | |The date the clinical code is recorded for | ||
| | | | ||
|- | |- | ||
Line 53: | Line 53: | ||
|Int | |Int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 59: | Line 59: | ||
|boolean | |boolean | ||
|NOT NULL | |NOT NULL | ||
|Is this instance of the code a review of a previous encounter | |Is this instance of the code a review of a previous encounter | ||
| | | | ||
|- | |- | ||
Line 65: | Line 65: | ||
|Int | |Int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the allergy | ||
| | | | ||
|- | |- | ||
Line 71: | Line 71: | ||
|Int | |Int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the allergy | ||
| | | | ||
|- | |- | ||
Line 77: | Line 77: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age the patient was at the time of this event | ||
| | | | ||
|- | |- | ||
Line 83: | Line 83: | ||
|datetime | |datetime | ||
|NOT NULL | |NOT NULL | ||
| | |The date the allergy was recorded | ||
| | | | ||
|- | |- | ||
Line 119: | Line 119: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the appointment | ||
| | | | ||
|- | |- | ||
Line 125: | Line 125: | ||
|varchar(36) | |varchar(36) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 131: | Line 131: | ||
|varchar(36) | |varchar(36) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 137: | Line 137: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 143: | Line 143: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 149: | Line 149: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule | |The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule | ||
|schedule.id | |schedule.id | ||
|- | |- | ||
Line 155: | Line 155: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The start date of the appointment | ||
| | | | ||
|- | |- | ||
Line 161: | Line 161: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The time allocated for the appointment, not necessarily the actual duration always in minutes | |The time allocated for the appointment, not necessarily the actual duration always in minutes | ||
| | | | ||
|- | |- | ||
Line 167: | Line 167: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Time between sent in and left always in minutes | |Time between sent in and left always in minutes | ||
| | | | ||
|- | |- | ||
Line 173: | Line 173: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The status of the appointment e.g. arrived/sent in/left/DNA | |The status of the appointment e.g. arrived/sent in/left/DNA | ||
| | | | ||
|- | |- | ||
Line 179: | Line 179: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|How long the patient waited from being marked as arrived to being sent in | |How long the patient waited from being marked as arrived to being sent in | ||
| | | | ||
|- | |- | ||
Line 185: | Line 185: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |How long the patient was delayed for | ||
| | | | ||
|- | |- | ||
Line 191: | Line 191: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Date and time the patient was sent into the practitioner | |Date and time the patient was sent into the practitioner | ||
| | | | ||
|- | |- | ||
Line 197: | Line 197: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Date and time the patient left the practitioner | |Date and time the patient left the practitioner | ||
| | | | ||
|- | |- | ||
Line 203: | Line 203: | ||
|varchar(36) | |varchar(36) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Unique reference to the source of the appointment | ||
| | | | ||
|- | |- | ||
Line 209: | Line 209: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the appointment was cancelled | ||
| | | | ||
|- | |- | ||
Line 239: | Line 239: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the appointment status | ||
| | | | ||
|- | |- | ||
Line 245: | Line 245: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The value of the appointment status | ||
| | | | ||
|- | |- | ||
Line 263: | Line 263: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the concept | ||
| | | | ||
|- | |- | ||
Line 269: | Line 269: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |Concept grouping construct, deprecated | ||
| | | | ||
|- | |- | ||
Line 275: | Line 275: | ||
|varchar(150) | |varchar(150) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique concept identifier | ||
| | | | ||
|- | |- | ||
Line 281: | Line 281: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether its draft/autocreated or confirmed as a "proper" concept | ||
| | | | ||
|- | |- | ||
Line 287: | Line 287: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Short name | ||
| | | | ||
|- | |- | ||
Line 293: | Line 293: | ||
|varchar(400) | |varchar(400) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Full name (or term for ontological concepts) | ||
| | | | ||
|- | |- | ||
Line 299: | Line 299: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The coding scheme for the code (Read, CTV3, SNOMED etc) | ||
| | | | ||
|- | |- | ||
Line 305: | Line 305: | ||
|varchar(40) | |varchar(40) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The code (non-unique unless coupled with a scheme) | ||
| | | | ||
|- | |- | ||
Line 311: | Line 311: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL DEFAULT 0 | |NOT NULL DEFAULT 0 | ||
| | |Rough indicator of number of occurences of the concept | ||
| | | | ||
|- | |- | ||
Line 317: | Line 317: | ||
|datetime | |datetime | ||
|NOT NULL | |NOT NULL | ||
| | |The timestamp of the last update to the concept | ||
| | | | ||
|- | |- | ||
Line 335: | Line 335: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |the legacy (read 2, ctv3, icd10, opcs4, emis local, etc) concept | ||
| | | | ||
|- | |- | ||
Line 341: | Line 341: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |the core (snomed, discovery) concept that the legacy concept maps to | ||
| | | | ||
|- | |- | ||
Line 347: | Line 347: | ||
|datetime | |datetime | ||
|NOT NULL | |NOT NULL | ||
| | |Timestamp the map was last updated/added | ||
| | | | ||
|- | |- | ||
Line 364: | Line 364: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the concept | ||
| | | | ||
|- | |- | ||
Line 370: | Line 370: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |Grouping identifier | ||
| | | | ||
|- | |- | ||
Line 376: | Line 376: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |The property concept | ||
| | | | ||
|- | |- | ||
Line 382: | Line 382: | ||
|int(11) | |int(11) | ||
|NOT NULL | |NOT NULL | ||
| | |The value concept for the given concepts property | ||
| | | | ||
|- | |- | ||
Line 388: | Line 388: | ||
|datetime | |datetime | ||
|NOT NULL | |NOT NULL | ||
| | |Timestamp the property value was updated/added | ||
| | | | ||
|} | |} | ||
Line 403: | Line 403: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Source concept | ||
| | | | ||
|- | |- | ||
Line 409: | Line 409: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Property concept | ||
| | | | ||
|- | |- | ||
Line 415: | Line 415: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The "distance" of the from source (1=parent, 2=grandparent, etc) | ||
| | | | ||
|- | |- | ||
Line 421: | Line 421: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The target | ||
| | | | ||
|- | |- | ||
Line 427: | Line 427: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the concept is active | ||
| | | | ||
|- | |- | ||
Line 433: | Line 433: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |When the concept was created | ||
| | | | ||
|} | |} | ||
Line 448: | Line 448: | ||
|varchar(10) | |varchar(10) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the consent code is active | ||
| | | | ||
|- | |- | ||
Line 454: | Line 454: | ||
|varchar(100) | |varchar(100) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Description of the consent code | ||
| | | | ||
|- | |- | ||
Line 460: | Line 460: | ||
|varchar(20) | |varchar(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The actual consent code | ||
| | | | ||
|- | |- | ||
Line 466: | Line 466: | ||
|varchar(20) | |varchar(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The clinical term code | ||
| | | | ||
|- | |- | ||
Line 472: | Line 472: | ||
|varchar(100) | |varchar(100) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The clinical term | ||
| | | | ||
|} | |} | ||
Line 512: | Line 512: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the diagnostic order | ||
| | | | ||
|- | |- | ||
Line 518: | Line 518: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 524: | Line 524: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | ||
| | | | ||
|- | |- | ||
Line 530: | Line 530: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique individual across all organisations | ||
| | | | ||
|- | |- | ||
Line 536: | Line 536: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter the observation was recorded at | ||
| | | | ||
|- | |- | ||
Line 542: | Line 542: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The clinician the activity is recorded against | ||
| | | | ||
|- | |- | ||
Line 548: | Line 548: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the diagnostic order was identified by a clinician | ||
| | | | ||
|- | |- | ||
Line 554: | Line 554: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 560: | Line 560: | ||
|real | |real | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The value of the result of the observation | ||
| | | | ||
|- | |- | ||
Line 566: | Line 566: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The units of the result of the observation | ||
| | | | ||
|- | |- | ||
Line 572: | Line 572: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date of the result | ||
| | | | ||
|- | |- | ||
Line 578: | Line 578: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Any text associated with the result | ||
| | | | ||
|- | |- | ||
Line 584: | Line 584: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the result | ||
| | | | ||
|- | |- | ||
Line 590: | Line 590: | ||
|boolean | |boolean | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the observation is marked as a problem | ||
| | | | ||
|- | |- | ||
Line 596: | Line 596: | ||
|boolean | |boolean | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the observation is a review of an existing problem | ||
| | | | ||
|- | |- | ||
Line 602: | Line 602: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of the problem | ||
| | | | ||
|- | |- | ||
Line 608: | Line 608: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |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 | ||
| | | | ||
|- | |- | ||
Line 614: | Line 614: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the observation | ||
| | | | ||
|- | |- | ||
Line 620: | Line 620: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the observation | ||
| | | | ||
|- | |- | ||
Line 626: | Line 626: | ||
|decimal (5,2) | |decimal (5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age of the patient at the time of the observation | ||
| | | | ||
|- | |- | ||
Line 632: | Line 632: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the episodicity of the problem eg First, review, flare | ||
| | | | ||
|- | |- | ||
Line 638: | Line 638: | ||
|boolean | |boolean | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the diagnostic order is a primary order | ||
| | | | ||
|- | |- | ||
Line 674: | Line 674: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the encounter | ||
| | | | ||
|- | |- | ||
Line 680: | Line 680: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 686: | Line 686: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
| | | | ||
|- | |- | ||
Line 692: | Line 692: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
| | | | ||
|- | |- | ||
Line 698: | Line 698: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
| | | | ||
|- | |- | ||
Line 704: | Line 704: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the appointment this encounter took part on | ||
| | | | ||
|- | |- | ||
Line 710: | Line 710: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The date the clinical code is recorded for | |The date the clinical code is recorded for | ||
| | | | ||
|- | |- | ||
Line 719: | Line 719: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the precision of the date of the encounter | ||
| | | | ||
|- | |- | ||
Line 725: | Line 725: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Is this instance of the code a review of a previous encounter | |Is this instance of the code a review of a previous encounter | ||
| | | | ||
|- | |- | ||
Line 731: | Line 731: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the service provider organisation | ||
| | | | ||
|- | |- | ||
Line 737: | Line 737: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the type of encounter | ||
| | | | ||
|- | |- | ||
Line 743: | Line 743: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the type of encounter | ||
| | | | ||
|- | |- | ||
Line 749: | Line 749: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age the patient was when this encounter took place | ||
| | | | ||
|- | |- | ||
Line 755: | Line 755: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Unused | ||
| | | | ||
|- | |- | ||
Line 761: | Line 761: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Unused | ||
| | | | ||
|- | |- | ||
Line 767: | Line 767: | ||
|varchar(40) | |varchar(40) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The admission method of the encounter | ||
| | | | ||
|- | |- | ||
Line 773: | Line 773: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of the encounter | ||
| | | | ||
|- | |- | ||
Line 779: | Line 779: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the institution the encounter took place at | ||
| | | | ||
|- | |- | ||
Line 785: | Line 785: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the encounter was recorded | ||
| | | | ||
|- | |- | ||
Line 791: | Line 791: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the service provider organisation | ||
| | | | ||
|- | |- | ||
Line 872: | Line 872: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the encounter event | ||
| | | | ||
|- | |- | ||
Line 878: | Line 878: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 884: | Line 884: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |The patient this event belongs to | ||
| | | | ||
|- | |- | ||
Line 890: | Line 890: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |The person this event belongs to | ||
| | | | ||
|- | |- | ||
Line 896: | Line 896: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|parent encounter record | |Reference to the parent encounter record | ||
| | | | ||
|- | |- | ||
Line 902: | Line 902: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The clinician the activity is recorded against | ||
| | | | ||
|- | |- | ||
Line 908: | Line 908: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the appointment this encounter took part on | ||
| | | | ||
|- | |- | ||
Line 914: | Line 914: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the encounter took place | ||
| | | | ||
|- | |- | ||
Line 920: | Line 920: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the precision of the date of the encounter | ||
| | | | ||
|- | |- | ||
Line 926: | Line 926: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the episode of care this encounter belongs to | ||
| | | | ||
|- | |- | ||
Line 932: | Line 932: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the service provider organisation | ||
| | | | ||
|- | |- | ||
Line 938: | Line 938: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the type of encounter | ||
| | | | ||
|- | |- | ||
Line 944: | Line 944: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the type of encounter | ||
| | | | ||
|- | |- | ||
Line 950: | Line 950: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age of the patient at the time of the encounter | ||
| | | | ||
|- | |- | ||
Line 956: | Line 956: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Unused | ||
| | | | ||
|- | |- | ||
Line 962: | Line 962: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Unused | ||
| | | | ||
|- | |- | ||
Line 968: | Line 968: | ||
|varchar(40) | |varchar(40) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The admission method of the encounter | ||
| | | | ||
|- | |- | ||
Line 974: | Line 974: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of the encounter | ||
| | | | ||
|- | |- | ||
Line 980: | Line 980: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the institution the encounter took place at | ||
| | | | ||
|- | |- | ||
Line 986: | Line 986: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the encounter was recorded | ||
| | | | ||
|- | |- | ||
Line 992: | Line 992: | ||
|boolean | |boolean | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the encounter is finished | ||
| | | | ||
|- | |- | ||
Line 1,034: | Line 1,034: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the episode of care | ||
| | | | ||
|- | |- | ||
Line 1,040: | Line 1,040: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 1,046: | Line 1,046: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,058: | Line 1,058: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the registration type of the patient | ||
|registration.type.id | |registration.type.id | ||
|- | |- | ||
Line 1,064: | Line 1,064: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the registration status of the patient | ||
| | | | ||
|- | |- | ||
Line 1,070: | Line 1,070: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the registration was started for this episode of care | ||
| | | | ||
|- | |- | ||
Line 1,076: | Line 1,076: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the registration was ended for this episode of care | ||
| | | | ||
|- | |- | ||
Line 1,082: | Line 1,082: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the usual GP for this episode of care | ||
|Practitioner.id | |Practitioner.id | ||
|- | |- | ||
Line 1,112: | Line 1,112: | ||
|char(1) | |char(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Ethnic code | ||
| | | | ||
|- | |- | ||
Line 1,118: | Line 1,118: | ||
|varchar(100) | |varchar(100) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Corresponding ethnicity name | ||
| | | | ||
|- | |- | ||
Line 1,169: | Line 1,169: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the flag | ||
| | | | ||
|- | |- | ||
Line 1,175: | Line 1,175: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 1,181: | Line 1,181: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,193: | Line 1,193: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the flag was entered onto the patients record | ||
| | | | ||
|- | |- | ||
Line 1,199: | Line 1,199: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 1,205: | Line 1,205: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the flag is active or not | ||
| | | | ||
|- | |- | ||
Line 1,211: | Line 1,211: | ||
|text | |text | ||
| | | | ||
|This is a warning set by the publisher regarding he patient | |This is a warning set by the publisher regarding he patient | ||
| | | | ||
|- | |- | ||
Line 1,235: | Line 1,235: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the location | ||
| | | | ||
|- | |- | ||
Line 1,241: | Line 1,241: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The name of a location set by the publisher. E.g. ward, clinic, domiciliary | |The name of a location set by the publisher. E.g. ward, clinic, domiciliary | ||
| | | | ||
|- | |- | ||
Line 1,247: | Line 1,247: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The type of location | ||
| | | | ||
|- | |- | ||
Line 1,253: | Line 1,253: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Textual description of the type of location eg GP Practice | ||
| | | | ||
|- | |- | ||
Line 1,259: | Line 1,259: | ||
|varchar10) | |varchar10) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The postcode of the location | ||
| | | | ||
|- | |- | ||
Line 1,265: | Line 1,265: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the managing organisation of the location | ||
| | | | ||
|- | |- | ||
Line 1,291: | Line 1,291: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the medication order | ||
| | | | ||
|- | |- | ||
Line 1,303: | Line 1,303: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,309: | Line 1,309: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 1,315: | Line 1,315: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter the medication order was issued in | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 1,321: | Line 1,321: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 1,327: | Line 1,327: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the medication order was issued | ||
| | | | ||
|- | |- | ||
Line 1,333: | Line 1,333: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 1,339: | Line 1,339: | ||
|varchar(1000) | |varchar(1000) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Textual description of the dose | ||
| | | | ||
|- | |- | ||
Line 1,345: | Line 1,345: | ||
|real | |real | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The value of the medication that was prescribed eg 50 | ||
| | | | ||
|- | |- | ||
Line 1,351: | Line 1,351: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The unit of the medication that was prescribed eg tablets | ||
| | | | ||
|- | |- | ||
Line 1,357: | Line 1,357: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |How many days the medication is prescribed for | ||
| | | | ||
|- | |- | ||
Line 1,363: | Line 1,363: | ||
|real | |real | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The estimated cost of the medication | ||
| | | | ||
|- | |- | ||
Line 1,369: | Line 1,369: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the medication statement. A medication statement can have many medication orders | ||
|medication.statement.id | |medication.statement.id | ||
|- | |- | ||
Line 1,375: | Line 1,375: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the medication | ||
| | | | ||
|- | |- | ||
Line 1,381: | Line 1,381: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the medication | ||
| | | | ||
|- | |- | ||
Line 1,387: | Line 1,387: | ||
|varchar(6) | |varchar(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the drug in the BNF dictionary | ||
| | | | ||
|- | |- | ||
Line 1,393: | Line 1,393: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age the patient was at the time of this event | ||
| | | | ||
|- | |- | ||
Line 1,399: | Line 1,399: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The issue method of the medication eg hand written | ||
| | | | ||
|- | |- | ||
Line 1,435: | Line 1,435: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the medication | ||
| | | | ||
|- | |- | ||
Line 1,441: | Line 1,441: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 1,447: | Line 1,447: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,459: | Line 1,459: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter this medication was recorded in | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 1,465: | Line 1,465: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 1,471: | Line 1,471: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the medication was clinical relevant | ||
| | | | ||
|- | |- | ||
Line 1,477: | Line 1,477: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 1,483: | Line 1,483: | ||
|tinyint(4) | |tinyint(4) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the medication is active or not | ||
| | | | ||
|- | |- | ||
Line 1,489: | Line 1,489: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the medication was cancelled | ||
| | | | ||
|- | |- | ||
Line 1,495: | Line 1,495: | ||
|varchar(1000) | |varchar(1000) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Texual description of the dose of the medication | ||
| | | | ||
|- | |- | ||
Line 1,501: | Line 1,501: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The value of the medication that was prescribed eg 50 | ||
| | | | ||
|- | |- | ||
Line 1,507: | Line 1,507: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The unit of the medication that was prescribed eg tablets | ||
| | | | ||
|- | |- | ||
Line 1,513: | Line 1,513: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the authorisation type | ||
| | | | ||
|- | |- | ||
Line 1,519: | Line 1,519: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the medication | ||
| | | | ||
|- | |- | ||
Line 1,525: | Line 1,525: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the medication | ||
| | | | ||
|- | |- | ||
Line 1,531: | Line 1,531: | ||
|varchar(6) | |varchar(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the drug in the BNF dictionary | ||
| | | | ||
|- | |- | ||
Line 1,537: | Line 1,537: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age the patient was at the time of this event | ||
| | | | ||
|- | |- | ||
Line 1,543: | Line 1,543: | ||
|text | |text | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The issue method of the medication eg hand written | ||
| | | | ||
|- | |- | ||
Line 1,579: | Line 1,579: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the observation | ||
| | | | ||
|- | |- | ||
Line 1,585: | Line 1,585: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 1,591: | Line 1,591: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,597: | Line 1,597: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 1,603: | Line 1,603: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter the observation was recorded at | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 1,609: | Line 1,609: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 1,615: | Line 1,615: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the observation was identified by a clinician | ||
| | | | ||
|- | |- | ||
Line 1,621: | Line 1,621: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 1,627: | Line 1,627: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The value of the result of the observation | ||
| | | | ||
|- | |- | ||
Line 1,633: | Line 1,633: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The units of the result of the observation | ||
| | | | ||
|- | |- | ||
Line 1,639: | Line 1,639: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date of the result | ||
| | | | ||
|- | |- | ||
Line 1,645: | Line 1,645: | ||
|text | |text | ||
| | | | ||
| | |Any text associated with the result | ||
| | | | ||
|- | |- | ||
Line 1,651: | Line 1,651: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the result | ||
| | | | ||
|- | |- | ||
Line 1,657: | Line 1,657: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the observation is marked as a problem | ||
| | | | ||
|- | |- | ||
Line 1,663: | Line 1,663: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the observation is a review of an existing problem | ||
| | | | ||
|- | |- | ||
Line 1,669: | Line 1,669: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of the problem | ||
| | | | ||
|- | |- | ||
Line 1,675: | Line 1,675: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |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 | ||
| | | | ||
|- | |- | ||
Line 1,681: | Line 1,681: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the observation | ||
| | | | ||
|- | |- | ||
Line 1,687: | Line 1,687: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the observation | ||
| | | | ||
|- | |- | ||
Line 1,693: | Line 1,693: | ||
|decimal (5,2) | |decimal (5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age of the patient at the time of the observation | ||
| | | | ||
|- | |- | ||
Line 1,699: | Line 1,699: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the episodicity of the problem eg First, review, flare | ||
| | | | ||
|- | |- | ||
Line 1,705: | Line 1,705: | ||
|boolean | |boolean | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the observation is a primary observation | ||
| | | | ||
|- | |- | ||
Line 1,711: | Line 1,711: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the observation was recorded in the system | ||
| | | | ||
|- | |- | ||
Line 1,747: | Line 1,747: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the organisation | ||
| | | | ||
|- | |- | ||
Line 1,753: | Line 1,753: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |ODS Code of the organisation | ||
| | | | ||
|- | |- | ||
Line 1,759: | Line 1,759: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Name of the organisation | ||
| | | | ||
|- | |- | ||
Line 1,765: | Line 1,765: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The type of organisation | ||
| | | | ||
|- | |- | ||
Line 1,771: | Line 1,771: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Textual description of the type of organisation eg GP Practice | ||
| | | | ||
|- | |- | ||
Line 1,777: | Line 1,777: | ||
|varchar(10) | |varchar(10) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The postcode of the organisation | ||
| | | | ||
|- | |- | ||
Line 1,783: | Line 1,783: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The id of the parent organisation | ||
| | | | ||
|- | |- | ||
Line 1,801: | Line 1,801: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the patient | ||
| | | | ||
|- | |- | ||
Line 1,813: | Line 1,813: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 1,819: | Line 1,819: | ||
|varchar(50) | |varchar(50) | ||
| | | | ||
| | |The title of the patient | ||
| | | | ||
|- | |- | ||
Line 1,825: | Line 1,825: | ||
|varchar(255) | |varchar(255) | ||
| | | | ||
| | |The first names of the patient | ||
| | | | ||
|- | |- | ||
Line 1,831: | Line 1,831: | ||
|varchar(255) | |varchar(255) | ||
| | | | ||
| | |The last name of the patient | ||
| | | | ||
|- | |- | ||
Line 1,837: | Line 1,837: | ||
|int | |int | ||
| | | | ||
| | |Reference to the gender of the patient | ||
|patient.gender.id | |patient.gender.id | ||
|- | |- | ||
Line 1,843: | Line 1,843: | ||
|varchar(255) | |varchar(255) | ||
| | | | ||
| | |The NHS number of the patient | ||
| | | | ||
|- | |- | ||
Line 1,849: | Line 1,849: | ||
|date | |date | ||
| | | | ||
| | |The date of birth of the patient | ||
| | | | ||
|- | |- | ||
Line 1,855: | Line 1,855: | ||
|date | |date | ||
| | | | ||
| | |The date of death of the patient | ||
| | | | ||
|- | |- | ||
Line 1,861: | Line 1,861: | ||
|bigint | |bigint | ||
| | | | ||
| | |Reference to the current address of the patient | ||
| | | | ||
|- | |- | ||
Line 1,867: | Line 1,867: | ||
|int | |int | ||
| | | | ||
| | |Reference to the ethnicity of the patient | ||
| | | | ||
|- | |- | ||
Line 1,873: | Line 1,873: | ||
|bigint | |bigint | ||
| | | | ||
| | |Reference to the organisation the patient is registered at | ||
| | | | ||
|- | |- | ||
Line 1,895: | Line 1,895: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the address | ||
| | | | ||
|- | |- | ||
Line 1,901: | Line 1,901: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organisation.id | |organisation.id | ||
|- | |- | ||
Line 1,907: | Line 1,907: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 1,913: | Line 1,913: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 1,919: | Line 1,919: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The first line of the address | ||
| | | | ||
|- | |- | ||
Line 1,925: | Line 1,925: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The second line of the address | ||
| | | | ||
|- | |- | ||
Line 1,931: | Line 1,931: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The third line of the address | ||
| | | | ||
|- | |- | ||
Line 1,937: | Line 1,937: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The fourth line of the address | ||
| | | | ||
|- | |- | ||
Line 1,943: | Line 1,943: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The city | ||
| | | | ||
|- | |- | ||
Line 1,949: | Line 1,949: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The postcode | ||
| | | | ||
|- | |- | ||
Line 1,955: | Line 1,955: | ||
|int | |int | ||
|NOT NULL | |NOT NULL | ||
|use of address (e.g. home, temporary) | |use of address (e.g. home, temporary) | ||
| | | | ||
|- | |- | ||
Line 1,961: | Line 1,961: | ||
|Date | |Date | ||
|NOT NULL | |NOT NULL | ||
| | |The start date of this address being relevant | ||
| | | | ||
|- | |- | ||
Line 1,967: | Line 1,967: | ||
|Date | |Date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of this address being relevant | ||
| | | | ||
|- | |- | ||
Line 1,973: | Line 1,973: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the LSOA_2001 code | ||
| | | | ||
|- | |- | ||
Line 1,979: | Line 1,979: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the LSOA_2011 code | ||
| | | | ||
|- | |- | ||
Line 1,985: | Line 1,985: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the MSOA_2001 code | ||
| | | | ||
|- | |- | ||
Line 1,991: | Line 1,991: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |A reference to the MSOA_2011 code | ||
| | | | ||
|- | |- | ||
Line 1,997: | Line 1,997: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The ward the address belongs to | ||
| | | | ||
|- | |- | ||
Line 2,003: | Line 2,003: | ||
|varchar(9) | |varchar(9) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The local authority the address belongs to | ||
| | | | ||
|- | |- | ||
Line 2,031: | Line 2,031: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the patient_address table | ||
| | | | ||
|- | |- | ||
Line 2,037: | Line 2,037: | ||
|varchar(255) | |varchar(255) | ||
|NOT NULL | |NOT NULL | ||
| | |The Unique Propery Reference Number of the address | ||
| | | | ||
|- | |- | ||
Line 2,043: | Line 2,043: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether the UPRN is active | ||
| | | | ||
|- | |- | ||
Line 2,049: | Line 2,049: | ||
|varchar(45) | |varchar(45) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Building type eg flat, pub, house etc | ||
| | | | ||
|- | |- | ||
Line 2,055: | Line 2,055: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The latitude of the UPRN | ||
| | | | ||
|- | |- | ||
Line 2,061: | Line 2,061: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The longitude of the UPRN | ||
| | | | ||
|- | |- | ||
Line 2,067: | Line 2,067: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The x coordinate of the UPRN | ||
| | | | ||
|- | |- | ||
Line 2,073: | Line 2,073: | ||
|double | |double | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The y coordinate of the UPRN | ||
| | | | ||
|- | |- | ||
Line 2,079: | Line 2,079: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |How the match is determined eg equivalent match, near match etc | ||
| | | | ||
|- | |- | ||
Line 2,085: | Line 2,085: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Which algorithm was used to match the address to the UPRN | ||
| | | | ||
|- | |- | ||
Line 2,091: | Line 2,091: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the match was made | ||
| | | | ||
|- | |- | ||
Line 2,097: | Line 2,097: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The number value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,103: | Line 2,103: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The street value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,109: | Line 2,109: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The locality value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,115: | Line 2,115: | ||
|varchar(10) | |varchar(10) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The town value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,121: | Line 2,121: | ||
|varchar(10) | |varchar(10) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The postcode value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,127: | Line 2,127: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The organization value of the address in the ABP dictionary | ||
| | | | ||
|- | |- | ||
Line 2,133: | Line 2,133: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The qualifier used to match the postcode | ||
| | | | ||
|- | |- | ||
Line 2,139: | Line 2,139: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The qualifier used to match the street | ||
| | | | ||
|- | |- | ||
Line 2,145: | Line 2,145: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The qualifier used to match the number | ||
| | | | ||
|- | |- | ||
Line 2,151: | Line 2,151: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The qualifier used to match the building | ||
| | | | ||
|- | |- | ||
Line 2,157: | Line 2,157: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The qualifier used to match the flat | ||
| | | | ||
|- | |- | ||
Line 2,163: | Line 2,163: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |What version of the algorithm was used to make the match | ||
| | | | ||
|- | |- | ||
Line 2,169: | Line 2,169: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The version of the ABP files the addresses were matched against | ||
| | | | ||
|- | |- | ||
Line 2,187: | Line 2,187: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the patient contact | ||
| | | | ||
|- | |- | ||
Line 2,199: | Line 2,199: | ||
|bigint | |bigint | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 2,205: | Line 2,205: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 2,211: | Line 2,211: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|use of contact (e.g. mobile, home,work | |use of contact (e.g. mobile, home,work | ||
| | | | ||
|- | |- | ||
Line 2,217: | Line 2,217: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|type of contact (e.g. phone, email) | |type of contact (e.g. phone, email) | ||
| | | | ||
|- | |- | ||
Line 2,223: | Line 2,223: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The start date of the contact being valid | ||
| | | | ||
|- | |- | ||
Line 2,229: | Line 2,229: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date of the contact being valid | ||
| | | | ||
|- | |- | ||
Line 2,235: | Line 2,235: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The value of the contact information eg phone number, email address | ||
| | | | ||
|- | |- | ||
Line 2,259: | Line 2,259: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the gender lookup | ||
| | | | ||
|- | |- | ||
Line 2,265: | Line 2,265: | ||
|varchar(10) | |varchar(10) | ||
|NOT NULL | |NOT NULL | ||
| | |Value of the gender lookup | ||
| | | | ||
|- | |- | ||
Line 2,283: | Line 2,283: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the patient pseudo id | ||
| | | | ||
|- | |- | ||
Line 2,289: | Line 2,289: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 2,295: | Line 2,295: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the patient this registration status history belongs to | ||
| | | | ||
|- | |- | ||
Line 2,301: | Line 2,301: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the person this registration status history belongs to | ||
| | | | ||
|- | |- | ||
Line 2,307: | Line 2,307: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The name of the salt used to create the pseudo id | ||
| | | | ||
|- | |- | ||
Line 2,313: | Line 2,313: | ||
|varchar(255) | |varchar(255) | ||
|NOT NULL | |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) | ||
| | | | ||
|- | |- | ||
Line 2,319: | Line 2,319: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the nhs number is valid | ||
| | | | ||
|- | |- | ||
Line 2,325: | Line 2,325: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the nhs number has been verified by the publisher | ||
| | | | ||
|- | |- | ||
Line 2,427: | Line 2,427: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the person | ||
| | | | ||
|- | |- | ||
Line 2,433: | Line 2,433: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 2,439: | Line 2,439: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The title of the person | ||
| | | | ||
|- | |- | ||
Line 2,445: | Line 2,445: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The first names of the person | ||
| | | | ||
|- | |- | ||
Line 2,451: | Line 2,451: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The last name of the person | ||
| | | | ||
|- | |- | ||
Line 2,457: | Line 2,457: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the gender of the person | ||
| | | | ||
|- | |- | ||
Line 2,463: | Line 2,463: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The NHS number of the person | ||
| | | | ||
|- | |- | ||
Line 2,469: | Line 2,469: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date of birth of the person | ||
| | | | ||
|- | |- | ||
Line 2,475: | Line 2,475: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date of death of the person | ||
| | | | ||
|- | |- | ||
Line 2,481: | Line 2,481: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the current address of the person | ||
| | | | ||
|- | |- | ||
Line 2,487: | Line 2,487: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the ethnicity of the person | ||
| | | | ||
|- | |- | ||
Line 2,493: | Line 2,493: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the organisation the person is registered at | ||
| | | | ||
|- | |- | ||
Line 2,511: | Line 2,511: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the practitioner | ||
| | | | ||
|- | |- | ||
Line 2,517: | Line 2,517: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organisation.id | |organisation.id | ||
|- | |- | ||
Line 2,523: | Line 2,523: | ||
|varchar(1024) | |varchar(1024) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Name of the practitioner | ||
| | | | ||
|- | |- | ||
Line 2,529: | Line 2,529: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The code representing the role of the practitioner | ||
| | | | ||
|- | |- | ||
Line 2,535: | Line 2,535: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Textual description of the role of the practitioner eg General Medical Practitioner | ||
| | | | ||
|- | |- | ||
Line 2,541: | Line 2,541: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The GMC code of the practitioner | ||
| | | | ||
|- | |- | ||
Line 2,565: | Line 2,565: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the procedure | ||
| | | | ||
|- | |- | ||
Line 2,571: | Line 2,571: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 2,577: | Line 2,577: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 2,583: | Line 2,583: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 2,589: | Line 2,589: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter the procedure was administered at | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 2,595: | Line 2,595: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 2,601: | Line 2,601: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the procedure was administered by a clinician | ||
| | | | ||
|- | |- | ||
Line 2,607: | Line 2,607: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 2,613: | Line 2,613: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the status of the procedure | ||
| | | | ||
|- | |- | ||
Line 2,619: | Line 2,619: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the procedure | ||
| | | | ||
|- | |- | ||
Line 2,625: | Line 2,625: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the procedure | ||
| | | | ||
|- | |- | ||
Line 2,631: | Line 2,631: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age of the patient at the time of the procedure | ||
| | | | ||
|- | |- | ||
Line 2,637: | Line 2,637: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the procedure was recorded in the source system | ||
| | | | ||
|- | |- | ||
Line 2,675: | Line 2,675: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the procedure request status lookup | ||
| | | | ||
|- | |- | ||
Line 2,681: | Line 2,681: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The value of the procedure request status lookup | ||
| | | | ||
|- | |- | ||
Line 2,699: | Line 2,699: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the pseudo Id | ||
| | | | ||
|- | |- | ||
Line 2,705: | Line 2,705: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the patient the pseudo Id belongs to | ||
| | | | ||
|- | |- | ||
Line 2,711: | Line 2,711: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The name of the salt key used to create the pseudo id | ||
| | | | ||
|- | |- | ||
Line 2,717: | Line 2,717: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The pseudo id | ||
| | | | ||
|- | |- | ||
Line 2,735: | Line 2,735: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the referral | ||
| | | | ||
|- | |- | ||
Line 2,741: | Line 2,741: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 2,747: | Line 2,747: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |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 | |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 | ||
|patient.id | |patient.id | ||
|- | |- | ||
Line 2,753: | Line 2,753: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
|person.id | |person.id | ||
|- | |- | ||
Line 2,759: | Line 2,759: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the encounter the referral was made in | ||
|encounter.id | |encounter.id | ||
|- | |- | ||
Line 2,765: | Line 2,765: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 2,771: | Line 2,771: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the referral was made | ||
| | | | ||
|- | |- | ||
Line 2,777: | Line 2,777: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | |Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14) | ||
| | | | ||
|- | |- | ||
Line 2,783: | Line 2,783: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the organisation that made the refereral request | ||
| | | | ||
|- | |- | ||
Line 2,789: | Line 2,789: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the organization receiving the referral | ||
| | | | ||
|- | |- | ||
Line 2,795: | Line 2,795: | ||
|smallint(6) | |smallint(6) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the priority of the referral | ||
|referral.request.priority | |referral.request.priority | ||
|- | |- | ||
Line 2,801: | Line 2,801: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the type of referral request | ||
|referral.request.type | |referral.request.type | ||
|- | |- | ||
Line 2,807: | Line 2,807: | ||
|varchar(50) | |varchar(50) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The mode of the referral | ||
| | | | ||
|- | |- | ||
Line 2,813: | Line 2,813: | ||
|boolean | |boolean | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether this is an outgoing referral | ||
| | | | ||
|- | |- | ||
Line 2,819: | Line 2,819: | ||
|boolean | |boolean | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Whether this referral is a review | ||
| | | | ||
|- | |- | ||
Line 2,825: | Line 2,825: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the referral | ||
| | | | ||
|- | |- | ||
Line 2,831: | Line 2,831: | ||
|int | |int | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the clinical coding of the referral | ||
| | | | ||
|- | |- | ||
Line 2,837: | Line 2,837: | ||
|decimal(5,2) | |decimal(5,2) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The age of the patient at the time of the referral | ||
| | | | ||
|- | |- | ||
Line 2,843: | Line 2,843: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The date the referral request was added to the source system | ||
| | | | ||
|- | |- | ||
Line 2,893: | Line 2,893: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the referral request priority lookup | ||
| | | | ||
|- | |- | ||
Line 2,899: | Line 2,899: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The value of the referral request priority lookup | ||
| | | | ||
|- | |- | ||
Line 2,917: | Line 2,917: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the referral request type | ||
| | | | ||
|- | |- | ||
Line 2,923: | Line 2,923: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The value of the referral request lookup | ||
| | | | ||
|- | |- | ||
Line 2,941: | Line 2,941: | ||
|smallint(6) | |smallint(6) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the registration status | ||
| | | | ||
|- | |- | ||
Line 2,947: | Line 2,947: | ||
|varchar(10) | |varchar(10) | ||
|NOT NULL | |NOT NULL | ||
| | |The registration status code | ||
| | | | ||
|- | |- | ||
Line 2,953: | Line 2,953: | ||
|varchar(50) | |varchar(50) | ||
|NOT NULL | |NOT NULL | ||
| | |The description of the registration status | ||
| | | | ||
|- | |- | ||
Line 2,959: | Line 2,959: | ||
|tinyint(1) | |tinyint(1) | ||
|NOT NULL | |NOT NULL | ||
| | |Whether the registration status is active | ||
| | | | ||
|- | |- | ||
Line 2,977: | Line 2,977: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the registration status history | ||
| | | | ||
|- | |- | ||
Line 2,983: | Line 2,983: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
Line 2,989: | Line 2,989: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the patient this registration status history belongs to | ||
| | | | ||
|- | |- | ||
Line 2,995: | Line 2,995: | ||
|bigint(20) | |bigint(20) | ||
|NOT NULL | |NOT NULL | ||
| | |Reference to the person this registration status history belongs to | ||
| | | | ||
|- | |- | ||
Line 3,001: | Line 3,001: | ||
|bigint(20) | |bigint(20) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the episode of care this status history belongs to | ||
| | | | ||
|- | |- | ||
Line 3,007: | Line 3,007: | ||
|int(11) | |int(11) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the registration status | ||
| | | | ||
|- | |- | ||
Line 3,013: | Line 3,013: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The start date for the period this registration status history was valid | ||
| | | | ||
|- | |- | ||
Line 3,019: | Line 3,019: | ||
|datetime | |datetime | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The end date for the period this registration status history was valid | ||
| | | | ||
|- | |- | ||
Line 3,036: | Line 3,036: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
| | |Unique Id of the schedule | ||
| | | | ||
|- | |- | ||
Line 3,042: | Line 3,042: | ||
|bigint | |bigint | ||
|NOT NULL | |NOT NULL | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
|organization.id | |organization.id | ||
|- | |- | ||
Line 3,048: | Line 3,048: | ||
|bigint | |bigint | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Reference to the practitioner who owns the schedule | ||
|practitioner.id | |practitioner.id | ||
|- | |- | ||
Line 3,054: | Line 3,054: | ||
|date | |date | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The start date of the schedule | ||
| | | | ||
|- | |- | ||
Line 3,060: | Line 3,060: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The type of schedule eg Timed Appointments | ||
| | | | ||
|- | |- | ||
Line 3,066: | Line 3,066: | ||
|varchar(255) | |varchar(255) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |Textual description of the location the schedule was held at | ||
|location.id | |location.id | ||
|- | |- | ||
Line 3,072: | Line 3,072: | ||
|varchar(150) | |varchar(150) | ||
|DEFAULT NULL | |DEFAULT NULL | ||
| | |The name of the schedule | ||
| | | | ||
|- | |- |
Revision as of 13:04, 14 August 2020
Table: allergy_intolerance
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: appointment
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: appointment_status
PRIMARY KEY (id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: concept
PRIMARY KEY (dbid)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: concept_map
PRIMARY KEY (legacy)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: concept_property_object
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: concept_tct
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: consent_code
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: date_precision
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: diagnostic_order
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: encounter
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: encounter_additional
PRIMARY KEY (id, property_id, value_id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: encounter_event
PRIMARY KEY (organization_id, person_id, id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: episode_of_care
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: ethnicity_lookup
PRIMARY KEY(ethnic_code)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: event_log
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: flag
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: location
PRIMARY KEY (pk_location_id PRIMARY KEY id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: medication_order
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: medication_statement
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: observation
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: organization
PRIMARY KEY (pk_organization_id PRIMARY KEY (id))
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_address
PRIMARY KEY (organization_id,id,patient_id,person_id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_address_match
PRIMARY KEY(id, uprn)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_contact
PRIMARY KEY (organization_id,id,patient_id,person_id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_gender
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_pseudo_id
PRIMARY KEY(organization_id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: patient_uprn
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: person
PRIMARY KEY (id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: practitioner
PRIMARY KEY (id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: procedure_request
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: procedure_request_status
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: pseudo_id
PRIMARY KEY (patient_id, salt_key_name)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: referral_request
PRIMARY KEY (organization_id,person_id,id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: referral_request_priority
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: referral_request_type
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: registration_status
PRIMARY KEY(id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: registration_status_history
PRIMARY KEY(organization_id,id,patient_id,person_id)
Column name | Data type | Constraint | Comments | ExpandReferences |
Table: schedule
PRIMARY KEY (organization_id, id)
Column name | Data type | Constraint | Comments | ExpandReferences |