Skip to content
Partner Developer Portal

Schema

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

Column NameData TypeDescriptionExample
is_deletedbooleanIndicates if this record should be considered soft deletedFALSE
preparation_code_idbigintThe unique EMIS code identifier for the drug preparation11678741000033113
dmd_product_code_idbigintNHS Dictionary of Medicines and Devices (dm+d) product code identifier; includes both actual and virtual medicinal products. In practice, these ids are directly mapped to SNOMED CT concepts.13327711000001100
snomed_description_idbigintThe unique identifier for the preferred term that describes the concept within the SNOMED CT clinical terminology.2914521000001118
other_codevarcharThe code from EMIS legacy coding systemNULL
other_code_systemvarcharOther system http addresshttps://fhir.hl7.org.uk/Id/egton-codes
other_displayvarcharThe description from the legacy EMIS coding systemNULL
organisationvarcharSet to ‘EMIS’‘EMIS’
transform_datetimetimestamp(6) with time zoneThe timestamp indicating when the record was last processed and updated in the data model.‘2023-05-12 14:30:15.000 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 TypesData in V1Data in V2Core MappingComments
_record_versionvarchar✓✗
_mkb_versionvarchar✓✗
_ingest_timevarchar✓✗
is_deletedboolean✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓

The table below presents the flavour specific schema.

Column NameData Type
is_deletedboolean
dmd_product_code_idbigint
snomed_description_idbigint
preparation_code_idbigint
other_codevarchar
other_code_systemvarchar
other_displayvarchar
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_codevarchar✓✓
other_code_systemvarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
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✗✓
drug_preparation_code_idbigint✓✓preparation_code_id
snomed_concept_idbigint✓✓dmd_product_code_id
snomed_description_idbigint✓✓
other_code_systemvarchar✓✓
other_codevarchar✓✓
other_displayvarchar✓✓
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✓✓