# Tools for Working with ICD-9 and ICD-10 Codes, and Finding Comorbidities

## Documentation for package ‘icd’ version 2.0.1

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

A C E I P Q S U V misc

icd-package | Tools for Working with ICD-9 Codes, and Finding Comorbidities
icd10-package | Tools for Working with ICD-9 Codes, and Finding Comorbidities
icd9-package | Tools for Working with ICD-9 Codes, and Finding Comorbidities

## -- A --

ahrq | AHRQ comorbidities
ahrqComorbid | AHRQ comorbidities
ahrqComorbidNames | Comorbidity names
ahrqComorbidNamesAbbrev | Comorbidity names
ahrqComorbidNamesHtn | Comorbidity names
ahrqComorbidNamesHtnAbbrev | Comorbidity names

## -- C --

c.icd10 | combine ICD codes
c.icd9 | combine ICD codes
charlsonComorbidNames | Comorbidity names
charlsonComorbidNamesAbbrev | Comorbidity names
combine | combine ICD codes

## -- E --

elixComorbid | Elixhauser comorbidities
elixComorbidNames | Comorbidity names
elixComorbidNamesAbbrev | Comorbidity names
elixComorbidNamesHtn | Comorbidity names
elixComorbidNamesHtnAbbrev | Comorbidity names

## -- I --

