From f0b98332803cf8fa1a44ab12e92068a33fa35ea0 Mon Sep 17 00:00:00 2001 From: Richard Croker Date: Mon, 2 Dec 2024 19:53:40 +0000 Subject: [PATCH] Update saba.json rename adj.month to date to fix ambiguous --- openprescribing/measures/definitions/saba.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openprescribing/measures/definitions/saba.json b/openprescribing/measures/definitions/saba.json index d14890acb..2e4e7c3cf 100644 --- a/openprescribing/measures/definitions/saba.json +++ b/openprescribing/measures/definitions/saba.json @@ -32,7 +32,7 @@ "{hscic}.normalised_prescribing p ", "INNER JOIN {dmd}.vmp vmp ON CONCAT(SUBSTR(p.bnf_code,0,9),'AA', SUBSTR(p.bnf_code,-2), SUBSTR(p.bnf_code,-2)) = vmp.bnf_code -- joins prescribing data to vmp table using generic BNF code \n", "INNER JOIN {measures}.vw__dmd_objs_with_form_route AS route ON vmp.id = route.vpid", - "INNER JOIN {measures}.vw__inhaler_quantity_adjustment AS adj ON p.bnf_code = adj.bnf_code AND p.month = adj.month" + "INNER JOIN {measures}.vw__inhaler_quantity_adjustment AS adj ON p.bnf_code = adj.bnf_code AND p.month = adj.date" ], "numerator_where": [ "route.form_route IN ('pressurizedinhalation.inhalation', 'powderinhalation.inhalation', 'inhalationsolution.inhalation')" @@ -47,7 +47,7 @@ "{hscic}.normalised_prescribing p ", "INNER JOIN {dmd}.vmp vmp ON CONCAT(SUBSTR(p.bnf_code,0,9),'AA', SUBSTR(p.bnf_code,-2), SUBSTR(p.bnf_code,-2)) = vmp.bnf_code -- joins prescribing data to vmp table using generic BNF code \n", "INNER JOIN {measures}.vw__dmd_objs_with_form_route AS route ON vmp.id = route.vpid", - "INNER JOIN {measures}.vw__inhaler_quantity_adjustment AS adj ON p.bnf_code = adj.bnf_code AND p.month = adj.month" + "INNER JOIN {measures}.vw__inhaler_quantity_adjustment AS adj ON p.bnf_code = adj.bnf_code AND p.month = adj.date" ], "denominator_where": [ "route.form_route IN ('pressurizedinhalation.inhalation', 'powderinhalation.inhalation', 'inhalationsolution.inhalation')"