Below are the database queries which are used to create this measure. These are run against a copy of the BSA prescribing data which we store in Google BigQuery. We're working on making our BigQuery tables publicly available at which point it will be possible to run and modify these queries yourself. But even where code and database queries are not directly useable by others we believe it is always preferable to make them public.
Description | Prescribing of vitamin B complex (normal and strong tablets) as a percentage of prescribing of vitamin B and thiamine tablets |
---|---|
Why it matters | One of the most common reasons why vitamin B has been prescribed is to prevent Wernicke's encephalopathy in chronic alcohol disorders. However, a 2019 position statment from the Regional Medicines Optimisation Committee (RMOC) provided the following guidance:
Please see our other measure: Vitamin B per 1000 patients. |
Tags | Efficacy, NICE, Cost Saving |
Implies cost savings | No |
Authored by | richard.croker |
Checked by | andrew.brown |
Last reviewed | 2024-02-12 |
Next review due | 2026-02-12 |
History | View change history on GitHub → |
SELECT
CAST(month AS DATE) AS month,
practice AS practice_id,
SUM(items) AS numerator
FROM hscic.normalised_prescribing
WHERE bnf_code IN ("0906027G0AAAAAA", "0906027G0AAABAB", "0906027G0BLABAB", "0906027G0BMAAAA", "0906027G0BMABAB")
GROUP BY month, practice_id
SELECT
CAST(month AS DATE) AS month,
practice AS practice_id,
SUM(items) AS denominator
FROM hscic.normalised_prescribing
WHERE bnf_code IN ("0906026M0AAAFAF", "0906026M0AAAGAG", "0906026M0BBAKAG", "0906026M0BIAAAG", "0906026M0BIABAF", "0906026M0BJAAAG", "0906026M0BJABAF", "0906026M0BKAAAG", "0906026M0BKABAF", "0906026M0BLABAG", "0906027G0AAAAAA", "0906027G0AAABAB", "0906027G0BLABAB", "0906027G0BMAAAA", "0906027G0BMABAB")
GROUP BY month, practice_id