Skip to content
Partner Developer Portal

Schema

The core schema represents the Organisation schema derived from the EMIS source system.

Column NameData TypeDescriptionExample
organisation_idbigintThe unique internal identifier for the organisation record within an organisation.12345
organisationvarcharAn identifier for the source of data (an organisation) relating to a given GP practiceCDB-50002
load_datetimetimestamp(6) with time zoneThe datetime that the record was last upserted into the EXA data lake from EMIS source system with a relevant change from source system.‘2023-09-01 09:00:00.000000 UTC’
_ingest_timevarcharThe load_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.20240917084800
is_deletedbooleanIndicates if this record should be considered soft deleted.FALSE
organisation_guidvarcharThe GUID for the organisation record within an organisation.‘82E6FF36-87E2-11EF-B3A3-48DF37DF55D0’
organisation_uuidvarcharThe UUID derived from organisation_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
customer_database_idbigintEMIS Customer Database ID50002
namevarcharThe name of the organisationThe Dermatologist Practice
ods_codevarcharThe organisational identifier that the NHS assigns an organisationV81999
open_datetimetimestamp(6) with time zoneTimestamp of when the organisation opened‘2023-09-01 09:00:00.000000 UTC’
close_datetimetimestamp(6) with time zoneTimestamp of when the organisation closed‘2023-09-01 09:00:00.000000 UTC’
is_openbooleanFlag to indicate if the organisation is classed as openTRUE
organisation_type_idbigintThe unique internal identifier for the organisation type2
organisation_type_descriptionvarcharThe description of organisation type as defined on the source systemGeneral Practice
speciality_codesvarcharA comma separated speciality codes associated with the organisation100,101
commissionervarcharThe commissioning organisation associated with the ODS codeNHS England
address_idbigintThe unique internal identifier for the address12345
address_uuidvarcharThe UUID derived from address_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
house_name_flat_numbervarcharNumber or name from the address2
number_and_streetvarcharAddress number or street nameHill House
villagevarcharVillage from the organisations addressRawdon
townvarcharTown from organisations addressLeeds
countyvarcharCounty from addressWest Yorkshire
postcodevarcharOrganisation’s postcodeLS997BZ
region_idbigintThe unique internal identifier for the region0
main_location_idbigintThe unique internal identifier for the main location, can be used to join to location model12345
main_location_guidvarcharThe GUID for the main location‘A3E962E4-CB3B-40B2-8D86-D850CB9BF1A4’
main_location_uuidvarcharThe UUID derived from main_location_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
is_this_organisationbooleanThe flag to indicate if the current row’s data relates to the organisation in the organisation column and not for an organisation under itTRUE
transform_datetimetimestamp(6) with time zoneThe timestamp indicating when the record was last processed and updated in the data model.‘2023-09-01 09:00:00.000000 UTC’
_execution_datevarcharThe transform_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.20240917084800

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
emis_organisation_idbigint✓✓organisation_id
organisation_guidvarchar✓✓
organisation_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
cdbbigint✓✓customer_database_id
namevarchar✓✓
is_this_organisationboolean✗✓
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
ods_codevarchar✓✓
address_idbigint✗✓
address_uuidvarchar✗✓
region_idbigint✗✓
address_line_1varchar✓✓house_name_flat_number
address_line_2varchar✓✓number_and_street
address_line_3varchar✓✓village
address_line_4varchar✓✓town
address_line_5varchar✓✓county
postcodevarchar✓✓
parent_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
full_addressvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_organisation_type_descriptionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
releaseversionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
nhs_roleinteger✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

Not used in this schema

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
emis_organisation_idbigint✓✓organisation_id
organisation_guidvarchar✓✓
organisation_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
cdbbigint✓✓customer_database_id
namevarchar✓✓
ods_codevarchar✓✓
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
address_idbigint✗✓
address_uuidvarchar✗✓
address_line_1varchar✓✓house_name_flat_number
address_line_2varchar✓✓number_and_street
address_line_3varchar✓✓village
address_line_4varchar✓✓town
address_line_5varchar✓✓county
postcodevarchar✓✓
region_idbigint✗✓
ccg_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
full_addressvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_organisation_type_descriptionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
releaseversionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
nhs_roleinteger✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema.

