Regular expressions for HCPCS codes
14 hours ago
- HCPCS stands for Healthcare Common Procedure Coding System, pronounced 'hick picks,' and usually refers to Level II codes.
- The standard format of a HCPCS code is one letter followed by four digits, e.g., [A-Z]\d{4}, with some letters excluded.
- HCPCS codes can have modifiers consisting of a letter and a letter or digit, with 384 official modifiers currently available.
- A regex pattern for matching HCPCS codes with optional modifiers is [A-CEGHJ-MP-V][0-9]\d{4}(-[A-Z][A-Z0-9])?.
- Regex-based search is significantly faster (20 ms) than exhaustive list search (46 seconds) but may include false positives.