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 milk formulas for Cow's Milk Protein Allergy (CMPA) per listed patients aged 0-4|
|Why it matters||Prescribing for Cow's Milk Protein Allergy is increasing. Milk formulas are expensive, and should be reviewed regularly to ensure that they are still required, particularly when Amino Acid Formula (AAF) products are used.|
|Implies cost savings||No|
|Next review due||2019-10-01|
|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 ("090401000BBJFA0", "090401000BBLDA0", "090401000BBLPA0", "090401000BBLUA0", "090401000BBNAA0", "090401000BBNBA0", "090401000BBNMA0", "090401000BBNQA0", "090401000BBQTA0", "090401000BBTGA0", "090401000BBTHA0", "090401000BBUXA0", "090401000BBVKA0", "090401000BBVNA0", "090402000BBNZA0", "090402000BBTQA0", "090900000BBKQA0", "090900000BBKRA0", "090900000BBKWA0") GROUP BY month, practice_id
SELECT CAST(month AS DATE) AS month, practice AS practice_id, SUM(male_0_4 + female_0_4) AS denominator FROM hscic.practice_statistics GROUP BY month, practice_id