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||Cost of oxycodone and naloxone combination per 1000 patients|
|Why it matters||Oxycodone is an opioid analgesic used to treat severe pain. Naloxone is added to reduce constipation. The combination product is expensive, and the benefit is unclear.|
|Tags||Cost Saving, NHS England Investment and Impact Fund, NHS England Low Priority, Opioids, Pain|
|Implies cost savings||Yes|
|History||View change history on GitHub →|
SELECT CAST(month AS DATE) AS month, practice AS practice_id, SUM(actual_cost) AS numerator FROM hscic.normalised_prescribing WHERE bnf_code IN ("0407020AFAAAAAA", "0407020AFAAABAB", "0407020AFAAACAC", "0407020AFAAADAD", "0407020AFAAAEAE", "0407020AFBBAAAA", "0407020AFBBABAB", "0407020AFBBACAC", "0407020AFBBADAD", "0407020AFBCAAAA", "0407020AFBCABAB", "0407020AFBCACAD", "0407020AFBCADAC", "0407020AFBDAAAC", "0407020AFBDABAA", "0407020AFBDACAB", "0407020AFBDADAD") 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