Hawkynt

NPI

NPI (National Provider Identifier) check digit for US healthcare providers using Luhn algorithm. 10-digit unique identifier required by HIPAA for physicians, pharmacies, hospitals in electronic healthcare transactions. Administered by CMS (Centers for Medicare and Medicaid Services).

Properties

Property Value
Category Checksums
Sub-category Healthcare Identifier
Security status πŸŽ“ Educational Only
Complexity Beginner
Inventor US Department of Health and Human Services
Year 2007
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/checksum/npi-checksum.js

Security

Status: πŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Notes

Documentation

References

Test vectors

3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” Example NPI 1234567893

Field Value
input 313233343536373839
expected 03

Vector 2 β€” CMS Registry NPI 1993999998

Field Value
input 313939333939393939
expected 08

Vector 3 β€” Type 2 Organization NPI

Field Value
input 323334353637383930
expected 00

← All algorithms