Attached is an example of a web service client that can be used to do a lookup against the CMS NPPES database to validate and retrieve information about a given National Provider Identification (NPI).
InterSystems Caché is a multi-model DBMS and application server. See more details here.