CCole / RESTConsumption

Consuming RESTful service with angular and styling with cbp theme
0 stars 0 forks source link

NPI validation using Luhn algorithm #4

Open CCole opened 7 years ago

CCole commented 7 years ago

-[ ] validate npi on client. Create npi validation service that implements NPI algorithm. -[ ] add notification to form

CCole commented 7 years ago

4 Research possible API

NPI data is downloadable from CMS. The downloadable database was updated monthly until December 2012, and has been issued weekly since. A data structure file is available separately from CMS.[3] As of March 15, 2016 the file download size is 569 MB, and the full database is over 5.7 GB when extracted.[4] https://en.wikipedia.org/wiki/National_Provider_Identifier

CCole commented 7 years ago

The NPI was proposed as an 8-position alphanumeric identifier. However, many stakeholders preferred a 10-position numeric identifier with a check digit in the last position (the first 9 positions are the identifier and the last position is a check digit) to help detect keying errors. The NPI contains no embedded intelligence; that is, it contains no information about the health care provider, such as the type or location of the health care provider. An NPI number that is a 10-digit NPI Number may be validated using the Luhn algorithm by prefixing "80840" to the 10-digit number.