Skip to content
Partner Developer Portal

Schema

The core schema represents the MKB Mapping Attributes schema derived from EMIS source systems.

Column NameData TypesDescriptionExample
is_deletedbooleanIndicates if this record should be considered soft deletedFALSE
code_idbigintThe unique EMIS code identifier for the attribute code460101014
data_dictionary_national_codevarcharThe NHS data dictionary code used to identify the national data element associated with the mapping.so
snomed_concept_idbigintThe unique identifier for concepts within the SNOMED CT clinical terminology.315583002
attribute_typevarcharThe description of the attribute typelanguage
organisationvarcharSet to ‘EMIS’EMIS
transform_datetimetimestamp(6) with time zoneThe timestamp indicating when the record was last processed and updated in the data model.2024-01-15 10:30:45
_execution_datevarcharThe transform_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.20240115103045

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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema.

Column NameData Type
is_deletedboolean
code_idbigint
snomed_concept_idbigint
data_dictionary_national_codevarchar
attribute_typevarchar
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
data_filterinteger✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓code_id
snomed_concept_idbigint✓✓
data_dictionary_national_codevarchar✓✓
attribute_typevarchar✓✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