U bent hier:
InsProviderNetworkService:getProvidersByNameOrNPI
Gebruik deze service om gebruikers toe te staan om naar aanbieders te zoeken met behulp van een zoeksleutel.
Methode:getProvidersByNameOrNPI
De manier waarop het werkt...
-
De service haalt records van aanbieders op waarbij de Voornaam, Achternaam of NPI (ProviderIdentifier__c) begint met de
searchKey. -
De resulterende lijst wordt geretourneerd als onderdeel van de uitvoer-JSON in het resultaatknooppunt.
Gebruikersinvoer
Invoer |
Beschrijving |
|---|---|
|
Tekenreeks Gebruikt om te controleren op FirstName, LastName of Provider NPI. |
Invoer-JSON
JSON-invoer wordt als volgt ingedeeld:
{
"searchKey": <search string>
}Voorbeeld van JSON-invoer met gegevens:
{
"searchKey": "John"
}Uitvoer-JSON
JSON-uitvoer wordt als volgt ingedeeld:
{
"searchKey": <search string>,
"result": [
{
"Name": <Contact.name field value>,
"FirstName": <Contact.FirstName field value>,
"LastName": <Contact.LastName field value>,
"ProviderIdentifier__c": <Contact.ProviderIdentifier__c field value>,
"Id": <Contact record ID>,
"RecordTypeId": <Contact Record Type>
}
],
"error": "OK"
}Voorbeeld van JSON-uitvoer met gegevens, met searchKey Joh. Zie hoe John en Johann worden geretourneerd in het resultaat.
{
"searchKey": "Joh",
"result": [
{
"Name": "John Smith",
"FirstName": "John",
"LastName": "Smith",
"ProviderIdentifier__c": "DE0049",
"Id": "0035w0000396WMzAAM",
"RecordTypeId": "0125w000001FVCuAAO"
},
{
"Name": "Leslie Johann",
"FirstName": "Leslie",
"LastName": "Johann",
"Id": "0035w00003976D2AAI",
"RecordTypeId": "0125w000001FVCuAAO"
},
],
"error": "OK"
}
