Create Payor Inference
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/payor_inference/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_document_file_ids": null,
"text": null,
"patient_id": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/payor_inference/"
payload = {
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_document_file_ids": None,
"text": None,
"patient_id": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
patient_document_file_ids: null,
text: null,
patient_id: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor_inference/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.silnahealth.com/api/public/v1/payor_inference/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'patient_document_file_ids' => null,
'text' => null,
'patient_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.silnahealth.com/api/public/v1/payor_inference/"
payload := strings.NewReader("{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.silnahealth.com/api/public/v1/payor_inference/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/payor_inference/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Payor Inference
Create Payor Inference
POST
/
public
/
v1
/
payor_inference
/
Create Payor Inference
curl --request POST \
--url https://app.silnahealth.com/api/public/v1/payor_inference/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_document_file_ids": null,
"text": null,
"patient_id": null
}
'import requests
url = "https://app.silnahealth.com/api/public/v1/payor_inference/"
payload = {
"provider_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_document_file_ids": None,
"text": None,
"patient_id": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
patient_document_file_ids: null,
text: null,
patient_id: null
})
};
fetch('https://app.silnahealth.com/api/public/v1/payor_inference/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.silnahealth.com/api/public/v1/payor_inference/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'patient_document_file_ids' => null,
'text' => null,
'patient_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.silnahealth.com/api/public/v1/payor_inference/"
payload := strings.NewReader("{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.silnahealth.com/api/public/v1/payor_inference/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.silnahealth.com/api/public/v1/payor_inference/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"patient_document_file_ids\": null,\n \"text\": null,\n \"patient_id\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}We support two different strategies for payor inference: NEAR_REALTIME and BASE. We recommend using NEAR_REALTIME
when you want to get a response quickly (in a matter of seconds) and BASE when you want to get a more accurate response (in a matter of minutes).
Currently, we only support NEAR_REALTIME and submitting with BASE will run with the NEAR_RELATIME strategy.
As this is an async endpoint, you will have to make a POST request to this endpoint
and then poll the response using the GET Payor Inference endpoint
until
status=COMPLETED or status=FAILED.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
NEAR_REALTIME, BASE Required provider identifier (for HIPAA compliance)
Optional list of document file IDs to process
Required array length:
1 - 10 elementsPayor Text
Required string length:
1 - 5000Optional patient identifier
Response
⌘I