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

What is the unit of measurement for quantity? #937

Open
sebbacon opened this issue Jul 14, 2018 · 4 comments
Open

What is the unit of measurement for quantity? #937

sebbacon opened this issue Jul 14, 2018 · 4 comments
Assignees

Comments

@sebbacon
Copy link
Contributor

sebbacon commented Jul 14, 2018

The concept of quantity is central to most of our analyses. It is used to count levels of prescribing in some of our measures; it is used in our "price-per-quantity" tool; and it is used when comparing between products using ADQs.

The (archived) NHS Digital definition is:

The quantity of a drug dispensed is measured in units depending on the formulation of
the product, which is given in the drug name...

Where the formulation is tablet, capsule, ampoule, vial etc. the quantity will be the
number of tablets, capsules, ampoules, vials etc.

Where the formulation is a liquid, the quantity will be the number of millilitres

Where the formulation is a solid form (eg. Cream, gel, ointment), the quantity will be
the number of grammes.

The monthly PCA data has a column "Standard Quantity Unit" (update: this column appears to have been removed without notice in December 2018) e which appears to indicate what we're looking for. The supplied glossary states:

Standard quantity unit (SQU):
This code indicates the form of the drug and the units in which quantity is measured:
Code 1 - a unit (e.g. one tablet, capsule, pack, aerosol etc)
Code 3 - millilitres
Code 6 - grammes
Code 0 - individually formulated (unit varies)

Working with that definition

We have three sets of rules to formulate (developed using this SQL as a view):

  • Discrete (Tablet, capsule, ampoule, vial etc): where the DT "form indicator" is Discrete. The unit of measure is then available in the "dose form unit of measure" field in dm+d. However, this discrete forms include some that could be measured as liquids or non-discrete solids: spoonful, sachet, cup and ml. Spoonful, in particular, is quite common, and appears to be measured in ml (rather than spoonfuls) in at least one example (see below). This category also includes "unit dose".
  • Solid and continuous: where the DT "form indicator" is not Discrete and the form is in this list (or this temp table) (examples: Powder, Oral gel, Foam).
  • Liquid and continous: Everything else where "form indicator" is not Discrete, per this list of form values (examples: Liquid, Ear drops)

How are spoonfuls denominated with respect to quantity?

Per our heuristic above, they are a discrete quantity, but in reality quantity appears to mean ml. For example, this Dicycloverine HCl solution is available in 120ml bottles. As can be seen on that page (from dm+d), its "unit dose" is a "5ml spoonful". The strength of its active ingredient is 2mg per ml.

Its ADQ is 30mg. So that's a average daily dose for adults of 15ml, or 3 spoonfuls: 24 days' worth in a bottle.

The question is: is a quantity of this 1ml, or 5ml? Based on all historic prescribing data, we can see spikes at 5, 10, 20, 30 and 50, which suggests GPs are prescribing in spoonfuls, but the data is recorded in ml. This is reminscent of the situation where we also know that in some cases quantity also represents packs.

image

Other strange corners

When applying the above heuristic, extra dm+d metadata leads us to question some of our categorisations. Some examples:

