Items which should not routinely be prescribed in primary care - all items

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 cost per 1,000 registered patients for all NHS England items which should not routinely be prescribed in primary care
Why it matters In August 2023 NHS England updated guidance on a number of items which should not be routinely prescribed in primary care. This is the combined cost per 1000 patients for all of these measures.
Tags Standard, Cost Saving
Implies cost savings No
Authored by richard.croker
Checked by victoria.speed
Last reviewed 2023-11-20
Next review due 2025-11-20
History View change history on GitHub →

Numerator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(numerator) AS numerator
 FROM measures.vw__practice_data_all_low_priority
 GROUP BY month, practice_id

Denominator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(denominator)/24 AS denominator
 FROM measures.vw__practice_data_all_low_priority
 GROUP BY month, practice_id
Feedback