Type: | Package |
Title: | Collection of Codes with Labels |
Version: | 0.1.3 |
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. |
Depends: | R (≥ 3.5) |
Imports: | Epi |
License: | GPL-2 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.2.1 |
NeedsCompilation: | no |
Packaged: | 2023-01-11 10:58:42 UTC; jkhaukka |
Author: | Jari Haukka |
Maintainer: | Jari Haukka <jari.haukka@helsinki.fi> |
Repository: | CRAN |
Date/Publication: | 2023-01-11 11:20:02 UTC |
ATC codes
Description
A data set containing ATC codes ”@note Only in English
Usage
ATCKoodit
Format
A data frame:
- Koodi
Code value
- en
Label inEnglish
- fi
Label in English
ATC codes, V2022
Description
A data set containing ATC codes, updated 2022 ”@note Only in English
Usage
ATCKooditV2022
Format
A data frame:
- Koodi
Code value
- en
Label inEnglish
- fi
Label in English
Codebook for ICD10 codes
Description
A data set containing ICD10 codes (without dots) and labels (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml).
Usage
ICD10Koodit
Format
A data frame:
- Koodi
Code value
- fi
Label in Finnish
- la
Label in Latin
- en
Name in English
- sv
Name in Swedish
Examples
# ICD10 codes starting with I67
ICD10Koodit[grepl("^I67",ICD10Koodit$Koodi),]
ICD-O-3 codes
Description
A data set containing ICD-O-3 codes and labels
Usage
ICDO3Koodit
Format
A data frame:
- Koodi
Code value
- fi
Label in English
- en
Label in English
- se
Label in English
ICD-O-3 codes (no dot in codes)
Description
A data set containing ICD-O-3 codes (no dot in codes) and labels
Usage
ICDO3Koodit1
Format
A data frame:
- Koodi
Code value
- fi
Label in English
- en
Label in English
- se
Label in English
ICPC codes
Description
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).
Usage
ICPCKoodit
Format
A data frame:
- Koodi
Code value
- en
Label inEnglish
- fi
Label in English
SPAT procedure codes for primary care
Description
SPAT procedure codes for primary care (https://koodistopalvelu.kanta.fi/codeserver/pages/classification-list-page.xhtml). ”@note Only in Finnish and Swedish
Usage
SPATKoodit
Format
A data frame:
- Koodi
Code value
- en
Label in Finnish
- fi
Label in Finnish
- se
Label in Swedish
Codebook for NOMESCO procedure codes
Description
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).
Usage
TPKoodit
Format
A data frame:
- Koodi
Code value
- fi
Label in Finnish
- en
Name in English
- sv
Name in Swedish
Examples
# Procedure codes starting with CHD
TPKoodit[grepl("^CHD2",TPKoodit$Koodi),]
Groups rare levels of factor
Description
Groups rare levels of factor
Usage
comb.levels(x, N.max = 10, lang = "fi")
Arguments
x |
factor or other categorical variable |
N.max |
maximum number of levels |
lang |
language ("fi" or "en") |
Value
factor containing code value and text
Add label text to code
Description
Add label text to code
Usage
mkcodelabel(x, codebook, lang = "fi", as.factor.B = TRUE)
Arguments
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 |
Value
character vector of factor containing code value and text
Author(s)
Jari Haukka jari.haukka@helsinki.fi
Examples
mkcodelabel("CJB10",TPKoodit,"en",FALSE)
mkcodelabel("CJB10",TPKoodit)
mkcodelabel("I351",ICD10Koodit,"en",FALSE)
Statistics Finland causes of death time series codes
Description
Statistics Finland causes of death time series codes ( https://stat.fi/en/luokitukset/kuolinsyyt/kuolinsyyt_1_20210101/ ) ”@note Only in English
Usage
tpksaKoodit
Format
A data frame:
- Koodi
Code value
- en
Label in English
- fi
Label in Finnish