Compass 2 Schema Mappings: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Table: allergy_intolerance == PRIMARY KEY (organization_id,person_id,id) {| class="wikitable sortable mw-collapsible mw-collapsed" |'''Column name''' |'''Data type''' |'''C...") |
(Replaced content with "== Table: appointment == {| class="wikitable sortable mw-collapsible mw-collapsed" |'''Column name''' |'''Comments''' |'''Providing publisher''' |- |id |Unique Id of the a...") Tags: Replaced Visual edit |
||
Line 1: | Line 1: | ||
== Table: | == Table: appointment == | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" | {| class="wikitable sortable mw-collapsible mw-collapsed" | ||
|'''Column name''' | |'''Column name''' | ||
|'''Comments''' | |'''Comments''' | ||
|''' | |'''Providing publisher''' | ||
|- | |- | ||
|id | |id | ||
|Unique Id of the appointment (specific to the database) | |||
|Unique Id of the | |||
| | | | ||
|- | |- | ||
|organization_id | |organization_id | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|patient_id | |patient_id | ||
|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 | |||
| | |||
|- | |- | ||
|person_id | |person_id | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
| | | | ||
|- | |- | ||
|practitioner_id | |practitioner_id | ||
|The clinician the activity is recorded against | |The clinician the activity is recorded against | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|schedule_id | |schedule_id | ||
|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 | ||
| | | | ||
|- | |- | ||
|start_date | |start_date | ||
|The start date of the appointment | |The start date of the appointment | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|planned_duration | |planned_duration | ||
|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 | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|actual_duration | |actual_duration | ||
|Time between sent in and left always in minutes | |Time between sent in and left always in minutes | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|appointment_status_concept_id | |appointment_status_concept_id | ||
|The status of the appointment e.g. arrived/sent in/left/DNA | |The status of the appointment e.g. arrived/sent in/left/DNA | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|patient_wait | |patient_wait | ||
|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 | ||
| | | | ||
|- | |- | ||
|patient_delay | |patient_delay | ||
|How long the patient was delayed for | |How long the patient was delayed for | ||
| | | | ||
|- | |- | ||
|date_time_sent_in | |date_time_sent_in | ||
|Date and time the patient was sent into the practitioner | |Date and time the patient was sent into the practitioner | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|date_time_left | |date_time_left | ||
|Date and time the patient left the practitioner | |Date and time the patient left the practitioner | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|source_id | |source_id | ||
|Unique reference to the source of the appointment | |Unique reference to the source of the appointment | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|cancelled_date | |cancelled_date | ||
|The date the appointment was cancelled | |The date the appointment was cancelled | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
| | |||
|} | |} | ||
== Table: | == Table: episode_of_care == | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" | {| class="wikitable sortable mw-collapsible mw-collapsed" | ||
|'''Column name''' | |'''Column name''' | ||
|'''Comments''' | |'''Comments''' | ||
|''' | |'''Providing publisher''' | ||
|- | |- | ||
|id | |id | ||
|Unique Id of the episode of care | |||
|Unique Id of the | |||
| | | | ||
|- | |- | ||
|organization_id | |organization_id | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
| | | | ||
|- | |- | ||
|patient_id | |patient_id | ||
|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 | ||
| | | | ||
|- | |- | ||
|person_id | |person_id | ||
|Unique individual across all organisations | |||
|Unique individual across all | |||
| | | | ||
|- | |- | ||
|registration_type_concept_id | |registration_type_concept_id | ||
|Reference to the registration type of the patient | |Reference to the registration type of the patient | ||
| | | | ||
|- | |- | ||
|registration_status_concept_id | |registration_status_concept_id | ||
|Reference to the registration status of the patient | |Reference to the registration status of the patient | ||
| | | | ||
|- | |- | ||
|date_registered | |date_registered | ||
|The date the registration was started for this episode of care | |The date the registration was started for this episode of care | ||
| | | | ||
|- | |- | ||
|date_registered_end | |date_registered_end | ||
|The date the registration was ended for this episode of care | |The date the registration was ended for this episode of care | ||
| | | | ||
|- | |- | ||
|usual_gp_practitioner_id | |usual_gp_practitioner_id | ||
|Reference to the usual GP for this episode of care | |Reference to the usual GP for this episode of care | ||
| | | | ||
|} | |} | ||
== Table: patient == | == Table: patient == | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" | {| class="wikitable sortable mw-collapsible mw-collapsed" | ||
|'''Column name''' | |'''Column name''' | ||
|'''Comments''' | |'''Comments''' | ||
|''' | |'''Providing publisher''' | ||
|- | |- | ||
|id | |id | ||
|Unique Id of the patient | |Unique Id of the patient | ||
| | | | ||
|- | |- | ||
|organization_id | |organization_id | ||
|Owning organisation (i.e. publisher) | |Owning organisation (i.e. publisher) | ||
| | |[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]] | ||
|- | |- | ||
|person_id | |person_id | ||
|Unique individual across all organisations | |Unique individual across all organisations | ||
| | | | ||
|- | |- | ||
|title | |title | ||
|The title of the patient | |The title of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|first_names | |first_names | ||
|The first names of the patient | |The first names of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|last_name | |last_name | ||
|The last name of the patient | |The last name of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|gender_concept_id | |gender_concept_id | ||
|Reference to the gender of the patient | |Reference to the gender of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|nhs_number | |nhs_number | ||
|The NHS number of the patient | |The NHS number of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|date_of_birth | |date_of_birth | ||
|The date of birth of the patient | |The date of birth of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|date_of_death | |date_of_death | ||
|The date of death of the patient | |The date of death of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|current_address_id | |current_address_id | ||
|Reference to the current address of the patient | |Reference to the current address of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|ethnic_code_concept_id | |ethnic_code_concept_id | ||
|Reference to the ethnicity of the patient | |Reference to the ethnicity of the patient | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|registered_practice_organization_id | |registered_practice_organization_id | ||
|Reference to the organisation the patient is registered at | |Reference to the organisation the patient is registered at | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
|- | |- | ||
|birth_year | |birth_year | ||
| | | | ||
|[[EMIS published data transformation and mapping|EMIS]] | |||
|- | |- | ||
|birth_month | |birth_month | ||
| | | | ||
|[[EMIS published data transformation and mapping|EMIS]] | |||
|- | |- | ||
|birth_week | |birth_week | ||
| | | | ||
| | |[[EMIS published data transformation and mapping|EMIS]] | ||
| | |||
|} | |} | ||
== Table: patient_additional == | == Table: patient_additional == | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" | {| class="wikitable sortable mw-collapsible mw-collapsed" | ||
|'''Column name''' | |'''Column name''' | ||
|'''Comments''' | |'''Comments''' | ||
|''' | |'''Providing publisher''' | ||
|- | |- | ||
|id | |id | ||
|Unique Id of the patient | |Unique Id of the patient | ||
| | | | ||
|- | |- | ||
|property_id | |property_id | ||
|IM reference (e.g. cause of death) | |IM reference (e.g. cause of death) | ||
| | | | ||
|- | |- | ||
|value_id | |value_id | ||
|IM reference (e.g. COVID) | |IM reference (e.g. COVID) | ||
| | | | ||
|- | |- | ||
|json_value | |json_value | ||
|Where there is no mapped value_id, just raw JSON | |Where there is no mapped value_id, just raw JSON | ||
| | | | ||
|- | |- | ||
|text_value | |text_value | ||
|Where there is no mapped value_id or raw JSON, just a basic text value | |Where there is no mapped value_id or raw JSON, just a basic text value | ||
| | | | ||
|}<br /> | |||
|} | |||
<br /> | |||
__FORCETOC__ | __FORCETOC__ | ||
__INDEX__ | __INDEX__ | ||
__NONEWSECTIONLINK__ | __NONEWSECTIONLINK__ |
Revision as of 11:44, 18 May 2021
Table: appointment
Column name | Comments | Providing publisher |
id | Unique Id of the appointment (specific to the database) | |
organization_id | Owning organisation (i.e. publisher) | EMIS |
patient_id | 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 | Unique individual across all organisations | |
practitioner_id | The clinician the activity is recorded against | EMIS |
schedule_id | The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule | |
start_date | The start date of the appointment | EMIS |
planned_duration | The time allocated for the appointment, not necessarily the actual duration always in minutes | EMIS |
actual_duration | Time between sent in and left always in minutes | EMIS |
appointment_status_concept_id | The status of the appointment e.g. arrived/sent in/left/DNA | EMIS |
patient_wait | How long the patient waited from being marked as arrived to being sent in | |
patient_delay | How long the patient was delayed for | |
date_time_sent_in | Date and time the patient was sent into the practitioner | EMIS |
date_time_left | Date and time the patient left the practitioner | EMIS |
source_id | Unique reference to the source of the appointment | EMIS |
cancelled_date | The date the appointment was cancelled | EMIS |
Table: episode_of_care
Column name | Comments | Providing publisher |
id | Unique Id of the episode of care | |
organization_id | Owning organisation (i.e. publisher) | |
patient_id | 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 | Unique individual across all organisations | |
registration_type_concept_id | Reference to the registration type of the patient | |
registration_status_concept_id | Reference to the registration status of the patient | |
date_registered | The date the registration was started for this episode of care | |
date_registered_end | The date the registration was ended for this episode of care | |
usual_gp_practitioner_id | Reference to the usual GP for this episode of care |
Table: patient
Column name | Comments | Providing publisher |
id | Unique Id of the patient | |
organization_id | Owning organisation (i.e. publisher) | EMIS, ADT, BHRUT |
person_id | Unique individual across all organisations | |
title | The title of the patient | EMIS |
first_names | The first names of the patient | EMIS |
last_name | The last name of the patient | EMIS |
gender_concept_id | Reference to the gender of the patient | EMIS |
nhs_number | The NHS number of the patient | EMIS |
date_of_birth | The date of birth of the patient | EMIS |
date_of_death | The date of death of the patient | EMIS |
current_address_id | Reference to the current address of the patient | EMIS |
ethnic_code_concept_id | Reference to the ethnicity of the patient | EMIS |
registered_practice_organization_id | Reference to the organisation the patient is registered at | EMIS |
birth_year | EMIS | |
birth_month | EMIS | |
birth_week | EMIS |
Table: patient_additional
Column name | Comments | Providing publisher |
id | Unique Id of the patient | |
property_id | IM reference (e.g. cause of death) | |
value_id | IM reference (e.g. COVID) | |
json_value | Where there is no mapped value_id, just raw JSON | |
text_value | Where there is no mapped value_id or raw JSON, just a basic text value |