Skip to content

Commit

Permalink
Update saba.json
Browse files Browse the repository at this point in the history
rename adj.month to date to fix ambiguous
  • Loading branch information
richiecroker committed Dec 2, 2024
1 parent 9aff1da commit f0b9833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openprescribing/measures/definitions/saba.json
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
Expand All @@ -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')"
Expand Down

0 comments on commit f0b9833

Please sign in to comment.