Prescribing of Amino Acid Formula (AAF) and Extensively Hydrolysed Formula (EHF))

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 amino acid formula (AAF) products as proportion of AAF and extensively hydrolysed formula (EHF)
Why it matters These products are prescribed for a number of allergy indications, and are most commonly prescribed for Cow's Milk Protein Allergy (CMPA). Amino acid formula (AAF) products are almost three times more expensive than EHF and it is believed that only a small proportion of infants (thought to be around 10%) need to be started on AAF for CMPA in primary care.
Tags Nutrition, Standard
Implies cost savings No
Authored by richard.croker
Checked by brian.mackenna
Last reviewed 2019-03-25
Next review due 2019-10-01
Associated notebook https://github.com/ebmdatalab/jupyter-notebooks/blob/master/new_measures/New%20Measure%20-%20Cow's%20Milk%20Protein%20Allergy.ipynb
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 ("090401000BBJFA0", "090401000BBLDA0", "090401000BBNAA0", "090401000BBNBA0", "090401000BBNMA0", "090401000BBNQA0", "090401000BBQTA0", "090401000BBVKA0", "090401000BBVNA0", "090900000BBKWA0")
 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 ("090401000BBJFA0", "090401000BBLDA0", "090401000BBLPA0", "090401000BBLUA0", "090401000BBNAA0", "090401000BBNBA0", "090401000BBNMA0", "090401000BBNQA0", "090401000BBQTA0", "090401000BBTGA0", "090401000BBTHA0", "090401000BBUXA0", "090401000BBVKA0", "090401000BBVNA0", "090402000BBNZA0", "090402000BBTQA0", "090900000BBKQA0", "090900000BBKRA0", "090900000BBKWA0")
 GROUP BY month, practice_id