From d2a8e87fce89f369bd516135290feafbee60eafa Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Fri, 18 Mar 2022 15:15:59 +0000 Subject: [PATCH 1/4] Create high_quantity_oramorph --- .../high_quantity_oramorph | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 openprescribing/measure_definitions/high_quantity_oramorph diff --git a/openprescribing/measure_definitions/high_quantity_oramorph b/openprescribing/measure_definitions/high_quantity_oramorph new file mode 100644 index 0000000000..c2155d8618 --- /dev/null +++ b/openprescribing/measure_definitions/high_quantity_oramorph @@ -0,0 +1,44 @@ +{ + "name": "High Quantity prescribing of morphine sulphate oral solution", + "title": [ + "High Quantity prescribing of morphine sulphate oral solution" + ], + "description": [ + "Total proportion of morphine sulphate oral solution with a quantity of >300ml" + ], + "numerator_short": "Morphine sulphate oral solution prescriptions with quantity of >300ml", + "denominator_short": "Morphine sulphate oral solution prescriptions", + "why_it_matters": [ + "Tbc" + ], + "tags": [ + "core", + "safety" + ], + "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": [ + "quantity_per_item>300", + "AND", + "bnf_code LIKE '0407020Q0%CN' #morphine sulphate oral solution 10mg/5ml" + ], + "numerator_is_list_of_bnf_codes": false, + "denominator_type": "custom", + "denominator_columns": [ + "SUM(items) AS denominator" + ], + "denominator_from": "{hscic}.raw_prescribing_normalised", + "denominator_where": [ + "bnf_code LIKE '0407020Q0%CN' #morphine sulphate oral solution 10mg/5ml" + ], + "measure_complexity": [ + "low" + ] +} From efddde12b8e1ddf73c92689967896215a2da86e6 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Fri, 18 Mar 2022 15:17:22 +0000 Subject: [PATCH 2/4] Rename high_quantity_oramorph to high_quantity_oramorph.json --- .../{high_quantity_oramorph => high_quantity_oramorph.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openprescribing/measure_definitions/{high_quantity_oramorph => high_quantity_oramorph.json} (100%) diff --git a/openprescribing/measure_definitions/high_quantity_oramorph b/openprescribing/measure_definitions/high_quantity_oramorph.json similarity index 100% rename from openprescribing/measure_definitions/high_quantity_oramorph rename to openprescribing/measure_definitions/high_quantity_oramorph.json From 0a9057dd89654f7f4c345d6e992e80667ff353df Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 21 Mar 2022 19:05:00 +0000 Subject: [PATCH 3/4] Update high_quantity_oramorph.json change to quantity to see difference --- .../measure_definitions/high_quantity_oramorph.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openprescribing/measure_definitions/high_quantity_oramorph.json b/openprescribing/measure_definitions/high_quantity_oramorph.json index c2155d8618..05f983451f 100644 --- a/openprescribing/measure_definitions/high_quantity_oramorph.json +++ b/openprescribing/measure_definitions/high_quantity_oramorph.json @@ -1,13 +1,13 @@ { - "name": "High Quantity prescribing of morphine sulphate oral solution", + "name": "High quantity prescribing of morphine sulphate oral solution", "title": [ - "High Quantity prescribing of morphine sulphate oral solution" + "High quantity prescribing of morphine sulphate oral solution" ], "description": [ "Total proportion of morphine sulphate oral solution with a quantity of >300ml" ], - "numerator_short": "Morphine sulphate oral solution prescriptions with quantity of >300ml", - "denominator_short": "Morphine sulphate oral solution prescriptions", + "numerator_short": "Morphine sulphate oral solution quantity with quantity of >300ml", + "denominator_short": "Morphine sulphate oral solution quantity", "why_it_matters": [ "Tbc" ], @@ -21,7 +21,7 @@ "low_is_good": true, "numerator_type": "custom", "numerator_columns": [ - "SUM(items) AS numerator" + "SUM(quantity) AS numerator" ], "numerator_from": "{hscic}.raw_prescribing_normalised", "numerator_where": [ @@ -32,7 +32,7 @@ "numerator_is_list_of_bnf_codes": false, "denominator_type": "custom", "denominator_columns": [ - "SUM(items) AS denominator" + "SUM(quantity) AS denominator" ], "denominator_from": "{hscic}.raw_prescribing_normalised", "denominator_where": [ From 1301e81b864c083caeb371ff2d2340b5121f3a76 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Tue, 22 Mar 2022 09:23:26 +0000 Subject: [PATCH 4/4] Update high_quantity_oramorph.json --- .../measure_definitions/high_quantity_oramorph.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openprescribing/measure_definitions/high_quantity_oramorph.json b/openprescribing/measure_definitions/high_quantity_oramorph.json index 05f983451f..a975508406 100644 --- a/openprescribing/measure_definitions/high_quantity_oramorph.json +++ b/openprescribing/measure_definitions/high_quantity_oramorph.json @@ -21,7 +21,7 @@ "low_is_good": true, "numerator_type": "custom", "numerator_columns": [ - "SUM(quantity) AS numerator" + "SUM(total_quantity) AS numerator" ], "numerator_from": "{hscic}.raw_prescribing_normalised", "numerator_where": [ @@ -32,7 +32,7 @@ "numerator_is_list_of_bnf_codes": false, "denominator_type": "custom", "denominator_columns": [ - "SUM(quantity) AS denominator" + "SUM(total_quantity) AS denominator" ], "denominator_from": "{hscic}.raw_prescribing_normalised", "denominator_where": [