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 gluten-free products per 1000 patients|
|Why it matters||Gluten-free products are available on prescription for patients who have a biopsy-confirmed diagnosis of coeliac disease. These products are also now available to purchase, e.g. from supermarkets, and many NHS areas are considering stopping or restricting their supply on prescribing. Following a consultation, the Department for Health has recommended that a restricted range of products remain available on prescription. Please note this list now excludes low-protein products which are also catagorised by dm+d and NHSBSA as being gluten-free, as these products have different indications for ACBS use.|
|Tags||Standard, Cost Saving, Nutrition|
|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_standard WHERE ( bnf_code LIKE '0904010AU%' OR --Gluten Free/Wheat Free Snacks bnf_code LIKE '0904010AC%' OR --Gluten Free/Wheat Free Cereals bnf_code LIKE '0904010AD%' OR --Gluten Free/Wheat Free Cakes/Pastries bnf_code LIKE '0904010H0%' OR --Gluten Free Bread bnf_code LIKE '0904010Q0%' OR --Gluten Free Pasta bnf_code LIKE '0904010A0%' OR --Gluten Free/Wheat Free Biscuits bnf_code LIKE '0904010AB%' OR --Gluten Free/Wheat Free Cooking Aids bnf_code LIKE '090401080%' OR --Gluten Free/Wheat Free Pasta bnf_code LIKE '0904010U0%' OR --Gluten Free/Wheat Free Bread bnf_code LIKE '090401070%' OR --Gluten Free/Wheat Free Grains/Flours bnf_code LIKE '0904010AA%' OR --Gluten Free/Wheat Free Mixes bnf_code LIKE '090401030%' OR --Gluten Free Mixes bnf_code LIKE '0904010J0%' OR --Gluten Free Grains/Flours bnf_code LIKE '0904010AG%' OR --Gluten Free/Wheat Free Meals bnf_code LIKE '0904010L0%' OR --Gluten Free Cakes/Pastries bnf_code LIKE '0904010I0%' --Gluten Free Biscuits ) 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