From dd1e3fb3f0778366db5668faa702a8e876d73f97 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:14:33 +0100 Subject: [PATCH] Update uti_antibiotics_long_term.json change denominator type --- .../definitions/uti_antibiotics_long_term.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 8792a800f8..31213a5d80 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -26,7 +26,19 @@ "numerator_where": [ "bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27--Trimethoprim 100mg tablets (brands and generic)" ], - "denominator_type": "list_size", + "denominator_type": "custom", + "denominator_columns": [ + "SUM(items) AS denominator" + ], + "denominator_from": "{hscic}.raw_prescribing_normalised", + "denominator_where": [ + "bnf_code LIKE '0501015P0%AB' OR # Pivmecillinam HCl_Tab 200mg (brands and generic) \n", + "bnf_code LIKE '0501080W0%AE' OR # Trimethoprim_Tab 200mg (brands and generic) \n", + "bnf_code LIKE '0501130R0%AA' OR # Nitrofurantoin_Cap 50mg (brands and generic) \n", + "bnf_code LIKE '0501130R0%AD' OR # Nitrofurantoin_Tab 50mg (brands and generic) \n", + "bnf_code LIKE '0501130R0%AG' OR # Nitrofurantoin_Cap 100mg M/R (brands and generic) \n", + "bnf_code LIKE '0501070AE%AD' # Fosfomycin_Sachet 3g (brands and generic)" + ], "no_analyse_url": true, "authored_by": "richard.croker@phc.ox.ac.uk", "checked_by": "",