Skip to contents

A valid HCPCS Level I code is:

Usage

is_hcpcs_level_I(hcpcs_code)

Arguments

hcpcs_code

<chr> string

Value

<lgl> TRUE if valid, otherwise FALSE

Details

  • 5 characters long

  • Begins with any 4 digits, [0-9]{4}, and

  • Ends with one of [AFMTU0-9]

HCPCS Level I is comprised of CPT (Current Procedural Terminology), a numeric coding system maintained by the American Medical Association (AMA).

CPT is a uniform coding system consisting of descriptive terms and identifying codes that are used primarily to identify medical services and procedures furnished by physicians and other health care professionals.

These health care professionals use the CPT to identify services and procedures for which they bill public or private health insurance programs.

Decisions regarding the addition, deletion, or revision of CPT codes are made by the AMA. The CPT codes are republished and updated annually by the AMA.

Level I does not include codes needed to separately report medical items or services that are regularly billed by suppliers other than physicians.

Examples

x <- c('T1503', 'G0478', '81301', '69641', '0583F', '0779T', NA)

is_hcpcs_level_I(x)
#> [1] FALSE FALSE  TRUE  TRUE  TRUE  TRUE    NA

x[which(is_hcpcs_level_I(x))]
#> [1] "81301" "69641" "0583F" "0779T"