Definition
DMD Preparation provides the mapping of EMIS preparation code ID for a medication to the NHS Dictionary of Medicines and Devices (dm+d) product code ID (which is also a SNOMED CT concept ID). Similar to the drug code model but primarily focusing on dm+d product codes.
Constraints and Notes
Section titled “Constraints and Notes”Soft deletion: Whenis_deletedis true, data fields may be nullified in upstream transformations and should be excluded from most analytical queries. Primary keys and foreign keys are preserved so deleted linked records can be identified
Examples
Section titled “Examples”Find codes from DMD product code
Section titled “Find codes from DMD product code”SELECT *FROM hive.explorer_open_safely.mkb_mapping_dmd_preparationWHERE dmd_product_code_id = 4205211000001100List of DMD drugs with price per unit under 1
Section titled “List of DMD drugs with price per unit under 1”SELECT term AS drug_name, dmd.dmd_product_code_id, dmd.preparation_code_id, price_per_unitFROM hive.explorer_open_safely.mkb_mapping_dmd_preparation AS dmdJOIN hive.explorer_open_safely.mkb_drug_pack AS dcON dc.dmd_product_code_id = dmd.dmd_product_code_idWHERE dc.is_deleted = FALSE AND price_per_unit < 1GROUP BY term, dmd.dmd_product_code_id, dmd.preparation_code_id, price_per_unit