Skip to contents

ICD-10-PCS Definitions

Usage

definitions(
  section = NULL,
  axis = NULL,
  col = c("value", "label", "name", "definition", "explanation"),
  search = NULL,
  display = FALSE
)

Arguments

section

PCS section: 0:9, B, C, F, G, H, X

axis

PCS axis: 3, 4, 5

col

column to search: "name", "value" (default), "label" "definition", "explanation"

string to search for in col

display

output for display, e.g. in ggplot or gt: TRUE or FALSE (default)

Value

a tibble

Examples

definitions(col = "label", search = "drain")
#> # A tibble: 2 × 7
#>   section axis  name      value label    definition                  explanation
#>   <chr>   <chr> <chr>     <chr> <chr>    <chr>                       <chr>      
#> 1 0       3     Operation 9     Drainage Taking or letting out flui… The qualif…
#> 2 1       3     Operation 9     Drainage Taking or letting out flui… NA         

definitions(section = "0", axis = "5")
#> # A tibble: 7 × 7
#>   section axis  name     value label                      definition explanation
#>   <chr>   <chr> <chr>    <chr> <chr>                      <chr>      <chr>      
#> 1 0       5     Approach X     External                   Procedure… NA         
#> 2 0       5     Approach 0     Open                       Cutting t… NA         
#> 3 0       5     Approach 3     Percutaneous               Entry, by… NA         
#> 4 0       5     Approach 4     Percutaneous Endoscopic    Entry, by… NA         
#> 5 0       5     Approach 7     Via Natural or Artificial… Entry of … NA         
#> 6 0       5     Approach 8     Via Natural or Artificial… Entry of … NA         
#> 7 0       5     Approach F     Via Natural or Artificial… Entry of … NA         

definitions(section = "B", col = "label", search = "fluoro")
#> # A tibble: 1 × 7
#>   section axis  name  value label       definition                   explanation
#>   <chr>   <chr> <chr> <chr> <chr>       <chr>                        <chr>      
#> 1 B       3     Type  1     Fluoroscopy Single plane or bi-plane re… NA         

definitions(section = "B", col = "label", search = "fluoro", display = TRUE)
#> # A tibble: 1 × 2
#>   label       definition                                                        
#>   <chr>       <chr>                                                             
#> 1 Fluoroscopy Single plane or bi-plane real time display of an image developed …