PREVIEW: Fibrates and nicotinic acid

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 of prescriptions for fibrates and nicotinic acid per 1000 registered patients
Why it matters NICE guideline NG238 (cardiovascular disease: risk assessment and reduction, including lipid modification) recommends that fibrates and nicotinic acid should not be routinely offered to patients for the primary or secondary prevention of cardiovascular disease (CVD). This guidance does not apply to people with familial hypercholesterolaemia, which is covered by separate NICE guidance.
Tags
Implies cost savings Yes
History View change history on GitHub →

Numerator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(actual_cost) AS numerator
 FROM hscic.normalised_prescribing
 WHERE bnf_code IN ("021200010AAAAAA", "021200010BBAAAA", "0212000A0AAAAAA", "0212000A0BBAAAA", "0212000D0AAAAAA", "0212000D0AAABAB", "0212000D0AAACAC", "0212000D0BBAAAA", "0212000D0BBABAB", "0212000D0BFAAAB", "0212000D0BGAAAB", "0212000P0AAABAB", "0212000P0AAACAC", "0212000P0AAADAD", "0212000P0AAAEAE", "0212000P0AAAFAF", "0212000P0BBABAB", "0212000P0BBACAC", "0212000P0BBADAD", "0212000P0BCAAAE", "0212000P0BDAAAF", "0212000Q0AAAAAA", "0212000Q0AAABAB", "0212000Q0BBAAAA", "0212000Q0BBABAB", "0212000U0AAABAB", "0212000U0AAAVAV")
 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