NpiRegistry 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package NpiRegistry --version 1.0.3                
NuGet\Install-Package NpiRegistry -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NpiRegistry" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NpiRegistry --version 1.0.3                
#r "nuget: NpiRegistry, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NpiRegistry as a Cake Addin
#addin nuget:?package=NpiRegistry&version=1.0.3

// Install NpiRegistry as a Cake Tool
#tool nuget:?package=NpiRegistry&version=1.0.3                

NpiRegistry

A client package for interacting with the United States National Provider Identifier (NPI) registry API

Introduction

From the CMS.gov web site:

The National Provider Identifier (NPI) is a Health Insurance Portability and Accountability Act (HIPAA) Administrative Simplification Standard. The NPI is a unique identification number for covered health care providers. Covered health care providers and all health plans and health care clearinghouses must use the NPIs in the administrative and financial transactions adopted under HIPAA. The NPI is a 10-position, intelligence-free numeric identifier (10-digit number).

This package provides easy-to-use functionality that queries the NPI registry API. Version 2.1 of the API is the only supported version in this package. CMS has deprecated previous versions of the API, so that shouldn't be a problem.

Example Usage

To synchronously retrieve information for a specific NPI number, in this case the fictitious number 1234567890:

var npiClient = new NpiRegistryClient();
var searchResult = npiClient.SearchByNumber("1234567890")

To asynchronously retrieve the first 50 registered healthcare providers in the state of Colorado:

var npiClient = new NpiRegistryClient();
var searchResults = await npiClient.SearchByState("CO", 50);

To asynchronously retrieve the second 100 (skipping the first 100) registered healthcare providers in the state of Colorado with a last name of "Smith":

var npiClient = new NpiRegistryClient();

var npiSearchOptions = new NpiRegistrySearchOptions() 
{
    LastName = "Smith",
    State = "CO",
    Limit = 100,
    Skip = 100
};

var searchResults = await npiClient.SearchAsync(npiSearchOptions);

Issues

The CMS.gov web service may rate-limit or restrict the number of queries per hour. For full details on the API, check out their website.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 34 1/27/2025
1.0.3 32 1/26/2025
1.0.2 32 1/26/2025
1.0.1 32 1/26/2025