#' Common infections and indications for antimicrobial therapy
#'
#' @description Look up table of common infections and whether
#' they are commonly treated with antibiotics.
#' @format Data frame of 276 rows describing ICD-10 codes with 6 columns:
#' \describe{
#' \item{\code{icd_root}}{character vector of 3- to 4-character ICD-10 codes}
#' \item{\code{infection_group1_label}}{character vector referencing 17 infection groups}
#' \item{\code{infection_group2_label}}{character vector referencing 74 infections}
#' \item{\code{antibiotics_indicated}}{character vector indicating whether antibiotics
#' are indicated ("potentially", "rarely", "usually")}
#' \item{\code{infection_group1_code}}{character vector containing 3-character short codes
#' for infection groups}
#' \item{\code{infection_group2_code}}{character vector containing 5-character short codes
#' for infections}
#' }
#' @docType data
#' @name antibiotic_icd_indications
#' @source Adapted from Supplementary Table S1 in \insertCite{Hashimoto2020}{Ramses}.
#' @references
#' \insertAllCited{}
#' @examples
#' data("antibiotic_icd_indications")
#' head(antibiotic_icd_indications)
"antibiotic_icd_indications"
#' English Adaptation of the WHO AWaRe Index
#'
#' @description This `AWaRe Index' is a classification by the World Health
#' Organisation of key antibiotics into three categories
#' \insertCite{Sharland2018}{Ramses} to:
#' \itemize{
#' \item improve access (Access)
#' \item monitor important antibiotics (Watch) and
#' \item preserve effectiveness of ‘last resort’ antibiotics (Reserve).
#' }
#' It was adapted by Public Health England for antibiotic stewardship
#' and quality improvement in English hospitals
#' \insertCite{PHE-aware2019}{Ramses}.
#'
#' The version included in Ramses contains an additional row for metronidazole
#' J01XD01 administered orally (classified as Access). This is sometimes
#' used in combination with other antibacterials that do not cover anaerobic
#' organisms, but is not present in the Anatomical Therapeutic Chemical (ATC)
#' classification.
#'
#' @format A data frame with 208 antimicrobial agents, referenced
#' against the World Health Organisation's Anatomical Therapeutic Chemical (ATC)
#' classification \insertCite{WHO-ATC2020}{Ramses},
#' Public Health England's AWaRe Indices,
#' and the SNOMED CT medical product concept codes and names.
#' It contains 6 columns:
#' \describe{
#' \item{\code{ATC_code}}{ATC code of the antibiotic}
#' \item{\code{ATC_route}}{route of administration as defined in
#' the ATC ("O" = oral; "P" = parenteral; "R" = rectal;
#' "V" = vaginal)}
#' \item{\code{ATC_name}}{ATC name of the antibiotic}
#' \item{\code{aware_category}}{AWaRe index ("Access", "Watch", "Reserve")}
#' \item{\code{version}}{AWaRe Index version (eg. "WHO", "England")}
#' \item{\code{year}}{AWaRe Index version year}
#' \item{\code{VTM_code}}{SNOMED CT medicinal product code/Virtual Therapeutic Moiety
#' code in the SNOMED CT UK Drug Extension \insertCite{SNOMEDDrugUK2020}{Ramses}}
#' \item{\code{VTM_name}}{SNOMED CT medicinal product code/Virtual Therapeutic Moiety
#' name in the SNOMED CT UK Drug Extension \insertCite{SNOMEDDrugUK2020}{Ramses}}
#' }
#' @docType data
#' @name reference_aware
#' @source Adapted from \insertCite{WHO-aware2019,PHE-aware2019;textual}{Ramses} with Virtual
#' Therapeutic Moiety equivalents from the NHS Dictionary of Medicines (dm+d)
#' \insertCite{SNOMEDDrugUK2020}{Ramses}.
#' @references{\insertAllCited{}}
#' @examples
#' data("reference_aware")
#' head(reference_aware)
"reference_aware"
#' Clinical Classifications Software (CCS): map to 4-character ICD codes
#'
#' @description A map of 283 clinical concepts to 4-character ICD codes adapted from the
#' Clinical Classifications Software (CCS) \insertCite{HCUP-CCS}{Ramses}.
#'
#' @details The Clinical Classifications Software (CCS) is a database developed as part
#' of the Healthcare Cost and Utilization Project (HCUP) which maps ICD-10-CM codes into 283
#' hierarchical and mutually-exclusive CCS categories. Level-1 categories correspond to the
#' ICD-10's 17 chapters plus two supplementary classifications:
#'
#' \enumerate{
#' \item Infectious and parasitic diseases
#' \item Neoplasms
#' \item Endocrine; nutritional; and metabolic diseases and immunity disorders
#' \item Diseases of the blood and blood-forming organs
#' \item Diseases of the nervous system and sense organs
#' \item Diseases of the circulatory system
#' \item Diseases of the respiratory system
#' \item Diseases of the digestive system
#' \item Diseases of the genitourinary system
#' \item Complications of pregnancy; childbirth; and the puerperium
#' \item Diseases of the skin and subcutaneous tissue
#' \item Diseases of the musculoskeletal system and connective tissue
#' \item Congenital anomalies
#' \item Certain conditions originating in the perinatal period
#' \item Injury and poisoning
#' \item Symptoms; signs; and ill-defined conditions and factors influencing health status
#' \item Residual codes; unclassified; all E codes [259. and 260.]
#' \item Mental Illness
#' }
#'
#' This dataset can help group ICD-10 into a smaller number of mutually-exclusive
#' categories, such as aggregating data.
#'
#' @format A data frame with 72,446 ICD-10-CM codes mapped to CCS multilevel categories.
#' @docType data
#' @name ccs
#' @seealso For the mapping function, see \code{\link{map_ICD10_CCS}()}. For the Clinical
#' Classifications Software Refined, see \code{\link{ccsr}}.
#' @source Adapted from \insertCite{HCUP-CCS}{Ramses} for 4-character ICD-10 codes.
#' @references
#' \insertAllCited{}
#' @examples
#' data("ccs")
#' head(ccs)
"ccs"
#' Clinical Classifications Software Refined (CCSR): map to 4-character ICD codes
#'
#' @description A map of 538 clinical concepts to 4-character ICD codes
#' adapted from the Clinical Classifications Software Refined (CCSR)
#' \insertCite{HCUP-CCSR}{Ramses}.
#'
#' @details The Clinical Classifications Software Refined (CCSR) is a
#' database developed as part of the Healthcare Cost and Utilization
#' Project (HCUP) which maps ICD-10-CM codes into 538 CCSR
#' categories. Unlike the pre-existing \code{\link{ccs}}:
#' \itemize{
#' \item CCSR categories are not mutually exclusive.
#' \item CCSR contain categories not found in \code{\link{ccs}}
#' \item CCSR categories are organised into 21 body systems
#' }
#'
#' @format A data frame with 72,715 ICD-10-CM codes mapped to
#' CCSR categories.
#' @docType data
#' @name ccsr
#' @seealso For the mapping function, see \code{\link{map_ICD10_CCSR}()}. For the Clinical
#' Classifications Software, see \code{\link{ccs}}.
#' @source Adapted from \insertCite{HCUP-CCSR}{Ramses} for
#' 4-character ICD-10 codes.
#' @references
#' \insertAllCited{}
#' @examples
#' data("ccsr")
#' head(ccsr)
"ccsr"
#' Prescription frequency abbreviations
#' @description Look-up table providing the number of times a drug should
#' be administered per day based on the prescription frequency abbreviation
#' (including latin abbreviations).
#'
#' Example: BD stands for \emph{bis die}, meaning twice a day. The
#' corresponding \code{daily_frequency} value is 2.
#'
#' @format A data frame with 64 abbreviations and their corresponding daily frequency value.
#' @docType data
#' @name reference_drug_frequency
#' @seealso \href{https://en.wikipedia.org/wiki/List_of_medical_abbreviations:_Latin_abbreviations}{Latin medical abbreviations}
#' @examples
#' data("reference_drug_frequency")
#' head(reference_drug_frequency)
"reference_drug_frequency"
#' LOINC codes for clinical investigations and observations
#'
#' @description Look-up table providing a subset of useful clinical investigation
#' codes from the LOINC terminology. It can be used to map clinical investigations
#' and observations that are relevant to modelling antibiotic prescribing decisions.
#' @details This material contains content from LOINC (\url{http://loinc.org}).
#' LOINC is copyright © 1995-2021, Regenstrief Institute, Inc. and the
#' Logical Observation Identifiers Names and Codes (LOINC) Committee and
#' is available at no cost under the license at \url{http://loinc.org/license}.
#' LOINC® is a registered United States trademark of Regenstrief Institute, Inc.
#' @source LOINC Table File Version 2.70. Released 2021-06-10. \url{http://loinc.org}
#' @format A data frame.
#' @docType data
#' @name reference_loinc
"reference_loinc"
#' Laboratory specimen type reference table (SNOMED CT concepts)
#'
#' @description This reference table contains the list of admissible specimen
#' types in microbiology records (see \code{\link[Ramses]{validate_microbiology}()}).
#' These concepts are from the
#' \href{SNOMED CT International Edition}{https://browser.ihtsdotools.org/} and
#' correspond to the descendants of the \code{123038009 | Specimen (specimen) |}
#' concept.
#' @details This data frame contains 5 variables:
#' \describe{
#' \item{\code{conceptId}}{SNOMED CT concept code}
#' \item{\code{moduleId}}{SNOMED CT module code}
#' \item{\code{fsn_term}}{SNOMED CT Full Specified Name}
#' \item{\code{pt_term}}{SNOMED CT Preferred Term}
#' \item{\code{snomed_release_version}}{SNOMED CT RF2 release date}
#' }
#' @format A data frame.
#' @docType data
#' @name reference_specimen_type
#' @examples
#' data("reference_specimen_type")
#' head(reference_specimen_type)
"reference_specimen_type"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.