decimal_to_short: Convert Decimal format ICD codes to short format

View source: R/convert.R

decimal_to_shortR Documentation

Convert Decimal format ICD codes to short format

Description

This usually just entails removing the decimal point, but also does some limited validation and tidying up. Missing leading zeroes will be added for correctness of the shortened codes.

Usage

decimal_to_short(x)

## S3 method for class 'icd9'
decimal_to_short(x)

## S3 method for class 'icd10'
decimal_to_short(x)

## S3 method for class 'icd10cm'
decimal_to_short(x)

## Default S3 method:
decimal_to_short(x)

Arguments

x

ICD codes

Methods (by class)

  • icd9: convert ICD-9 codes from decimal to short format

  • icd10: convert ICD-10 codes from decimal to short format

  • icd10cm: convert ICD-10-CM codes from decimal to short format

  • default: Guess ICD version and convert decimal to short format

See Also

Other ICD data conversion: comorbid_df_to_mat(), comorbid_mat_to_df(), convert, long_to_wide(), short_to_decimal(), wide_to_long()


jackwasey/icd documentation built on Dec. 22, 2024, 4:47 a.m.