1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-07 19:00:18 +01:00

(v3.0.1.9028) fix unique CIDs

This commit is contained in:
2026-03-06 18:53:42 +01:00
parent c0a394008e
commit daab605ca4
16 changed files with 15 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ set_ab_names(data, ..., property = "name", language = get_AMR_locale(),
\item{...}{In case of \code{\link[=set_ab_names]{set_ab_names()}} and \code{data} is a \link{data.frame}: columns to select (supports tidy selection such as \code{column1:column4}), otherwise other arguments passed on to \code{\link[=as.ab]{as.ab()}}.}
\item{all_groups}{A \link{logical} to indicate whether all antimicrobial groups must be return as a vector for each input value. For example, an antibiotic in the "aminopenicillins" group, is also in the "penicillins" and "beta-lactams" groups. Setting \code{all_groups = TRUE} would return all three for such an antibiotic, while \code{all_groups = FALSE} (default) only returns the most distinctive group name.}
\item{all_groups}{A \link{logical} to indicate whether all antimicrobial groups must be return as a vector for each input value. For example, an antibiotic in the "aminopenicillins" group, is also in the "penicillins" and "beta-lactams" groups. Setting \code{all_groups = TRUE} would return all three for such an antibiotic, while \code{all_groups = FALSE} (default) only returns the most specific group name.}
\item{only_first}{A \link{logical} to indicate whether only the first ATC code must be returned, with giving preference to J0-codes (i.e., the antimicrobial drug group).}
@@ -116,6 +116,7 @@ ab_cid("AMX")
ab_synonyms("AMX")
ab_tradenames("AMX")
ab_group("AMX")
ab_group("AMX", all_groups = TRUE) # most specific to most general
ab_atc_group1("AMX")
ab_atc_group2("AMX")
ab_url("AMX")