Compass 2 Schema Mappings: Difference between revisions

From Discovery Data Service
Jump to navigation Jump to search
(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
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 27: Line 27:
|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
|
|[[EMIS published data transformation and mapping|EMIS]]
|-
|-
|start_date
|start_date
Line 47: Line 47:
|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
|
|[[EMIS published data transformation and mapping|EMIS]]
|-
|-
|patient_delay
|patient_delay
|How long the patient was  delayed for
|How long the patient was  delayed for
|
|[[EMIS published data transformation and mapping|EMIS]]
|-
|-
|date_time_sent_in
|date_time_sent_in
Line 121: Line 121:
|id
|id
|Unique Id of the patient
|Unique Id of the patient
|
| style="color:grey;" |'''–'''
|-
|-
|organization_id
|organization_id
Line 133: Line 133:
|title
|title
|The title of the patient
|The title of the patient
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|first_names
|first_names
|The first names of the patient
|The first names of the patient
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|last_name
|last_name
|The last name of the patient
|The last name of the patient
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|nhs_number
|nhs_number
|The NHS number of the patient
|The NHS number of the patient
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|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]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|birth_year
|birth_year
|
|
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|birth_month
|birth_month
|
|
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|birth_week
|birth_week
|
|
|[[EMIS published data transformation and mapping|EMIS]]
|[[EMIS published data transformation and mapping|EMIS]], [[HL7 ADT|ADT]], [[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|}
|}


Line 192: Line 192:
|id
|id
|Unique Id of the patient
|Unique Id of the patient
|
| style="color:grey;" |'''–'''
|-
|-
|property_id
|property_id
|IM reference (e.g. cause of death)
|IM reference (e.g. cause of death)
|
|[[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|value_id
|value_id
|IM reference (e.g. COVID)
|IM reference (e.g. COVID)
|
|[[BHRUT Medway Extract FHIR Mapping|BHRUT]]
|-
|-
|json_value
|json_value
|Where there is no mapped value_id, just raw JSON
|Where there is no mapped value_id, just raw JSON
|
| style="color:grey;" |'''–'''
|-
|-
|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
|
| style="color:grey;" |'''–'''
|}<br />
|}<br />__FORCETOC____INDEX____NONEWSECTIONLINK__
__FORCETOC__
__INDEX__
__NONEWSECTIONLINK__

Latest revision as of 08:22, 25 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 EMIS
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 EMIS
patient_delay How long the patient was delayed for EMIS
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, ADT, BHRUT
first_names The first names of the patient EMIS, ADT, BHRUT
last_name The last name of the patient EMIS, ADT, BHRUT
gender_concept_id Reference to the gender of the patient EMIS, ADT, BHRUT
nhs_number The NHS number of the patient EMIS, ADT, BHRUT
date_of_birth The date of birth of the patient EMIS, ADT, BHRUT
date_of_death The date of death of the patient EMIS, ADT, BHRUT
current_address_id Reference to the current address of the patient EMIS, ADT, BHRUT
ethnic_code_concept_id Reference to the ethnicity of the patient EMIS, ADT, BHRUT
registered_practice_organization_id Reference to the organisation the patient is registered at EMIS, ADT, BHRUT
birth_year EMIS, ADT, BHRUT
birth_month EMIS, ADT, BHRUT
birth_week EMIS, ADT, BHRUT

Table: patient_additional

Column name Comments Providing publisher
id Unique Id of the patient
property_id IM reference (e.g. cause of death) BHRUT
value_id IM reference (e.g. COVID) BHRUT
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