icd | Tools for Working with ICD-9 Codes, and Finding Comorbidities
icd10cm2016 | ICD-10-CM
icd10_chapters | ICD-10 chapters
icd10_filter_invalid | Filter ICD-9 codes by validity.
icd10_filter_valid | Filter ICD-9 codes by validity.
icd10_map_ahrq | AHRQ comorbidities
icd10_map_elix | Elixhauser comorbidities
icd10_map_quan_deyo | Quan adaptation of Deyo/Charlson comorbidities
icd10_map_quan_elix | Quan adaptation of Elixhauser comorbidities
icd10_sub_chapters | ICD-10 sub-chapters
icd9Billable | list of annual versions of billable leaf nodes of ICD-9-CM
icd9Chapters | ICD-9 chapters
icd9ChaptersMajor | ICD-9 chapters
icd9ChaptersSub | ICD-9 chapters
icd9Children | Deprecated: get children of ICD-9 codes
icd9ChildrenDecimal | Deprecated: get children of ICD-9 codes
icd9ChildrenShort | Deprecated: get children of ICD-9 codes
icd9cm_billable | list of annual versions of billable leaf nodes of ICD-9-CM
icd9cm_hierarchy | Latest ICD-9-CM diagnosis codes, in flat 'data.frame' format
icd9Comorbid | Deprecated: get comorbidities from patient data
icd9ComorbidAhrq | Deprecated: get comorbidities from patient data
icd9ComorbidDfToMat | Deprecated: convert matrix of comorbidities to data frame
icd9ComorbidElix | Deprecated: get comorbidities from patient data
icd9Comorbidities | Deprecated: get comorbidities from patient data
icd9ComorbiditiesAhrq | Deprecated: get comorbidities from patient data
icd9ComorbiditiesElixHauser | Deprecated: get comorbidities from patient data
icd9ComorbiditiesQuanDeyo | Deprecated: get comorbidities from patient data
icd9ComorbiditiesQuanElixhauser | Deprecated: get comorbidities from patient data
icd9ComorbidMatToDf | Deprecated: convert matrix of comorbidities to data frame
icd9ComorbidQuanDeyo | Deprecated: get comorbidities from patient data
icd9ComorbidQuanElix | Deprecated: get comorbidities from patient data
icd9ComorbidQuanElixhauser | Deprecated: get comorbidities from patient data
icd9ComorbidShort | Deprecated: get comorbidities from patient data
icd9Condense | Deprecated: condense list of ICD-9 codes
icd9CondenseDecimal | Deprecated: condense list of ICD-9 codes
icd9CondenseShort | Deprecated: condense list of ICD-9 codes
icd9Count | Deprecated: count number of ICD codes per patient
icd9CountComorbidBin | Deprecated: count number of ICD codes per patient
icd9CountWide | Deprecated: count number of ICD codes per patient
icd9DecimalToParts | Deprecated: convert between short, decimal ICD-9 codes
icd9DecimalToShort | Deprecated: convert between short, decimal ICD-9 codes
icd9DiffComorbid | Deprecated: find difference between comorbidity maps
icd9ExpandRange | Deprecated: expand range of ICD-9 codes
icd9ExpandRangeDecimal | Deprecated: expand range of ICD-9 codes
icd9ExpandRangeMajor | Deprecated: expand range of ICD-9 codes
icd9ExpandRangeShort | Deprecated: expand range of ICD-9 codes
icd9FilterInvalid | Deprecated: filter valid ICD-9 codes in or out
icd9FilterPoa | Deprecated: filter valid ICD-9 codes in or out
icd9FilterPoaNo | Deprecated: filter valid ICD-9 codes in or out
icd9FilterPoaNotNo | Deprecated: filter valid ICD-9 codes in or out
icd9FilterPoaNotYes | Deprecated: filter valid ICD-9 codes in or out
icd9FilterPoaYes | Deprecated: filter valid ICD-9 codes in or out
icd9FilterValid | Deprecated: filter valid ICD-9 codes in or out
icd9GetBillable | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetBillableDecimal | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetBillableShort | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetChapters | Deprecated: get chapters for ICD-9 codes
icd9GetInvalid | Deprecated: get valid ICD-9 codes
icd9GetInvalidDecimal | Deprecated: get valid ICD-9 codes
icd9GetInvalidMappingDecimal | Deprecated: check whether a mapping has only valid ICD-9 codes
icd9GetInvalidMappingShort | Deprecated: check whether a mapping has only valid ICD-9 codes
icd9GetInvalidShort | Deprecated: get valid ICD-9 codes
icd9GetMajor | Deprecated: get or identify major part of an ICD-9 code
icd9GetNonBillable | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetNonBillableDecimal | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetNonBillableShort | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9GetReal | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9GetRealDecimal | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9GetRealShort | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9GetValid | Deprecated: get valid ICD-9 codes
icd9GetValidDecimal | Deprecated: get valid ICD-9 codes
icd9GetValidShort | Deprecated: get valid ICD-9 codes
icd9Hierarchy | Latest ICD-9-CM diagnosis codes, in flat 'data.frame' format
icd9IsBillable | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9IsBillableDecimal | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9IsBillableShort | Deprecated: get or test for billable (leaf node) ICD-9 codes
icd9IsE | Deprecated: is a code a particular ICD-9 sub-type?
icd9IsMajor | Deprecated: get or identify major part of an ICD-9 code
icd9IsN | Deprecated: is a code a particular ICD-9 sub-type?
icd9IsReal | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9IsRealDecimal | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9IsRealShort | Deprecated: get or identify 'real' defined ICD-9-CM codes.
icd9IsV | Deprecated: is a code a particular ICD-9 sub-type?
icd9IsValid | Deprecated: check validity of ICD-9 codes
icd9IsValidDecimal | Deprecated: check validity of ICD-9 codes
icd9IsValidDecimalE | Deprecated: check validity of ICD-9 codes
icd9IsValidDecimalN | Deprecated: check validity of ICD-9 codes
icd9IsValidDecimalV | Deprecated: check validity of ICD-9 codes
icd9IsValidMajor | Deprecated: get or identify major part of an ICD-9 code
icd9IsValidMajorE | Deprecated: check validity of ICD-9 codes
icd9IsValidMajorN | Deprecated: check validity of ICD-9 codes
icd9IsValidMajorV | Deprecated: check validity of ICD-9 codes
icd9IsValidMapping | Deprecated: check whether a mapping has only valid ICD-9 codes
icd9IsValidMappingDecimal | Deprecated: check whether a mapping has only valid ICD-9 codes
icd9IsValidMappingShort | Deprecated: check whether a mapping has only valid ICD-9 codes
icd9IsValidShort | Deprecated: check validity of ICD-9 codes
icd9IsValidShortE | Deprecated: check validity of ICD-9 codes
icd9IsValidShortN | Deprecated: check validity of ICD-9 codes
icd9IsValidShortV | Deprecated: check validity of ICD-9 codes
icd9LongToWide | Deprecated: convert ICD-9 patient data from long to wide format
icd9PoaChoices | Present-on-admission flags
icd9ShortToDecimal | Deprecated: convert between short, decimal ICD-9 codes
icd9ShortToParts | Deprecated: convert between short, decimal ICD-9 codes
icd9Sort | Deprecated: sort ICD-9 codes
icd9SortDecimal | Deprecated: sort ICD-9 codes
icd9SortShort | Deprecated: sort ICD-9 codes
icd9Valid | Deprecated: check validity of ICD-9 codes
icd9ValidDecimal | Deprecated: check validity of ICD-9 codes
icd9ValidShort | Deprecated: check validity of ICD-9 codes
icd9VanWalraven | Deprecated: calculate Van Walraven score from ICD-9 codes
icd9VanWalravenComorbid | Deprecated: calculate Van Walraven score from ICD-9 codes
icd9WideToLong | Deprecated: convert ICD-9 patient data from long to wide format
icd9_chapters | ICD-9 chapters
icd9_filter_invalid | Filter ICD-9 codes by validity.
icd9_filter_valid | Filter ICD-9 codes by validity.
icd9_is_e | do ICD-9 codes belong to numeric, V or E sub-types?
icd9_is_n | do ICD-9 codes belong to numeric, V or E sub-types?
icd9_is_v | do ICD-9 codes belong to numeric, V or E sub-types?
icd9_majors | ICD-9 chapters
icd9_map_ahrq | AHRQ comorbidities
icd9_map_elix | Elixhauser comorbidities
icd9_map_quan_deyo | Quan adaptation of Deyo/Charlson comorbidities
icd9_map_quan_elix | Quan adaptation of Elixhauser comorbidities
icd9_sub_chapters | ICD-9 chapters
icd_charlson | Calculate Charlson Comorbidity Index (Charlson Score)
icd_charlson.data.frame | Calculate Charlson Comorbidity Index (Charlson Score)
icd_charlson_from_comorbid | Calculate Charlson Comorbidity Index (Charlson Score)
icd_comorbid_df_to_mat | convert comorbidity matrix to data frame
icd_comorbid_mat_to_df | convert comorbidity data frame from matrix
icd_count_codes | Count ICD codes or comorbidities for each patient
icd_count_codes_wide | Count ICD codes given in wide format
icd_count_comorbid | Count number of comorbidities per patient
icd_diff_comorbid | show the difference between two comorbidity mappings
icd_diff_comorbid.list | show the difference between two comorbidity mappings
icd_filter_invalid | Filter ICD-9 codes by validity.
icd_filter_poa | Filters data frame based on present-on-arrival flag
icd_filter_poa_no | Filters data frame based on present-on-arrival flag
icd_filter_poa_not_no | Filters data frame based on present-on-arrival flag
icd_filter_poa_not_yes | Filters data frame based on present-on-arrival flag
icd_filter_poa_yes | Filters data frame based on present-on-arrival flag
icd_filter_valid | Filter ICD-9 codes by validity.
icd_get_defined | Select only defined ICD codes
icd_long_to_wide | Convert ICD data from long to wide format
icd_names_ahrq | Comorbidity names
icd_names_ahrq_abbrev | Comorbidity names
icd_names_ahrq_htn | Comorbidity names
icd_names_ahrq_htn_abbrev | Comorbidity names
icd_names_charlson | Comorbidity names
icd_names_charlson_abbrev | Comorbidity names
icd_names_elix | Comorbidity names
icd_names_elix_abbrev | Comorbidity names
icd_names_elix_htn | Comorbidity names
icd_names_elix_htn_abbrev | Comorbidity names
icd_names_quan_elix | Comorbidity names
icd_names_quan_elix_abbrev | Comorbidity names
icd_names_quan_elix_htn | Comorbidity names
icd_names_quan_elix_htn_abbrev | Comorbidity names
icd_poa_choices | Present-on-admission flags
icd_van_walraven | Calculate van Walraven Elixhauser Score
icd_van_walraven.data.frame | Calculate van Walraven Elixhauser Score
icd_van_walraven_from_comorbid | Calculate van Walraven Elixhauser Score
icd_wide_to_long | Convert ICD data from wide to long format
is.icd10 | test ICD-related classes
is.icd10cm | test ICD-related classes
is.icd9 | test ICD-related classes
is.icd9cm | test ICD-related classes
is.icd_comorbidity_map | test ICD-related classes
is.icd_decimal_diag | test ICD-related classes
is.icd_long_data | test ICD-related classes
is.icd_short_diag | test ICD-related classes
is.icd_wide_data | test ICD-related classes

## -- P --

package-icd10 | Tools for Working with ICD-9 Codes, and Finding Comorbidities
package-icd9 | Tools for Working with ICD-9 Codes, and Finding Comorbidities
print.icd_comorbidity_map | Print a comorbidity map

## -- Q --

quanDeyoComorbid | Quan adaptation of Deyo/Charlson comorbidities
quanElixComorbid | Quan adaptation of Elixhauser comorbidities
quanElixComorbidNames | Comorbidity names
quanElixComorbidNamesAbbrev | Comorbidity names
quanElixComorbidNamesHtn | Comorbidity names
quanElixComorbidNamesHtnAbbrev | Comorbidity names

## -- S --

subset_icd | extract subset from ICD data

## -- U --

uranium_pathology | United States Transuranium & Uranium Registries

## -- V --

vermont_dx | Hospital discharge data from Vermont

## -- misc --

[.icd10 | extract subset from ICD data
[.icd9 | extract subset from ICD data
[[.icd10 | extract subset from ICD data
[[.icd9 | extract subset from ICD data
[[.icd_comorbidity_map | Extract vector of codes from an ICD comorbidity map