From fd6ab574f64e8fd99e87cc35dd9a69a70e18e7e4 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 09:48:26 +0100 Subject: [PATCH 1/9] Create uti_antibiotics_long_term.json --- .../uti_antibiotics_long_term.json | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 openprescribing/measures/definitions/uti_antibiotics_long_term.json diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json new file mode 100644 index 0000000000..102fd7eafb --- /dev/null +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -0,0 +1,41 @@ +{ + "name": "Antibiotic stewardship: long term antibiotics for UTIs", + "title": "Antibiotic stewardship: long term antibiotics for UTIs", + "description": "Number of prescriptions for long term prophylaxis (28 days or more) of urinary-tract infections per 1000 patients", + "numerator_short": "Quantity of 28 days or more", + "denominator_short": "1000 patients", + "y_label": "Items of antibiotics commonly used for UTI prophylaxis prescribed as 28 days or more", + "why_it_matters": [ + "" + + ], + "tags": [ + "antimicrobial", + "core", + "infections", + "nice" + ], + "url": null, + "is_percentage": true, + "is_cost_based": false, + "low_is_good": true, + "numerator_type": "custom", + "numerator_columns": [ + "SUM(items) AS numerator" + ], + "numerator_from": "{hscic}.raw_prescribing_normalised", + "numerator_where": [ + "(bnf_code LIKE '0501080W0%AD' AND quantity_per_item >=28) OR --Trimethoprim 100mg tablets (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AA' AND quantity_per_item >=28) OR --Nitrofurantoin 50mg capsules (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AD' AND quantity_per_item >=28) --Nitrofurantoin 50mg tablets (brands and generic)" + ], + "denominator_type": "list_size", + "no_analyse_url": true, + "authored_by": "richard.croker@phc.ox.ac.uk", + "checked_by": "", + "date_reviewed": "2024-09-02", + "next_review": "", + "measure_complexity": "low", + "measure_type": "bnf_code", + "radar_exclude": false + } \ No newline at end of file From 86f5d278d138240130c9c32b7d1df70f511f222c Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 09:54:16 +0100 Subject: [PATCH 2/9] Update uti_antibiotics_long_term.json replace "is_percentage" --- .../measures/definitions/uti_antibiotics_long_term.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 102fd7eafb..c33e7d9a92 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -7,8 +7,7 @@ "y_label": "Items of antibiotics commonly used for UTI prophylaxis prescribed as 28 days or more", "why_it_matters": [ "" - - ], + ], "tags": [ "antimicrobial", "core", @@ -16,7 +15,7 @@ "nice" ], "url": null, - "is_percentage": true, + "is_percentage": false, "is_cost_based": false, "low_is_good": true, "numerator_type": "custom", From c69da59357b6c95f7ea6fe54b1989a526973863a Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:07:24 +0100 Subject: [PATCH 3/9] Update uti_antibiotics_long_term.json try fixing issues --- .../uti_antibiotics_long_term.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index c33e7d9a92..1f117d3656 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -1,12 +1,12 @@ { - "name": "Antibiotic stewardship: long term antibiotics for UTIs", - "title": "Antibiotic stewardship: long term antibiotics for UTIs", - "description": "Number of prescriptions for long term prophylaxis (28 days or more) of urinary-tract infections per 1000 patients", - "numerator_short": "Quantity of 28 days or more", - "denominator_short": "1000 patients", - "y_label": "Items of antibiotics commonly used for UTI prophylaxis prescribed as 28 days or more", + "name": "Antibiotic stewardship", + "title": "Antibiotic stewardship", + "description": "urinary-tract infection", + "numerator_short": "Antibiotic items", + "denominator_short": "Antibiotic items", + "y_label": "1000 patients", "why_it_matters": [ - "" + "tbc" ], "tags": [ "antimicrobial", @@ -24,15 +24,15 @@ ], "numerator_from": "{hscic}.raw_prescribing_normalised", "numerator_where": [ - "(bnf_code LIKE '0501080W0%AD' AND quantity_per_item >=28) OR --Trimethoprim 100mg tablets (brands and generic)\n", - "(bnf_code LIKE '0501130R0%AA' AND quantity_per_item >=28) OR --Nitrofurantoin 50mg capsules (brands and generic)\n", - "(bnf_code LIKE '0501130R0%AD' AND quantity_per_item >=28) --Nitrofurantoin 50mg tablets (brands and generic)" + "(bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27) OR --Trimethoprim 100mg tablets (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AA' AND quantity_per_item >27) OR --Nitrofurantoin 50mg capsules (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AD' AND quantity_per_item >27) --Nitrofurantoin 50mg tablets (brands and generic)\n" ], "denominator_type": "list_size", "no_analyse_url": true, "authored_by": "richard.croker@phc.ox.ac.uk", "checked_by": "", - "date_reviewed": "2024-09-02", + "date_reviewed": "2024-02-12", "next_review": "", "measure_complexity": "low", "measure_type": "bnf_code", From b8bd539df9a8634d5e2faa57e2fcda5e1526c36f Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:11:27 +0100 Subject: [PATCH 4/9] Update uti_antibiotics_long_term.json test version to find bug --- .../measures/definitions/uti_antibiotics_long_term.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 1f117d3656..8792a800f8 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -24,9 +24,7 @@ ], "numerator_from": "{hscic}.raw_prescribing_normalised", "numerator_where": [ - "(bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27) OR --Trimethoprim 100mg tablets (brands and generic)\n", - "(bnf_code LIKE '0501130R0%AA' AND quantity_per_item >27) OR --Nitrofurantoin 50mg capsules (brands and generic)\n", - "(bnf_code LIKE '0501130R0%AD' AND quantity_per_item >27) --Nitrofurantoin 50mg tablets (brands and generic)\n" + "bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27--Trimethoprim 100mg tablets (brands and generic)" ], "denominator_type": "list_size", "no_analyse_url": true, From dd1e3fb3f0778366db5668faa702a8e876d73f97 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:14:33 +0100 Subject: [PATCH 5/9] 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": "", From bf065cb049fe7d3f39b70761817581a108e951f7 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:54:32 +0100 Subject: [PATCH 6/9] Revert "Update uti_antibiotics_long_term.json" This reverts commit dd1e3fb3f0778366db5668faa702a8e876d73f97. --- .../definitions/uti_antibiotics_long_term.json | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 31213a5d80..8792a800f8 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -26,19 +26,7 @@ "numerator_where": [ "bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27--Trimethoprim 100mg tablets (brands and generic)" ], - "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)" - ], + "denominator_type": "list_size", "no_analyse_url": true, "authored_by": "richard.croker@phc.ox.ac.uk", "checked_by": "", From 11160bcd23f65e1a0dc8bdb825664bf72a99e461 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 10:55:41 +0100 Subject: [PATCH 7/9] try with new view --- .../uti_antibiotics_long_term.json | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 8792a800f8..395a8881f3 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -1,13 +1,14 @@ { - "name": "Antibiotic stewardship", - "title": "Antibiotic stewardship", - "description": "urinary-tract infection", - "numerator_short": "Antibiotic items", - "denominator_short": "Antibiotic items", - "y_label": "1000 patients", + "name": "Antibiotic stewardship: long term antibiotics for UTIs", + "title": "Antibiotic stewardship: long term antibiotics for UTIs", + "description": "Number of prescriptions for long term prophylaxis (28 days or more) of urinary-tract infections per 1000 patients", + "numerator_short": "Quantity of 28 days or more", + "denominator_short": "1000 patients", + "y_label": "Items of antibiotics commonly used for UTI prophylaxis prescribed as 28 days or more", "why_it_matters": [ - "tbc" - ], + "" + + ], "tags": [ "antimicrobial", "core", @@ -15,22 +16,24 @@ "nice" ], "url": null, - "is_percentage": false, + "is_percentage": true, "is_cost_based": false, "low_is_good": true, "numerator_type": "custom", "numerator_columns": [ "SUM(items) AS numerator" ], - "numerator_from": "{hscic}.raw_prescribing_normalised", + "numerator_from": "{hscic}.raw_prescribing_normalised_date", "numerator_where": [ - "bnf_code LIKE '0501080W0%AD' AND quantity_per_item >27--Trimethoprim 100mg tablets (brands and generic)" + "(bnf_code LIKE '0501080W0%AD' AND quantity_per_item >=28) OR --Trimethoprim 100mg tablets (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AA' AND quantity_per_item >=28) OR --Nitrofurantoin 50mg capsules (brands and generic)\n", + "(bnf_code LIKE '0501130R0%AD' AND quantity_per_item >=28) --Nitrofurantoin 50mg tablets (brands and generic)" ], "denominator_type": "list_size", "no_analyse_url": true, "authored_by": "richard.croker@phc.ox.ac.uk", "checked_by": "", - "date_reviewed": "2024-02-12", + "date_reviewed": "2024-09-02", "next_review": "", "measure_complexity": "low", "measure_type": "bnf_code", From abf29579979412791d0cfad20e44e0bc2de6c235 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 11:26:14 +0100 Subject: [PATCH 8/9] change is_percentage --- .../measures/definitions/uti_antibiotics_long_term.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openprescribing/measures/definitions/uti_antibiotics_long_term.json b/openprescribing/measures/definitions/uti_antibiotics_long_term.json index 395a8881f3..cee704f32c 100644 --- a/openprescribing/measures/definitions/uti_antibiotics_long_term.json +++ b/openprescribing/measures/definitions/uti_antibiotics_long_term.json @@ -16,7 +16,7 @@ "nice" ], "url": null, - "is_percentage": true, + "is_percentage": false, "is_cost_based": false, "low_is_good": true, "numerator_type": "custom", From cfbb4258429c3abe34ef9db64ac227fed990fd7b Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Sep 2024 12:04:55 +0100 Subject: [PATCH 9/9] Create acneabx.json --- .../measures/definitions/acneabx.json | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 openprescribing/measures/definitions/acneabx.json diff --git a/openprescribing/measures/definitions/acneabx.json b/openprescribing/measures/definitions/acneabx.json new file mode 100644 index 0000000000..820b519763 --- /dev/null +++ b/openprescribing/measures/definitions/acneabx.json @@ -0,0 +1,35 @@ +{ + "name": "Prescribing of oxytetracycline and lymecycline", + "title": "Oxytetracycline and lymecycline items per 1000 patients", + "description": "Oxytetracycline and lymecycline per 1000 patients", + "numerator_short": "Oxytetracycline and lymecycline items", + "denominator_short": "1000 patients", + "y_label": "Oxytetracycline and lymecycline per 1000 patients", + "why_it_matters": [ + "" + ], + "tags": [ + "antimicrobial", + "cost", + "lowpriority", + "nice", + "safety" + ], + "url": null, + "is_percentage": false, + "is_cost_based": false, + "low_is_good": true, + "numerator_type": "bnf_cost", + "numerator_bnf_codes_filter": [ + "0501030L0%AB # Lymecycline 408mg capsules (brands and generics)", + "0501030T0%AJ # Oxytetracycline 250mg tablets (brands and generics)" + ], + "denominator_type": "list_size", + "authored_by": "richard.croker@phc.ox.ac.uk", + "checked_by": "", + "date_reviewed": "2024-09-02", + "next_review": "", + "measure_complexity": "low", + "measure_type": "bnf_code", + "radar_exclude": false +} \ No newline at end of file