The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Introduction to ciecl: Chilean ICD-10 in R

Rodolfo Tasso Suazo

2026-01-23

Version 0.9.0: Release candidate for CRAN with FTS5 optimizations.

About the dataset

The package includes 39,873 ICD-10 codes from the official MINSAL/DEIS v2018 catalog, including categories (3 digits) and subcategories (4+ digits).

Installation

# From GitHub (beta version)
pak::pak("RodoTasso/ciecl")

# Alternative with devtools
devtools::install_github("RodoTasso/ciecl")

Search by code

# Single code search
cie_lookup("E11.0")

# Vectorized search - multiple codes at once
codes <- c("E11.0", "I10", "Z00", "J44.0")
results <- cie_lookup(codes)

# Hierarchical expansion
cie_lookup("E11", expandir = TRUE)  # Returns all E11.x

Fuzzy search with typos

# Finds even if misspelled
cie_search("diabetis with coma", threshold = 0.75)

Charlson Comorbidities

# Requires: install.packages("comorbidity")
patient_df <- data.frame(
  patient_id = c(1, 1, 2, 2, 3),
  diagnosis = c("E11.0", "I50.9", "C50.9", "N18.5", "J44.0")
)

cie_comorbid(patient_df, id = "patient_id", code = "diagnosis", map = "charlson")

Interactive tables

# Requires: install.packages("gt")
cie_table("E11")  # Full GT visualization

Data source

Official ICD-10 Chile data MINSAL/DEIS v2018:

More information

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.