Skip to content
Partner Developer Portal

Schema

The core schema represents the Appointment Session User schema derived from EMIS source system.

Column NameData TypeDescriptionExample
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-05-12 14:30:15.000000 UTC’
_ingest_timevarcharThe load_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.‘20230512143015’
is_deletedbooleanIndicates whether the appointment session user record has been soft deleted.TRUE
session_idbigintThe unique internal identifier for the appointment session record within an organisation.123456
session_guidvarcharThe GUID for the appointment session record within an organisation.‘12a3b456-7c89-0d1e-234f-5gh6i789jk01’
session_uuidvarcharThe UUID derived from session_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
organisation_idbigintThe unique internal identifier for the organisation where the session user record is recorded.9876
organisation_guidvarcharThe GUID for the organisation where the session user record is recorded.‘4a3b156c-7d89-0e1f-234a-5bc6d789ef01’
organisation_uuidvarcharThe UUID derived from organisation_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
location_idbigintThe unique internal identifier for the location associated with the session user record.12345
location_guidvarcharThe GUID for the location associated with the session user record.‘b2c3d4e5-f6a7-5b6c-0d1e-2f3a4b5c6d7e’
location_uuidvarcharThe UUID derived from location_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
user_in_role_idbigintThe unique internal identifier for the user in role associated with the session.456
user_in_role_guidvarcharThe GUID for the user in role associated with the session.‘9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q’
user_in_role_uuidvarcharThe UUID derived from user_in_role_id and organisation, providing a stable unique identifier.‘a1b2c3d4-e5f6-4a5b-9c8d-0e1f2a3b4c5d’
organisationvarcharAn identifier for the source organisation (GP practice) associated with the session user record.‘CDB-12345’
transform_datetimetimestamp(6) with time zoneThe datetime when the record was last processed and updated in the data model.‘2023-05-12 14:30:15.000000 UTC’
_execution_datevarcharThe transform_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.‘20230512143015’

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 session_deleted_flag in V1
load_datetimetimestamp(6) with time zone✗✓
emis_session_idbigint✓✓session_id
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
session_emis_organisation_idbigint✓✓organisation_id
session_emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
emis_session_userinrole_idbigint✓✓user_in_role_id
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
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
_ingest_timevarchar✓✓
is_deletedboolean✓✓Renamed from session_deleted_flag in V1
load_datetimetimestamp(6) with time zone✗✓
emis_session_idbigint✓✓session_id
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
emis_session_userinrole_idbigint✓✓user_in_role_id
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
session_emis_organisation_idbigint✓✓organisation_id
session_emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema and maps columns between core and flavour (V2).

Column NameData TypeCore MappingComments
is_deletedboolean
pseudo_session_uuidvarcharsession_uuidhashed
pseudo_user_in_role_uuidvarcharuser_in_role_uuidhashed
pseudo_organisation_uuidvarcharorganisation_uuidhashed
pseudo_location_uuidvarcharlocation_uuidhashed
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✓✓Renamed from session_user_deleted_flag in V1
load_datetimetimestamp(6) with time zone✗✓
emis_session_idbigint✓✓session_id
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
emis_session_userinrole_idbigint✓✓user_in_role_id
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
session_emis_organisation_idbigint✓✓organisation_id
session_emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
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✗✓
session_idbigint✓✓
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
user_in_role_idbigint✓✓
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
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✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
session_idbigint✓✓
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
user_in_role_idbigint✓✓
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
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✓✓Renamed from deleted in V1
load_datetimetimestamp(6) with time zone✗✓
session_idbigint✓✓
session_guidvarchar✓✓
session_uuidvarchar✗✓
user_in_role_idbigint✓✓
user_in_role_guidvarchar✓✓
user_in_role_uuidvarchar✗✓
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_datevarcharexecution_date✓

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 session_deleted_flag in V1
load_datetimetimestamp(6) with time zone✗✓
emis_session_idbigint✓✓session_id
emis_session_guidvarchar✓✓session_guid
session_uuidvarchar✗✓
session_emis_organisation_idbigint✓✓organisation_id
session_emis_organisation_guidvarchar✓✓organisation_guid
organisation_uuidvarchar✗✓
emis_session_userinrole_idbigint✓✓user_in_role_id
emis_session_userinrole_guidvarchar✓✓user_in_role_guid
user_in_role_uuidvarchar✗✓
location_idbigint✗✓
location_guidvarchar✗✓
location_uuidvarchar✗✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

Not used in this schema