We would normally expect the unit of measure of the denominator ingredient in dm+d to match what we consider quantity. For example, we would normally expect the denominator in a liquid to have a unit of measure of ml or l`. This gives us an opportunity to find items where the denominator unit of measure varies considerably within their class:

Special containers

In the case of special containers, we can't rely on the quantity at all, as dispensers sometimes record a number of packs rather than tablets (for example), presumably to indicate entire packs were dispensed. How NHSBSA distinguishes between packs and tablets in such cases for the purpose of reimbursement is unclear.

From this NHSBSA glossary:

...where a product is packed in a 'special container' (see Drug Tariff Part II Clause 10) the pharmacist is not required to split the pack and may supply the number of containers or original packs which provide the quantity nearest to that prescribed. In some circumstances these items show quantity as the number of units supplied ie 1 or 2 even though a pack may contain 56 tablets.

Included in this category are preparations which are: sterile; effervescent or hygroscopic; liquid preparations for addition to bath water; coal tar preparations; viscous external preparations; preparations packed in a collapsible tube, pressurised aerosol, spray, puffer pack, squeeze pack, castor, shaker, roll-on bottle, drop bottle. container with an integral means of application, or any other container from which it is not practicable to dispense the exact quantity ordered; reconstituted from granules or powder, resulting in a liquid of limited stability.

This rule applies to Special Containers which can not have Broken Bulk applied. This data is available in dm+d at the AMPP level. However, as prescribing data is only at AMP/VMP level, we can only tell if an AMP/VMP may have this condition applied.

Questions:

  • Is our heuristic right? Should we make an exclusion for spoonful and treat it as a liquid rather than a discrete dose?
  • How does the value given for quantity find its way to the data? Is it from EPS systems and if so, what is their data source? As this data is the basis for paying dispensers, it presumably comes from them, even if the originating system was an EPS. What kinds of system do they use to record quantity? Is this, in fact, all reliant on the individual judgement of dispensers, hence the wide variation?
  • Rather than rely on a guessed implementation of a loosely-worded definition, does NHSHSA have a programmatic way of defining quantity for us?
  • As noted in price-per-dose/issues/12, BSA have told us there are "complexities regarding the authoring of the size of sachets in general, some have a container size of 1 and some have the weight of the sachet as the size. This is a historic issue. Work is under way to review this and agree a way forward". Is there any update on this?
  • Is there anything we can do about the fact that special containers that cannot have broken bulk applied can be recorded as 1 (i.e. per-pack?) If not, should we drop such products from any quantity-based analysis?
  • Does NHSBSA have a process for identifying and reporting when they find errors or inconsistencies?
@richiecroker
Copy link
Collaborator

@sebbacon can't find the issue at the moment, but there was also a problem with when quantity is always an integer, but pack sizes are 2.5ml

evansd added a commit that referenced this issue Dec 19, 2018
Usually `quantity` measures something that comes *in* a pack e.g.
"number of tablets" or "number of ml of liquid". (Note this is "pack" in
the DM+D sense were a bottle and pump are both "packs"). Occasionally
though, `quantity` measures the number of packs itself. We don't
currently have a reliable way of populating this field, but we need it
in place so we can begin populating it using various heuristics.

The specific driver for doing this comes from our attempts to calculate
the tariff cost for a given quantity of prescribing. Usually we can look
up the associated DM+D product for the VMPP, divide by the `qtyval`
field and get the number of packs dispensed (which we can then multiply
by the tariff price). However, where the quantity is *already* a number
of packs, this process produces costs several orders of magnitude too
low.

This is related to the wider issue raised in #937 that we often don't
have a good grasp of what "quantity" means.
evansd added a commit that referenced this issue Dec 19, 2018
Usually `quantity` measures something that comes *in* a pack e.g.
"number of tablets" or "number of ml of liquid". (Note this is "pack" in
the DM+D sense were a bottle and pump are both "packs"). Occasionally
though, `quantity` measures the number of packs itself. We don't
currently have a reliable way of populating this field, but we need it
in place so we can begin populating it using various heuristics.

The specific driver for doing this comes from our attempts to calculate
the tariff cost for a given quantity of prescribing. Usually we can look
up the associated DM+D product for the VMPP, divide by the `qtyval`
field and get the number of packs dispensed (which we can then multiply
by the tariff price). However, where the quantity is *already* a number
of packs, this process produces costs several orders of magnitude too
low.

This is related to the wider issue raised in #937 that we often don't
have a good grasp of what "quantity" means.
evansd added a commit that referenced this issue Dec 20, 2018
Usually `quantity` measures something that comes *in* a pack e.g.
"number of tablets" or "number of ml of liquid". (Note this is "pack" in
the DM+D sense were a bottle and pump are both "packs"). Occasionally
though, `quantity` measures the number of packs itself. We don't
currently have a reliable way of populating this field, but we need it
in place so we can begin populating it using various heuristics.

The specific driver for doing this comes from our attempts to calculate
the tariff cost for a given quantity of prescribing. Usually we can look
up the associated DM+D product for the VMPP, divide by the `qtyval`
field and get the number of packs dispensed (which we can then multiply
by the tariff price). However, where the quantity is *already* a number
of packs, this process produces costs several orders of magnitude too
low.

This is related to the wider issue raised in #937 that we often don't
have a good grasp of what "quantity" means.
@sebbacon
Copy link
Contributor Author

sebbacon commented Jul 2, 2019

Another example of where quantity appears to mean different things - Fentanyl 400micrograms/dose nasal spray

Sometimes recorded by dose (which is what dm+d says it should be recorded by), sometimes by pack:

SELECT
  practice,
  items,
  net_cost/quantity AS ppq
FROM
  `ebmdatalab.hscic.normalised_prescribing_standard`
WHERE
  month = '2018-04-01'
  AND bnf_code = '0407020A0AABPBP'
ORDER BY
  ppq

@alexwalkerepi
Copy link
Contributor

This doesn't appear to be related to EHR:

SELECT
  practice,
  items,
  net_cost/quantity AS ppq,
  Principal_Supplier,
  Principal_System
FROM
  `ebmdatalab.hscic.normalised_prescribing_standard`
LEFT JOIN
  ebmdatalab.hscic.vendors
ON
  practice = ODS AND Date = '2018-04-01'
WHERE
  month = '2018-04-01'
  AND bnf_code = '0407020A0AABPBP'
ORDER BY
  ppq```

@sebbacon
Copy link
Contributor Author

sebbacon commented Aug 1, 2019

From an NHS BSA newsletter:

Most inhalers, sprays and similar products areprescribed with the quantity measured in dosesrather than devices. In certain prescribing systemsa ‘pack conversion facility’ exists, allowingprescribers to enter the number of devices whichare converted to the appropriate equivalentquantity of doses. Unfortunately, where this facility exists, sometimes the prescriber enters the number of doses instead of the number of inhalers and excessive quantities are inadvertently prescribed. If an item is prescribed with an excessive quantity but you have dispensed less, you must populate the quantity that was actually dispensed.Example 1 – 3600 doses prescribed (this is equivalent to 60 x 60 dose devices), dispensed quantity 3600 doses. The item was returned to confirm the quantity dispensed and resubmitted with additional information, stating 60 x 60 dose devices were actually dispensed (£1380.00). Further contact confirmed only 1 x 60 dosedevice (£23.00) was supplied. This resulted in a delay to the contractor’s reimbursement:Endorsing the quantity dispensed in EPS and paper submissionsExample 2 – 9520 x 85g sachets prescribed (£24,656.00). The item was returned to confirm the quantity dispensed and was resubmitted, stating 9520 grammes (£290.08) was supplied. This resulted in a delay to the contractor’s reimbursement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants