Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new_measure__onsliquidpercent.json #4002

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions openprescribing/measures/definitions/onsliquidpercent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Oral Nutritional Supplementation (ONS) prescribed as ready to serve liquid",
"title": "Oral Nutritional Supplementation (ONS) prescribed as ready to serve liquid",
"description": "Percentage of standard Oral Nutritional Supplementation (ONS) prescribed as ready to serve liquid",
"numerator_short": "Items for liquid standard ONS",
"denominator_short": "Items for standard ONS",
"why_it_matters": [
""
],
"tags": [
"core",
"nutrition"
],
"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}.normalised_prescribing p LEFT JOIN {hscic}.bnf r ON p.bnf_code = r.presentation_code",
"numerator_where": [
"p.bnf_code LIKE '091301%' AND --ONS Standard \n",
"(LOWER(r.chemical) LIKE '%rts%' OR LOWER(r.chemical) LIKE '%ready to serve%') -- items with ready to serve or rts in chemical substance \n"
],
"denominator_type": "custom",
"denominator_columns": "SUM(items) AS denominator",
"denominator_from": "{hscic}.normalised_prescribing p ",
"denominator_where": "p.bnf_code LIKE '091301%' --ONS Standard"
}
Loading