High-cost Angiotensin-II Receptor Blockers (ARBs)

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 ARBs as a percentage of prescribing of all ARBs. See the full list of BNF codes used in this measure.
Why it matters Various angiotensin-II receptor blockers (ARBs) are available. A number of them are now available generically, and are of low cost. NICE guidance for treating high blood pressure recommends that the low-cost versions should be used.
Tags Cardiovascular system, Standard, Cost Saving, NICE
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 ("0205052ADAAAAAA", "0205052ADAAABAB", "0205052ADAAACAC", "0205052ADBBAAAA", "0205052ADBBABAB", "0205052ADBBACAC", "0205052B0BBAAAA", "0205052B0BBABAB", "0205052B0BBACAC", "0205052C0BBAAAA", "0205052C0BBABAB", "0205052C0BBACAC", "0205052C0BBADAD", "0205052C0BBAEAH", "0205052I0BBAAAA", "0205052I0BBABAB", "0205052I0BBACAC", "0205052N0BBAAAA", "0205052N0BBABAB", "0205052N0BBACAD", "0205052N0BBADAH", "0205052Q0BBAAAA", "0205052Q0BBABAB", "0205052Q0BBACAC", "0205052Q0BCACAC", "0205052V0BBAAAA", "0205052V0BBABAB", "0205052V0BBACAC", "0205052V0BBAEAF", "0205052W0AAAAAA", "0205052W0AAABAB", "0205052W0AAACAC", "0205052W0BBAAAA", "0205052W0BBABAB", "0205052W0BBACAC")
 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 ("0205052ADAAAAAA", "0205052ADAAABAB", "0205052ADAAACAC", "0205052ADBBAAAA", "0205052ADBBABAB", "0205052ADBBACAC", "0205052B0AAAAAA", "0205052B0AAABAB", "0205052B0AAACAC", "0205052B0BBAAAA", "0205052B0BBABAB", "0205052B0BBACAC", "0205052C0AAAAAA", "0205052C0AAABAB", "0205052C0AAACAC", "0205052C0AAADAD", "0205052C0AAAHAH", "0205052C0BBAAAA", "0205052C0BBABAB", "0205052C0BBACAC", "0205052C0BBADAD", "0205052C0BBAEAH", "0205052I0AAAAAA", "0205052I0AAABAB", "0205052I0AAACAC", "0205052I0BBAAAA", "0205052I0BBABAB", "0205052I0BBACAC", "0205052N0AAAAAA", "0205052N0AAABAB", "0205052N0AAADAD", "0205052N0AAAHAH", "0205052N0BBAAAA", "0205052N0BBABAB", "0205052N0BBACAD", "0205052N0BBADAH", "0205052Q0AAAAAA", "0205052Q0AAABAB", "0205052Q0AAACAC", "0205052Q0BBAAAA", "0205052Q0BBABAB", "0205052Q0BBACAC", "0205052Q0BCACAC", "0205052V0AAAAAA", "0205052V0AAABAB", "0205052V0AAACAC", "0205052V0AAADAD", "0205052V0AAAFAF", "0205052V0AAAHAH", "0205052V0AAAIAI", "0205052V0BBAAAA", "0205052V0BBABAB", "0205052V0BBACAC", "0205052V0BBAEAF", "0205052W0AAAAAA", "0205052W0AAABAB", "0205052W0AAACAC", "0205052W0BBAAAA", "0205052W0BBABAB", "0205052W0BBACAC")
 GROUP BY month, practice_id