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 | Total items of generic diltiazem modified-release preparations, as a proportion of total items of all dilitiazem modified-release items (>60mg) |
---|---|
Why it matters | The BNF states: Different versions of modified-release preparations containing more than 60 mg diltiazem hydrochloride may not have the same clinical effect. To avoid confusion between these different formulations of diltiazem, prescribers should specify the brand to be dispensed. You can read more in our detailed paper on unsafe prescribing of diltiazem. |
Tags | Cardiovascular system, Standard, Generic prescribing, Safety |
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 ("0206020C0AAACAC", "0206020C0AAAEAE", "0206020C0AAASAS", "0206020C0AAATAT", "0206020C0AAAUAU", "0206020C0AAAVAV", "0206020C0AAAWAW", "0206020C0AAAXAX", "0206020C0AABABA")
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 ("0206020C0AAACAC", "0206020C0AAAEAE", "0206020C0AAASAS", "0206020C0AAATAT", "0206020C0AAAUAU", "0206020C0AAAVAV", "0206020C0AAAWAW", "0206020C0AAAXAX", "0206020C0AABABA", "0206020C0BBABAC", "0206020C0BBACAS", "0206020C0BBADAE", "0206020C0BBAEAX", "0206020C0BCACAC", "0206020C0BFAAAS", "0206020C0BFACAT", "0206020C0BFADAU", "0206020C0BFAEAV", "0206020C0BFAFAE", "0206020C0BFAGAU", "0206020C0BFAHAV", "0206020C0BFAIAW", "0206020C0BFAJAX", "0206020C0BHABAT", "0206020C0BHACAU", "0206020C0BHADAU", "0206020C0BHAEAV", "0206020C0BHAFAW", "0206020C0BIAAAU", "0206020C0BIABAV", "0206020C0BIACAW", "0206020C0BIADAE", "0206020C0BJAAAT", "0206020C0BJABAU", "0206020C0BJACAV", "0206020C0BJADAW", "0206020C0BJAEAE", "0206020C0BMAAAE", "0206020C0BMABAU", "0206020C0BMACAV", "0206020C0BMADAW", "0206020C0BNAAAU", "0206020C0BNABAV", "0206020C0BNACAW", "0206020C0BNADAE", "0206020C0BNAEBA", "0206020C0BPAAAT", "0206020C0BPABAU", "0206020C0BVAAAV", "0206020C0BVABAW", "0206020C0BVACAE", "0206020C0BYABAT", "0206020C0BYACAU", "0206020C0BZACAV")
GROUP BY month, practice_id