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 pregabalin (total mg) per 1000 patients |
---|---|
Why it matters | Pregabalin is a relatively new drug, which is increasingly used in neuropathic and other types of pain. Also its costs have reduced recently, its use is rising increasingly rapidly in the NHS. There are also concerns about the potential for abuse. This measure shows the total amount in miligrams of pregabalin prescribed. There is an additional measure showing numbers of prescriptions on our measures page. |
Tags | Standard, Pain, Safety |
Implies cost savings | No |
History | View change history on GitHub → |
SELECT
CAST(month AS DATE) AS month,
practice AS practice_id,
SUM(lyrica_mg) AS numerator
FROM measures.pregabalin_total_mg
GROUP BY month, practice_id
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