Skip to content
Partner Developer Portal

Schema

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

Column NameData TypeDescriptionExample
is_deletedbooleanIndicates if this record should be considered soft deleted.FALSE
organisation_idbigintThe unique internal identifier for the organisation record within an organisation.12345
location_idbigintThe location identifier67890
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
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
location_guidvarcharThe GUID for the location record within an organisation.A3E962E4-CB3B-40B2-8D86-D850CB9BF1A4
location_uuidvarcharThe UUID derived from location_id and organisation, providing a stable unique identifier.a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d
is_main_locationbooleanFlag to indicate if this is the main location for the organisationTRUE
address_idbigintInternal identifier for the address12345
address_uuidvarcharThe UUID derived from address_id and organisation, providing a stable unique identifier.a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d
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.20241217134400

Not used in this schema

Not used in this schema

Not used in this schema

The table below presents the flavour specific schema.

Column NameData TypeCore MappingComments
is_deletedboolean
pseudo_organisation_uuidvarcharorganisation_uuidHashed
pseudo_location_uuidvarcharlocation_uuidHashed
is_main_locationboolean
organisationvarchar
transform_datetimetimestamp(6) with time zone

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
_ingest_timevarchar✓✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
organisation_idbigint✗✓
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
is_deletedboolean✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
is_main_location_flagboolean✓✓is_main_location
emis_main_location_guidvarchar✓✗Always NULL as it is deprecated in v2. Refer to Changes in iPCV V2 for more information
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer to Changes in iPCV V2 for more information
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✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
organisation_idbigint✗✓
emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
emis_main_location_guidvarchar✓✗Always NULL as it is deprecated in v2. Refer to Changes in iPCV V2 for more information
is_main_location_flagboolean✓✓is_main_location
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer to Changes in iPCV V2 for more information
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✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
organisation_idbigint✗✓
organisation_guidvarchar✓✓
organisation_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✓✓
location_uuidvarchar✗✓
is_main_locationboolean✓✓
processing_idbigint✓✓Always NULL as it is deprecated in v2. Refer to Changes in iPCV V2 for more information
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓Renamed from execution_date in V1

Not used in this schema

Not used in this schema