Skip to content
Partner Developer Portal

Schema

The core schema represents the MKB Drug Pack schema derived from EMIS source systems.

Column NameData TypeDescriptionExample
is_deletedbooleanIndicates if this record should be considered soft deletedFALSE
preparation_pack_idbigintThe unique internal identifier for the preparation in a given pack78901
preparation_code_idbigintThe unique EMIS code identifier for the drug preparation11678741000033113
supplier_namevarcharThe name of the supplier/manufacturer‘Examplus Healthcare Ltd’
termvarcharThe EMIS description of the drug pack‘Metformin 500mg tablets’
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.12354611500001104
pack_descriptionvarcharA description of the pack‘28 tablet’
units_per_packdoubleThe number of unit of measure contained in the pack28.0
unit_of_measurevarcharThe unit of measure of the drug pack (e.g., tablets, ml)‘tablet’
pack_pricerealThe cost of the drug pack1.42
price_per_unitrealThe cost of an individual unit of measure (pack price / units per pack)0.0507
is_guide_price_packbooleanIndicates if the pack price is the amount the NHS will reimburse the prescriberTRUE
is_breakablebooleanIndicates whether a pack can be broken into smaller quantities; for example, splitting a pack of 12 to use only 10.FALSE
is_non_divisiblebooleanIndicates whether the pack cannot be broken into smaller quantities; for example, an inhaler.FALSE
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-09-01 09:00:00.000000 UTC’
_execution_datevarcharThe transform_datetime formatted as yyyyMMddHHmmss. This column is provided only for backward compatibility.‘20230512143015’

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.

Columns NameData TypesData in V1Data in V2Core MappingComments
_mkb_versionvarchar✓✗
is_deletedboolean✗✓
emis_code_idbigint✓✓preparation_code_id
prep_pack_idbigint✓✓preparation_pack_id
supplier_namevarchar✓✓
emis_termvarchar✓✓term
dmd_productcode_idbigint✓✓dmd_product_code_id
pack_descriptionvarchar✓✓
units_per_packdouble✓✓
uomvarchar✓✓unit_of_measure
pack_pricereal✓✓
price_per_unitreal✓✓
is_guide_price_pack_flagboolean✓✓is_guide_price_pack
is_breakable_flagboolean✓✓is_breakable
non_divisible_flagboolean✓✓is_non_divisible
organisationvarchar✓✓
transform_datetimetimestamp(6) with time zone✗✓
_execution_datevarchar✗✓

Not used in this schema

The table below presents the flavour specific schema.

Column NameData Type
is_deletedboolean
preparation_code_idbigint
preparation_pack_idbigint
supplier_namevarchar
termvarchar
dmd_product_code_idbigint
pack_descriptionvarchar
units_per_packdouble
unit_of_measurevarchar
pack_pricereal
price_per_unitreal
is_guide_price_packboolean
is_breakableboolean
is_non_divisibleboolean
organisationvarchar
transform_datetimetimestamp(6) with time zone

Not used in this schema

Not used in this schema

Not used in this schema

Not used in this schema

Not used in this schema

Not used in this schema