Antibiotic stewardship: fluoroquinolone items per 1000 patients

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 Number of prescription items for systemic fluoroquinolones per 1000 patients
Why it matters The MHRA advise that due to the risk of disabling and potentially long-lasting or irreversible side effects, systemic fluoroquinolones must only be used in situations when other antibiotics, that are commonly recommended for the infection, are inappropriate.
Tags Antimicrobial Stewardship, Standard, Infections, Safety
Implies cost savings No
Authored by christopher.wood
Checked by victoria.speed
Last reviewed 2024-02-12
Next review due 2026-02-12
History View change history on GitHub →

Numerator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(items) AS numerator
 FROM hscic.normalised_prescribing
 WHERE bnf_code IN ("0501120L0AAAAAA", "0501120L0AAABAB", "0501120L0AAADAD", "0501120L0AAAFAF", "0501120L0AAAGAG", "0501120L0AAAJAJ", "0501120L0AAAUAU", "0501120L0AABFBF", "0501120L0AABGBG", "0501120L0AABQBQ", "0501120L0BBAAAA", "0501120L0BBABAF", "0501120L0BBADAJ", "0501120L0BBAJBG", "0501120P0AAAAAA", "0501120P0AAABAB", "0501120P0BBAAAA", "0501120P0BBACAB", "0501120Q0AAAAAA", "0501120Q0BBAAAA", "0501120X0AAAAAA", "0501120X0AAABAB", "0501120X0AAADAD", "0501120X0AAAFAF", "0501120Y0AAAAAA", "0501120Y0BBAAAA")
 GROUP BY month, practice_id

Denominator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(total_list_size / 1000.0) AS denominator
 FROM hscic.practice_statistics
 GROUP BY month, practice_id
Feedback