Title: | Collection of Codes with Labels |
---|---|
Description: | Includes several classifications such as International Statistical Classification of Diseases and Related Health Problems 10th Revision (ICD10), Anatomical Therapeutic Chemical (ATC) Classification, The International Classification of Diseases for Oncology (ICD-O-3), and International Classification of Primary Care (ICPC). Includes function that adds descriptive label to code value. Depending on classification following languages are available: English, Finnish, Swedish, and Latin. |
Authors: | Jari Haukka [aut, cre] |
Maintainer: | Jari Haukka <[email protected]> |
License: | GPL-2 |
Version: | 0.1.3 |
Built: | 2024-11-04 03:48:19 UTC |
Source: | https://github.com/cran/codeCollection |
A data set containing ATC codes ”@note Only in English
ATCKoodit
ATCKoodit
A data frame:
Code value
Label inEnglish
Label in English
A data set containing ATC codes, updated 2022 ”@note Only in English
ATCKooditV2022
ATCKooditV2022
A data frame:
Code value
Label inEnglish
Label in English
Groups rare levels of factor
comb.levels(x, N.max = 10, lang = "fi")
comb.levels(x, N.max = 10, lang = "fi")
x |
factor or other categorical variable |
N.max |
maximum number of levels |
lang |
language ("fi" or "en") |
factor containing code value and text
A data set containing ICD10 codes (without dots) and labels (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml).
ICD10Koodit
ICD10Koodit
A data frame:
Code value
Label in Finnish
Label in Latin
Name in English
Name in Swedish
# ICD10 codes starting with I67 ICD10Koodit[grepl("^I67",ICD10Koodit$Koodi),]
# ICD10 codes starting with I67 ICD10Koodit[grepl("^I67",ICD10Koodit$Koodi),]
A data set containing ICD-O-3 codes and labels
ICDO3Koodit
ICDO3Koodit
A data frame:
Code value
Label in English
Label in English
Label in English
A data set containing ICD-O-3 codes (no dot in codes) and labels
ICDO3Koodit1
ICDO3Koodit1
A data frame:
Code value
Label in English
Label in English
Label in English
A data set containing International Classification of Primary Care (ICPC) codes. If English code is missing uses Finnish, and vice versa (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml).
ICPCKoodit
ICPCKoodit
A data frame:
Code value
Label inEnglish
Label in English
Add label text to code
mkcodelabel(x, codebook, lang = "fi", as.factor.B = TRUE)
mkcodelabel(x, codebook, lang = "fi", as.factor.B = TRUE)
x |
code value (character) |
codebook |
data frame containing codes and text |
lang |
language used, possible values "fi", "en", and "sv" |
as.factor.B |
should value be converted to factor |
character vector of factor containing code value and text
Jari Haukka [email protected]
mkcodelabel("CJB10",TPKoodit,"en",FALSE) mkcodelabel("CJB10",TPKoodit) mkcodelabel("I351",ICD10Koodit,"en",FALSE)
mkcodelabel("CJB10",TPKoodit,"en",FALSE) mkcodelabel("CJB10",TPKoodit) mkcodelabel("I351",ICD10Koodit,"en",FALSE)
SPAT procedure codes for primary care (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml). ”@note Only in Finnish and Swedish
SPATKoodit
SPATKoodit
A data frame:
Code value
Label in Finnish
Label in Finnish
Label in Swedish
A data set containing NOMESCO (http://nowbase.org/publications/ncsp-classification-surgical-procedures) procedure codes and labels (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml).
TPKoodit
TPKoodit
A data frame:
Code value
Label in Finnish
Name in English
Name in Swedish
# Procedure codes starting with CHD TPKoodit[grepl("^CHD2",TPKoodit$Koodi),]
# Procedure codes starting with CHD TPKoodit[grepl("^CHD2",TPKoodit$Koodi),]
Statistics Finland causes of death time series codes ( https://stat.fi/en/luokitukset/kuolinsyyt/kuolinsyyt_1_20210101/ ) ”@note Only in English
tpksaKoodit
tpksaKoodit
A data frame:
Code value
Label in English
Label in Finnish