Skip to content
Partner Developer Portal

Schema

Column NameData TypeDescriptionExample
_ingest_timeVARCHARThe datetime that the record was ingested, format YYYYMMDDHHMMSS’20230512143015’
location_idBIGINTPK Unique identifier for location123456
organisationVARCHARPK An identifier for the source of data (an organisation) this relates to a given GP practice’CDB-12345’
extract_datetimeTIMESTAMPThe datetime that the record was last extracted from the source database with a relevant change’2023-05-10 09:30:45.000’
load_datetimeTIMESTAMPThe datetime that the record was last upserted in to the EXA data lake with a relevant change’2023-05-10 10:15:22.000’
is_deletedBOOLEANIf this record should be considered soft deletedTRUE
transform_datetimeTIMESTAMPThe datetime that the data was made available in the model with a relevant change’2023-05-12 14:30:15.000 UTC’
location_guidVARCHARUnique identifier for the location’12a3b456-7c89-0d1e-234f-5gh6i789jk01’
location_nameVARCHARThe name of the location’Main Surgery’
parent_location_idBIGINTFK Unique identifier of the parent location123455
email_addressVARCHARThe email address of the locationinfo@surgeryname.nhs.uk
phone_numberVARCHARThe phone number of the location’01234 567890’
fax_numberVARCHARThe fax number of the location’01234 567891’
main_contact_nameVARCHARThe name of the main contact associated with the location’Dr. Jane Smith’
open_dateDATEThe date the location can be used’2010-03-15’
close_dateDATEThe date the location can no longer be used’2022-12-31’
location_type_descriptionVARCHAREMIS description of the location type e.g. Primary Care Trust’GP Practice’
code_idBIGINTEMIS code Id used to link location type back to MKB database987654
house_name_flat_numberVARCHARThe house name or number of an address can sometimes be house number and street name’House’
number_and_streetVARCHARHouse number and street, could be either or’45 Example Street’
villageVARCHARUsed to display village names or in larger cities boroughs’Exampleford’
townVARCHARThis is the town or city if the address’Exampleford’
countyVARCHARCounty where the address resides’West Exampleshire’
postcodeVARCHARPostcode with spaces removed properly’AB11 1CD’
_execution_dateVARCHARFormatted transform datetime for versioning’20230512143015’

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar_base_ingest_time Exists in v1 with a different name
is_deletedboolean
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
parent_location_idbigint
emis_parent_location_guidvarchar
location_namevarchar
location_type_descriptionvarchar
open_datedate
close_datedate
main_contact_namevarchar
email_addressvarchar
phone_numbervarchar
fax_numbervarchar
house_name_flat_numbervarchar
number_and_streetvarchar
villagevarchar
townvarchar
countyvarchar
postcodevarchar
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarchar

Not used in this schema

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar_base_ingest_timeExists in v1 with a different name
is_deletedboolean
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
location_namevarchar
location_type_descriptionvarchar
parent_location_idbigint
emis_parent_location_guidvarchar
email_addressvarchar
phone_numbervarchar
fax_numbervarchar
main_contact_namevarchar
open_datedate
close_datedate
house_name_flat_numbervarchar
number_and_streetvarchar
villagevarchar
townvarchar
countyvarchar
postcodevarchar
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarchar

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar
is_deletedboolean
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
location_namevarchar
parent_location_idbigint
emis_parent_location_guidvarchar
email_addressvarchar
phone_numbervarchar
fax_numbervarchar
main_contact_namevarchar
open_datedate
close_datedate
location_type_descriptionvarchar
house_name_flat_numbervarchar
number_and_streetvarchar
villagevarchar
townvarchar
countyvarchar
postcodevarchar
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarchar(14)

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar
is_deletedbooleandeletedExists in v1 with a different name
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
location_type_descriptionvarchar
parent_location_idbigint
emis_parent_location_guidvarchar
open_datedate
close_datedate
processing_idintegerRemoved as it is deprecated in iPCV v1
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarchar

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar
is_deletedbooleandeletedExists in v1 with a different name
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
location_type_descriptionvarchar
parent_location_idbigint
emis_parent_location_guidvarchar
open_datedate
close_datedate
processing_idintegerRemoved as it is deprecated in iPCV v1
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarcharexecution_dateExists in v1 with a different name

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar
is_deletedbooleandeletedExists in v1 with a different name
load_datetimetimestamp(6) with time zone
location_idbigint
location_guidvarchar
parent_location_idbigint
parent_location_guidvarchar
open_datedate
close_datedate
location_type_descriptionvarchar
processing_idintegerRemoved as it is deprecated in iPCV v1
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarcharexecution_dateExists in v1 with a different name

Refer to the definition / universal-improvements page for detailed differences between v1 and v2 of this model.

Column NameData TypeData Exists in v1Data Exists in v2Comments
_ingest_timevarchar_base_ingest_timeExists in v1 with a different name
is_deletedboolean
load_datetimetimestamp(6) with time zone
emis_location_idbigint
emis_location_guidvarchar
parent_location_idbigint
emis_parent_location_guidvarchar
location_type_descriptionvarchar
location_namevarchar
main_contact_namevarchar
open_datedate
close_datedate
email_addressvarchar
phone_numbervarchar
fax_numbervarchar
house_name_flat_numbervarchar
number_and_streetvarchar
villagevarchar
townvarchar
countyvarchar
postcodevarchar
organisationvarchar
transform_datetimetimestamp(6) with time zone
_execution_datevarchar

Not used in this schema