Learn R Programming

AgeTopicModels (version 0.1.0)

icd2phecode: Mapping the disease code from icd10 to phecode

Description

Mapping the disease code from icd10 to phecode; the mapping are based on https://phewascatalog.org/phecodes; The input if using ICD-10 should be a string f numbers and capital letters only. For example, "I25.1" should be "I251".

Usage

icd2phecode(rec_data)

Value

a data frame where most entries are mapped from ICD10 code to phecode

Arguments

rec_data

input data which use ICD10 encoding; please refer to the internal example data HES_icd10_example for the formatting of the data.

Examples

Run this code
phecode_data <- icd2phecode(HES_icd10_example)

Run the code above in your browser using DataLab