Column NameData TypeCore Mapping
is_deletedboolean
pseudo_organisation_uuidvarcharorganisation_uuid
pseudo_organisation_guidvarcharorganisation_guid
ods_codevarchar
open_datetimetimestamp(6) with time zone
close_datetimetimestamp(6) with time zone
is_openboolean
organisation_type_idbigint
organisation_type_descriptionvarchar
speciality_codesvarchar
commissionervarchar
postcodevarchar
region_idbigint
pseudo_main_location_uuidvarcharmain_location_uuid
is_this_organisationboolean
organisationvarchar
transform_datetimetimestamp(6) with time zone

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
load_datetimetimestamp(6) with time zone✗✓
emis_organisation_idbigint✗✓organisation_id
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
cdbbigint✓✓customer_database_id
namevarchar✓✓
ods_codevarchar✓✓
address_idbigint✗✓
address_uuidvarchar✗✓
region_idbigint✗✓
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
nhs_roleinteger✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
address_line_1varchar✓✓house_name_flat_number
address_line_2varchar✓✓number_and_street
address_line_3varchar✓✓village
address_line_4varchar✓✓town
address_line_5varchar✓✓county
postcodevarchar✓✓
releaseversionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
load_datetimetimestamp(6) with time zone✗✓
organisation_idbigint✗✓
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
cdbbigint✓✓customer_database_id
ods_codevarchar✓✓
emis_parent_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_ccg_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
load_datetimetimestamp(6) with time zone✗✓
organisation_idbigint✗✓
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
cdbbigint✓✓customer_database_id
ods_codevarchar✓✓
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_parent_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
emis_ccg_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓Renamed from execution_date in V1

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_ingest_timevarchar✓✓
is_deletedboolean✗✓
load_datetimetimestamp(6) with time zone✗✓
organisation_idbigint✗✓
organisation_guidvarchar✓✓
organisation_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_typevarchar✓✓organisation_type_description
main_location_idbigint✗✓
main_location_guidvarchar✓✓
main_location_uuidvarchar✗✓
cdbbigint✓✓customer_database_id
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
ods_codevarchar✓✓
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
parent_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_organisation_guidvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓Renamed from execution_date in V1

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
emis_organisation_idbigint✓✓organisation_id
organisation_guidvarchar✓✓
organisation_uuidvarchar✗✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
is_this_organisationboolean✗✓
cdbbigint✓✓customer_database_id
namevarchar✓✓
ods_codevarchar✓✓
address_idbigint✗✓
address_uuidvarchar✗✓
region_idbigint✗✓
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
address_line_1varchar✓✓house_name_flat_number
address_line_2varchar✓✓number_and_street
address_line_3varchar✓✓village
address_line_4varchar✓✓town
address_line_5varchar✓✓county
postcodevarchar✓✓
parent_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
full_addressvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_organisation_type_descriptionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
releaseversionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
nhs_roleinteger✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema and maps columns between core, V1, and V2. Refer to Changes in iPCV V2 for more information.

Column NameData TypeData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_ingest_timevarchar✓✓
load_datetimetimestamp(6) with time zone✗✓
is_deletedboolean✓✓Renamed from deleted in V1
emis_organisation_idbigint✓✓organisation_id
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
main_location_idbigint✗✓
emis_main_location_guidvarchar✓✓main_location_guid
main_location_uuidvarchar✗✓
cdbbigint✓✓customer_database_id
address_idbigint✗✓
address_uuidvarchar✗✓
ccg_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
ccg_ods_codevarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_emis_organisation_idvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
parent_organisation_type_descriptionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
releaseversionvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
nhs_roleinteger✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
namevarchar✓✓
ods_codevarchar✓✓
open_datedate✓✓open_datetime
close_datedate✓✓close_datetime
is_openboolean✓✓
organisation_type_idbigint✗✓
organisation_type_descriptionvarchar✓✓
speciality_codesvarchar✗✓
commissionervarchar✗✓
address_line_1varchar✓✓house_name_flat_number
address_line_2varchar✓✓number_and_street
address_line_3varchar✓✓village
address_line_4varchar✓✓town
address_line_5varchar✓✓county
full_addressvarchar✓✓Always NULL as it is deprecated in v2. Refer changes in v2 for more details.
postcodevarchar✓✓
is_this_organisationboolean✗✓
data_filterinteger✓✗Removed in v2
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