Skip to contents

codex_icd10() allows you to search the NLM's ICD-10-CM API by code or associated term.

Usage

codex_icd10(code = NULL, term = NULL, field = "both", limit = 10)

Source

National Institute of Health/National Library of Medicine

Arguments

code

All or part of an ICD-10-CM code

term

Associated term describing an ICD-10 code

field

options are "code" or "both"; default is "both"

limit

API limit is 500; defaults to 10

Value

A tibble containing the search results.

Details

ICD-10-CM (International Classification of Diseases, 10th Revision, Clinical Modification) is a medical coding system for classifying diagnoses and reasons for visits in U.S. health care settings.

Note

Current Version: ICD-10-CM 2023

Examples

# Returns the seven codes beginning with "A15"
codex_icd10(code = "A15")
#> # A tibble: 7 × 2
#>   icd_10_cm_code icd_10_cm_term                              
#>   <chr>          <chr>                                       
#> 1 A15.0          Tuberculosis of lung                        
#> 2 A15.4          Tuberculosis of intrathoracic lymph nodes   
#> 3 A15.5          Tuberculosis of larynx, trachea and bronchus
#> 4 A15.6          Tuberculous pleurisy                        
#> 5 A15.7          Primary respiratory tuberculosis            
#> 6 A15.8          Other respiratory tuberculosis              
#> 7 A15.9          Respiratory tuberculosis unspecified        

# Returns the first five codes associated with tuberculosis
codex_icd10(term = "tuber", limit = 5)
#> # A tibble: 5 × 2
#>   icd_10_cm_code icd_10_cm_term                              
#>   <chr>          <chr>                                       
#> 1 A15.0          Tuberculosis of lung                        
#> 2 A15.4          Tuberculosis of intrathoracic lymph nodes   
#> 3 A15.5          Tuberculosis of larynx, trachea and bronchus
#> 4 A15.6          Tuberculous pleurisy                        
#> 5 A15.7          Primary respiratory tuberculosis            

# Returns the two codes associated with pleurisy
codex_icd10(term = "pleurisy")
#> # A tibble: 2 × 2
#>   icd_10_cm_code icd_10_cm_term      
#>   <chr>          <chr>               
#> 1 R09.1          Pleurisy            
#> 2 A15.6          Tuberculous pleurisy

# If you're searching for codes beginning with a certain letter, you
# must set the `field` param to "code" or it will search for terms as well:

# Returns terms containing the letter "Z"
codex_icd10(code = "z", limit = 5)
#> # A tibble: 5 × 2
#>   icd_10_cm_code icd_10_cm_term                                                 
#>   <chr>          <chr>                                                          
#> 1 A28.8          Other specified zoonotic bacterial diseases, not elsewhere cla…
#> 2 A28.9          Zoonotic bacterial disease, unspecified                        
#> 3 A92.5          Zika virus disease                                             
#> 4 B02.0          Zoster encephalitis                                            
#> 5 B02.1          Zoster meningitis                                              

# Returns codes beginning with "Z"
codex_icd10(code = "z", field = "code")
#> # A tibble: 10 × 2
#>    icd_10_cm_code icd_10_cm_term                                                
#>    <chr>          <chr>                                                         
#>  1 Z00.00         Encounter for general adult medical examination without abnor…
#>  2 Z00.01         Encounter for general adult medical examination with abnormal…
#>  3 Z00.110        Health examination for newborn under 8 days old               
#>  4 Z00.111        Health examination for newborn 8 to 28 days old               
#>  5 Z00.121        Encounter for routine child health examination with abnormal …
#>  6 Z00.129        Encounter for routine child health examination without abnorm…
#>  7 Z00.2          Encounter for examination for period of rapid growth in child…
#>  8 Z00.3          Encounter for examination for adolescent development state    
#>  9 Z00.5          Encounter for examination of potential donor of organ and tis…
#> 10 Z00.6          Encounter for examination for normal comparison and control i…