drug_details: Search for the official name and code of BNF sections,...

Description Usage Arguments Value Examples

Description

Search for the official name and code of BNF sections, chemicals and presentations.

Usage

1
2
drug_details(name = NULL, chemical_section_or_presentation_code = NULL,
  BNF_section = NULL, exact_name_or_code = NULL)

Arguments

name

Drug name.

chemical_section_or_presentation_code

An ID unique to BNF sections, chemicals or presentations.

BNF_section

The BNF section.

exact_name_or_code

Search by an exact name/code(ID).

Value

Returns official names and codes(ID) of BNF sections, chemicals and presentations.

Examples

1
2
3
4
5
6
7
All BNF sections, chemicals and presentations matching a name (case-insensitive) = drug_details(name= "lipid")
All chemicals and presentations matching a code = drug_details(chemical_section_or_presentation_code= "0212000AA")
All BNF sections matching a code = drug_details(BNF_section= "2.4")
All BNF sections, chemicals and presentations exactly matching a name or code = drug_details(exact_name_or_code= "212000AA")
Or a variation of the above (with at least 1 name, chemical_section_or_presentation_code, BNF_section, or exact_name_or_code).
N.B For now the use of multiple terms in one category requires "&q=", e.g drug_details(name="lipid&q=drug")
Read the [wiki](https://github.com/fergustaylor/openprescribingR/wiki) for more help.

fergustaylor/openprescribingR documentation built on May 31, 2019, 1:15 p.m.