Late Night Check Digit Routines – National Provider Identifier

On June 5, 2007 · 0 Comments

Check digit routines are fun. There is one for the “National Provider Identifier” that a friend alerted me to this evening. He undertook implementing the algorithm in Perl, and I agreed to do a version of it in Ruby (my new favorite language). Below, I’ve include the source, replete with comments that I implemented the algorithm by. This code is provided with NO WARRANTY. Let me know if you use this code, or if you find problems with it.

Download Link: National Provider Identifier Ruby Code

If you’re looking for more information on this topic, a couple of links are:

http://www.claredi.com/download/npi_resources.php
http://www.medavanthealth.com/implementation/npi/NPI_check_digit.pdf
Continue Reading…