Levetiracetam prescribed as Keppra

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 quantity of Keppra tablets as a proportion of total quantity of levetiracetam tablets.
Why it matters Keppra is an expensive branded form of the chemical levetiracetam. The MHRA's guidance is that it is usually unnecessary to maintain patients on a specific manufacturer's levetiracetam product unless there are specific concerns such as patient anxiety, or risk of confusion or dosing errors.
Tags Central Nervous 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 ("0408010A0BBAAAA", "0408010A0BBABAB", "0408010A0BBACAC", "0408010A0BBAEAI")
 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 ("0408010A0AAAAAA", "0408010A0AAABAB", "0408010A0AAACAC", "0408010A0AAAIAI", "0408010A0BBAAAA", "0408010A0BBABAB", "0408010A0BBACAC", "0408010A0BBAEAI", "0408010A0BCAAAC", "0408010A0BCACAB")
 GROUP BY month, practice_id