This function classifies the type of adolescent and young adult cancer cases based on the histology, site, and behaviour codes of the cancer. It uses the International Classification of Diseases for Oncology (ICD-O), 3rd edition codes to determine the classification. The function returns a value is based on the method specified and the depth level of the classification hierarchy to be determined.

aya_class(
  histology,
  site,
  behaviour,
  method = "Barr 2020",
  depth = 1,
  verbose = FALSE
)

Arguments

histology

Histology code of the cancer.

site

Site (aka topography) code of the cancer.

behaviour

Behaviour code of the cancer.

method

Method used for the diagnosis classification of the cancer. Default is "Barr 2020". Can be one of "Barr 2020", "SEER v2006", "SEER v2020", "SEER-WHO v2008".

depth

Depth level of the classification hierarchy to be determined. If set to 99, will return the SEER grouping.

verbose

Logical value to print messages to the console if unable to classify or duplicates found. Default is FALSE.

Value

Returns the diagnostic classification of the cancer based on the specified method and depth level.

Examples

# First position in the classification hierarchy
aya_class("9020", "C50.1", "3", method = "Barr 2020", depth = 1)
#> [1] 9. Carcinomas
#> 12 Levels: 1. Leukemias and related disorders ... A. In situ

# Second position in the classification hierarchy
aya_class("9020", "C50.1", "3", method = "Barr 2020", depth = 2)
#> [1] 9.6 Carcinoma of breast
#> 77 Levels: 1.1 Acute lymphoblastic leukemia ... A.12 Other in situ

# Third position in the classification hierarchy
aya_class(9020, "C50.1", "3", method = "Barr 2020", depth = 3)
#> [1] 9.6.4 Breast, phyllodes
#> 108 Levels: 1.2.1 Acute promyelocytic leukemia (t[15;17][q22;q11-12]) ...