function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AndyuxAndyux 

Anyone used API call to NPI?

NPI (National Provider Identifier) provides an API, I also see bloomapi.com and
npibox.com that apparently provide the same information. 
I want to be able to lookup NPI when sales reps are creating accounts (and or opportunities?) to get clean data and NPI Id. 
Any preferences or experience with these? 
Thanks!
Andres
Best Answer chosen by Andyux
AndyuxAndyux
I have been using http://www.sunshineactsoftware.com/ (http://www.sunshineactsoftware.com); let me know if youneed help with CMS/NPI/salesforce

All Answers

Andy BoettcherAndy Boettcher
There are two directions you can take with this:

SYNCHRONOUS method - you will need to override the "New" page link with your own Visualforce (or Lightning in Visualforce) so you can hook into keyboard/mouse/touch actions to fire the API callouts.  You can provide instant feedback to your users this way.

ASYNCHRONOUS method - you can leave standard new/view pages in place.  However, since you cannot make callouts in a trigger/synchronous use case, you'll need to spin up Future or Batch Apex from a trigger to make the callout asynchronously, parse results, and then save those results back in the record.  Your users will not see updated information unless they refresh the "View" page a few moments after their initial save.

If it were me, and instant feedback was not a "first version" requirement, I would start with the asynchronous method so you can focus on the callout and parsing the results.  You can always move that code into a synchronous solution if need be down the road.
Puneet Bajaj 3Puneet Bajaj 3
I would prefer bloomapi.com for NPI validation.
We've implemented bloomapi.com and would recommend it.
AndyuxAndyux
I have been using http://www.sunshineactsoftware.com/ (http://www.sunshineactsoftware.com); let me know if youneed help with CMS/NPI/salesforce
This was selected as the best answer
Rochak Jain 9Rochak Jain 9
can you please share your apex code it will help me alot? I am totally new in salesforce healthcloud