Introduction
The PatientNow Web App only accepts valid NPI and DEA numbers. The Web App outlines the box in red and displays Invalid if an NPI and/or DEA number is entered incorrectly. Let’s walk through the requirements for NPI and DEA numbers.
NPI Numbers
Every NPI number is a 10 digit or 15 digit number that identifies a healthcare practitioner. The last digit of the number is a “check digit” that allows people and systems to verify if the NPI number is valid. PatientNow will mark an NPI number as invalid if the check digit is incorrect.
10 Digit vs.15 Digit NPI Numbers
The prefix 80840 is attached to an NPI number when used as a card issuer identifier on a standard health ID card. The “80” indicates healthcare and the “840” indicates the USA. PatientNow requires entering only the 10-digit NPI number.
How the NPI Check Digit Works
To identify whether the check digit is correct for a 10-digit NPI number, let’s use the NPI number 1 2 13 123456789? as an example.
Starting with the last digit (excluding the check digit), double the value of every other digit.
2 2 6 4 10 6 14 8 18
Take the sum of each digit in the resulting 2-digit numbers. For instance, for the number 18, the sum would be 9 (1+8=9).
2 2 6 4 1+0 6 1+4 8 1+8
Take the sum of all the numbers:
2 + 2 + 6 + 4 + 1+0 + 6 + 1+4 + 8 + 1+8 = 43
Take the sum from step 3 and add 24:
43 + 24 = 67
Subtract the last digit of the sum from step 3 from 10:
10 - 7 = 3
The result from step 4 is the check digit. Therefore, the valid NPI number is 1234567893.
DEA Numbers
DEA numbers are required to write prescriptions for controlled drugs. Each DEA number is made up of 2 letters and 7 digits. The first letter identifies the type of prescriber (ie. practitioner, hospital, pharmacy, etc.) and the second letter is the first letter of the prescriber’s last name. The last digit of the number is a “check digit” that allows people and systems to verify that the DEA number is valid. PatientNow will mark a DEA number as invalid if either of the letters or the check digit is incorrect.
How the DEA Check Digit Works
To identify whether the check digit is correct for a DEA number, let’s use the DEA number 123456? as an example.
Take the sum of the 1st, 3rd and 5th digits: 1+3+5 = 9
Take the sum of the 2nd, 4th and 6th digits: 2+4+6 = 12
Multiply the sum from step 2 by 2: 12 x 2 = 24
Add the results from steps 1 and 3: 9 + 24 = 33.
The check digit is the last digit of the sum from step 4. A correct DEA number would have the digits 1234563.
In the example above, if the prescriber is Dr. Douglas, a correct DEA number would be HD1234563.
Note: H is never a valid first letter; it is only used for the purpose of this exercise.