atc_property.Rd
Gets data from the WHO to determine properties of an ATC (e.g. an antibiotic) like name, defined daily dose (DDD) or standard unit.
This function requires an internet connection.
atc_property(atc_code, property, administration = "O", url = "https://www.whocc.no/atc_ddd_index/?code=%s&showdescription=no") atc_groups(atc_code, ...) atc_ddd(atc_code, ...)
atc_code | a character or character vector with ATC code(s) of antibiotic(s) |
---|---|
property | property of an ATC code. Valid values are |
administration | type of administration when using |
url | url of website of the WHO. The sign |
... | parameters to pass on to |
https://www.whocc.no/atc_ddd_alterations__cumulative/ddd_alterations/abbrevations/
Options for parameter administration
:
"Implant"
= Implant
"Inhal"
= Inhalation
"Instill"
= Instillation
"N"
= nasal
"O"
= oral
"P"
= parenteral
"R"
= rectal
"SL"
= sublingual/buccal
"TD"
= transdermal
"V"
= vaginal
Abbreviations of return values when using property = "U"
(unit):
"g"
= gram
"mg"
= milligram
"mcg"
= microgram
"U"
= unit
"TU"
= thousand units
"MU"
= million units
"mmol"
= millimole
"ml"
= milliliter (e.g. eyedrops)
#> Class 'atc' #> [1] J01CA04# [1] "J01CA04" # oral DDD (Defined Daily Dose) of amoxicillin atc_property("J01CA04", "DDD", "O")#> [1] 1.5# parenteral DDD (Defined Daily Dose) of amoxicillin atc_property("J01CA04", "DDD", "P")#> [1] 3atc_property("J01CA04", property = "groups") # search hierarchical groups of amoxicillin#> [1] "ANTIINFECTIVES FOR SYSTEMIC USE" #> [2] "ANTIBACTERIALS FOR SYSTEMIC USE" #> [3] "BETA-LACTAM ANTIBACTERIALS, PENICILLINS" #> [4] "Penicillins with extended spectrum"# [1] "ANTIINFECTIVES FOR SYSTEMIC USE" # [2] "ANTIBACTERIALS FOR SYSTEMIC USE" # [3] "BETA-LACTAM ANTIBACTERIALS, PENICILLINS" # [4] "Penicillins with extended spectrum"