High-cost Angiotensin-Converting Enzyme (ACE) inhibitors

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 high-cost ACE inhibitors as a percentage of prescribing of all ACE inhibitors. See the full list of BNF codes used in this measure.
Why it matters All commonly-used ACE inhibitors are now available generically and are low-cost. There is no difference between these generic versions and the more expensive brands, and so it’s important that practices prescribe the most cost-effective version possible.
Tags Cardiovascular system, Standard, Cost Saving, Generic prescribing
Implies cost savings Yes
History View change history on GitHub →

Numerator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(quantity) AS numerator
 FROM hscic.normalised_prescribing
 WHERE bnf_code IN ("0205051AAAAABAB", "0205051AAAAACAC", "0205051E0AAAEAE", "0205051F0AADUDU", "0205051F0BCABAE", "0205051I0BBAAAA", "0205051I0BBABAB", "0205051I0BBACAC", "0205051I0BBADAD", "0205051L0BBABAB", "0205051L0BBACAC", "0205051L0BBADAD", "0205051M0BBAAAA", "0205051M0BBABAB", "0205051M0BBACAF", "0205051Q0BBACAC", "0205051Q0BBADAD", "0205051R0BBADAD", "0205051R0BBAFAK", "0205051R0BBAGAL", "0205051R0BBAHAM", "0205051R0BBAIAN", "0205051W0AAAAAA", "0205051W0AAABAB", "0205051W0AAACAC", "0205051W0BBAAAA", "0205051W0BBABAB", "0205051W0BBACAC", "0205051Y0AAAAAA", "0205051Y0AAABAB", "0205051Y0AAACAC", "0205051Y0BBAAAA", "0205051Y0BBABAB", "0205051Y0BBACAC")
 GROUP BY month, practice_id

Denominator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(quantity) AS denominator
 FROM hscic.normalised_prescribing
 WHERE bnf_code IN ("0205051AAAAABAB", "0205051AAAAACAC", "0205051E0AAAEAE", "0205051F0AAADAD", "0205051F0AAAEAE", "0205051F0AAAFAF", "0205051F0AADUDU", "0205051F0BCABAE", "0205051I0AAAAAA", "0205051I0AAABAB", "0205051I0AAACAC", "0205051I0AAADAD", "0205051I0BBAAAA", "0205051I0BBABAB", "0205051I0BBACAC", "0205051I0BBADAD", "0205051J0AAAAAA", "0205051J0AAABAB", "0205051L0AAAAAA", "0205051L0AAABAB", "0205051L0AAACAC", "0205051L0AAADAD", "0205051L0BBABAB", "0205051L0BBACAC", "0205051L0BBADAD", "0205051M0AAAAAA", "0205051M0AAABAB", "0205051M0AAAFAF", "0205051M0BBAAAA", "0205051M0BBABAB", "0205051M0BBACAF", "0205051Q0AAAAAA", "0205051Q0AAABAB", "0205051Q0AAACAC", "0205051Q0AAADAD", "0205051Q0BBAAAA", "0205051Q0BBABAB", "0205051Q0BBACAC", "0205051Q0BBADAD", "0205051R0AAAAAA", "0205051R0AAABAB", "0205051R0AAACAC", "0205051R0AAADAD", "0205051R0AAAKAK", "0205051R0AAALAL", "0205051R0AAAMAM", "0205051R0AAANAN", "0205051R0BBADAD", "0205051R0BBAFAK", "0205051R0BBAGAL", "0205051R0BBAHAM", "0205051R0BBAIAN", "0205051U0AAAAAA", "0205051U0AAABAB", "0205051U0AAACAC", "0205051U0AAAFAF", "0205051W0AAAAAA", "0205051W0AAABAB", "0205051W0AAACAC", "0205051W0BBAAAA", "0205051W0BBABAB", "0205051W0BBACAC", "0205051Y0AAAAAA", "0205051Y0AAABAB", "0205051Y0AAACAC", "0205051Y0BBAAAA", "0205051Y0BBABAB", "0205051Y0BBACAC")
 GROUP BY month, practice_id