-
Notifications
You must be signed in to change notification settings - Fork 26
Measure definitions
A Measure
object describes how a measure is calculated, and how the calculation is displayed to users on the website. Each measure definition is stored in a JSON object in a file in the openprescribing/measure_definitions
directory. This page describes the expected attributes of a Measure
object -- if in doubt, ask a coder!
Used in URLs for pages about measures, eg https://openprescribing.net/measure/keppra/.
Used in page headings.
Unused, as far as I can tell.
Describes briefly how the meaure is calculated. Used on the main measure pages and in certain graph titles.
Explains why the measure matters! Used on the main measure pages.
A list of tags for this measure. Available tags are listed in openprescribing/common/measure_tags.json.
Used for omnibus measures, of which lpzomnibus
is the only example we have at the
moment.
true
/false
(default: true
), indicating whether measure should be included in alerts.
Not set for any current measure, but would be used for a "read more..." link on the main measure pages.
true
/false
, indicating whether measure ratio is a percentage (which would be the case if the numerator and denominator were both sums of items/quantities/costs, with the numerator summing over a subset of the things the denominator sums over). This is used for certain calculations related to cost savings for cost-based measures.
true
/false
, indicating whether it is meaningful to calculate cost savings.
true
/false
/null
, indicating whether a low ratio is good, bad, or neither.
Used in chart tool-tips.
One of:
-
custom
(egaafpercent
, bdzadq,
lpherbal`) -
bnf_items
(egdipyridamole
,ciclosporin
) -
bnf_quantity
(egdesogestrel
,keppra
) -
bnf_cost
(eg all thelp*
measures) -
list_size
,denominator_type
only (eg all thelp*
measures,coproxamol
) -
star_pu_antibiotics
,denominator_type
only (ktt9_antibiotics
,ktt9_cephalosporins_star
)
Only required if (num_or_denom)_type
is custom
.
Only required if (num_or_denom)_type
is custom
.
Only required if (num_or_denom)_type
is custom
or bnf_*
.
true
/false
. Only required if (num_or_denom)_type
is custom
. Indicates whether numerator/denominator is computed from a list of BNF codes.
Only required for custom numerators/denominators if (num_or_denom)_is_list_of_bnf_codes
is not set to False
. Used to populate numerator_bnf_codes
.
This is computed, and should not be set manually. This is a list of BNF codes of presentations that have appeared in the measure's denominator in the last three months. Used for the "presentations contributing to variation" page, and for the link from the measure to the analyse page.
This is computed, and should not be set manually.
Default should be false. Should be set to true if measure should be excluded from prescribing radar e.g. measures where low isn't necessarily better - e.g. uptake of continuous glucose monitors.
Default should be false. If set to true, stops the measure having a "look at this on the analyse page" link