Description Usage Arguments Value Examples
Queries from August 2010 to date and returns total spending and items by practice by month. You must specify either an organisation, or a date.
1 2 3 |
BNF_section_code |
A BNF section, or the ID unique to a section found using drug_details(). |
chemical_code |
An ID unique to a chemical found using drug_details(). |
presentation_code |
An ID unique to a presentation found using drug_details(). |
practice_code |
A code/ID unique to a practice found using organisation_codes(). |
CCG_code |
A code/ID unique to a CCG found using organisation_codes(). |
date_code |
A date using the format "2015-12-01". |
Returns total spending and items by practice by month.
1 2 3 4 5 6 7 8 9 | spending_by_practice(BNF_section_code = "0212", date_code = "2015-04-01")
spending_by_practice(chemical_code = "0212000AA", date_code = "2015-04-01")
spending_by_practice(practice_code = "H81068")
spending_by_practice(CCG_code = "03V")
Or a variation of the above (with at least 1 practice_code, date_code, or CCG_code).
N.B A BNF section gives a prefix to the chemical, which gives a prefix to the presentation/product format.
e.g. "0212" are lipid-regulating drugs, "0212000AA" is Rosuvastatin Calcium, "0212000AAAAAAAA" is Rosuvastatin Calc_Tab 10mg.
N.B2 The data is often released over 2 months from the current date, and use the -01 of each month as date.
Read the [wiki](https://github.com/fergustaylor/openprescribingR/wiki) for more help.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.