Definition
Purpose
Section titled “Purpose”The mkb_version model records the active MKB (Medical Knowledge Base) version
per organisation and the last execution timestamp for the mapping data.
Information
Section titled “Information”This lookup table maintains the version information for the medical knowledge base used within each organisation. It enables tracking of which MKB version was active during data processing and supports version-aware querying of mapped codes and terminology.
- mkb_version (PK): The unique MKB version identifier
Examples
Section titled “Examples”Get all MKB versions for an organisation
SELECT *FROM hive.explorer_recruit_anon.mkb_versionLIMIT 100;Find the latest MKB version
SELECT mkb_version, organisation, _execution_dateFROM hive.explorer_recruit_anon.mkb_versionORDER BY _execution_date DESCLIMIT 10;Check which organisations have a specific MKB version
SELECT organisation, mkb_versionFROM hive.explorer_recruit_anon.mkb_versionWHERE mkb_version = '10.1'LIMIT 100;