Prescribing of nimodipine

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 Quantity (number of tablets) of nimodipine per 1000 patients
Why it matters The only indication in the BNF for the prescription of nimodipine is in the prevention of ischaemic neurological defects following aneurysmal subarachnoid haemorrhage. The course length is 21 days but most patients will complete the course while admitted or be discharged with the remainder. Extension of this course in primary care may be due to error or miscommunication.
Tags Central Nervous system, Mentioned in Papers
Implies cost savings No
Authored by sebastian.bacon
Checked by richard.croker
Last reviewed 2019-06-27
Next review due 2020-06-01
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 ("0206020M0AAABAB", "0206020M0BBABAB")
 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