validate
curl --request POST \
--url https://dev.api.slingshotml.com/v2/validate \
--header 'Content-Type: application/json' \
--header 'SLINGSHOT_KEY: <api-key>' \
--data '
{
"claim": {
"date_of_service_start": "2023-12-10",
"date_of_service_end": "2023-12-20",
"plan_id": "1234AB56789",
"billing_provider_npi": 1457450116,
"principal_diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"secondary_diagnosis": [
{
"code": "J18. 9",
"present_on_admission": "Y"
}
],
"admitting_diagnosis": {
"code": "J18. 9",
"present_on_admission": "Y"
},
"procedures": [],
"discharge_status": 1
},
"discharge_summary": {
"text": "Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\nAdmission Diagnosis:\nPneumonia\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia..."
}
}
'import requests
url = "https://dev.api.slingshotml.com/v2/validate"
payload = {
"claim": {
"date_of_service_start": "2023-12-10",
"date_of_service_end": "2023-12-20",
"plan_id": "1234AB56789",
"billing_provider_npi": 1457450116,
"principal_diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"secondary_diagnosis": [
{
"code": "J18. 9",
"present_on_admission": "Y"
}
],
"admitting_diagnosis": {
"code": "J18. 9",
"present_on_admission": "Y"
},
"procedures": [],
"discharge_status": 1
},
"discharge_summary": { "text": "Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith
Admission Diagnosis:
Pneumonia
Surgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia..." }
}
headers = {
"SLINGSHOT_KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {SLINGSHOT_KEY: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim: {
date_of_service_start: '2023-12-10',
date_of_service_end: '2023-12-20',
plan_id: '1234AB56789',
billing_provider_npi: 1457450116,
principal_diagnosis: {code: 'A40.9', present_on_admission: 'Y'},
secondary_diagnosis: [{code: 'J18. 9', present_on_admission: 'Y'}],
admitting_diagnosis: {code: 'J18. 9', present_on_admission: 'Y'},
procedures: [],
discharge_status: 1
},
discharge_summary: {
text: 'Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\nAdmission Diagnosis:\nPneumonia\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...'
}
})
};
fetch('https://dev.api.slingshotml.com/v2/validate', 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://dev.api.slingshotml.com/v2/validate",
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([
'claim' => [
'date_of_service_start' => '2023-12-10',
'date_of_service_end' => '2023-12-20',
'plan_id' => '1234AB56789',
'billing_provider_npi' => 1457450116,
'principal_diagnosis' => [
'code' => 'A40.9',
'present_on_admission' => 'Y'
],
'secondary_diagnosis' => [
[
'code' => 'J18. 9',
'present_on_admission' => 'Y'
]
],
'admitting_diagnosis' => [
'code' => 'J18. 9',
'present_on_admission' => 'Y'
],
'procedures' => [
],
'discharge_status' => 1
],
'discharge_summary' => [
'text' => 'Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith
Admission Diagnosis:
Pneumonia
Surgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"SLINGSHOT_KEY: <api-key>"
],
]);
$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://dev.api.slingshotml.com/v2/validate"
payload := strings.NewReader("{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("SLINGSHOT_KEY", "<api-key>")
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://dev.api.slingshotml.com/v2/validate")
.header("SLINGSHOT_KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.slingshotml.com/v2/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["SLINGSHOT_KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}"
response = http.request(request)
puts response.read_body{
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"validation": [
{
"diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"determination": {
"result": "Unsupported",
"confidence": 0.88,
"reasoning": "Diagnosis not supported as the SOFA score threshold was not met when account for baseline creatinine",
"evidence": [
{
"criteria": "Renal Dysfunction",
"source": {
"start_index": 1319,
"end_index": 1362,
"text": "CKD baseline 1.3 elevated to 2.1 creatinine"
},
"evaluation": "Rejects"
}
]
}
}
]
}This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.API Reference
Validate Claim
Validate Claims through Discharge Summary Analysis: This endpoint is designed to analyze hospital discharge summaries for the clinical validation of claims, ensuring accuracy and compliance in claim processing. It returns a determination, confidence score, and supporting evidence. The determination is based on the clinical criteria and the evidence found in the discharge summary. The confidence score is a value between 0 and 1, with 1 being the highest confidence. The supporting evidence is the clinical criteria and the source of the evidence.
POST
/
validate
validate
curl --request POST \
--url https://dev.api.slingshotml.com/v2/validate \
--header 'Content-Type: application/json' \
--header 'SLINGSHOT_KEY: <api-key>' \
--data '
{
"claim": {
"date_of_service_start": "2023-12-10",
"date_of_service_end": "2023-12-20",
"plan_id": "1234AB56789",
"billing_provider_npi": 1457450116,
"principal_diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"secondary_diagnosis": [
{
"code": "J18. 9",
"present_on_admission": "Y"
}
],
"admitting_diagnosis": {
"code": "J18. 9",
"present_on_admission": "Y"
},
"procedures": [],
"discharge_status": 1
},
"discharge_summary": {
"text": "Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\nAdmission Diagnosis:\nPneumonia\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia..."
}
}
'import requests
url = "https://dev.api.slingshotml.com/v2/validate"
payload = {
"claim": {
"date_of_service_start": "2023-12-10",
"date_of_service_end": "2023-12-20",
"plan_id": "1234AB56789",
"billing_provider_npi": 1457450116,
"principal_diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"secondary_diagnosis": [
{
"code": "J18. 9",
"present_on_admission": "Y"
}
],
"admitting_diagnosis": {
"code": "J18. 9",
"present_on_admission": "Y"
},
"procedures": [],
"discharge_status": 1
},
"discharge_summary": { "text": "Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith
Admission Diagnosis:
Pneumonia
Surgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia..." }
}
headers = {
"SLINGSHOT_KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {SLINGSHOT_KEY: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim: {
date_of_service_start: '2023-12-10',
date_of_service_end: '2023-12-20',
plan_id: '1234AB56789',
billing_provider_npi: 1457450116,
principal_diagnosis: {code: 'A40.9', present_on_admission: 'Y'},
secondary_diagnosis: [{code: 'J18. 9', present_on_admission: 'Y'}],
admitting_diagnosis: {code: 'J18. 9', present_on_admission: 'Y'},
procedures: [],
discharge_status: 1
},
discharge_summary: {
text: 'Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\nAdmission Diagnosis:\nPneumonia\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...'
}
})
};
fetch('https://dev.api.slingshotml.com/v2/validate', 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://dev.api.slingshotml.com/v2/validate",
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([
'claim' => [
'date_of_service_start' => '2023-12-10',
'date_of_service_end' => '2023-12-20',
'plan_id' => '1234AB56789',
'billing_provider_npi' => 1457450116,
'principal_diagnosis' => [
'code' => 'A40.9',
'present_on_admission' => 'Y'
],
'secondary_diagnosis' => [
[
'code' => 'J18. 9',
'present_on_admission' => 'Y'
]
],
'admitting_diagnosis' => [
'code' => 'J18. 9',
'present_on_admission' => 'Y'
],
'procedures' => [
],
'discharge_status' => 1
],
'discharge_summary' => [
'text' => 'Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith
Admission Diagnosis:
Pneumonia
Surgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"SLINGSHOT_KEY: <api-key>"
],
]);
$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://dev.api.slingshotml.com/v2/validate"
payload := strings.NewReader("{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("SLINGSHOT_KEY", "<api-key>")
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://dev.api.slingshotml.com/v2/validate")
.header("SLINGSHOT_KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.slingshotml.com/v2/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["SLINGSHOT_KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim\": {\n \"date_of_service_start\": \"2023-12-10\",\n \"date_of_service_end\": \"2023-12-20\",\n \"plan_id\": \"1234AB56789\",\n \"billing_provider_npi\": 1457450116,\n \"principal_diagnosis\": {\n \"code\": \"A40.9\",\n \"present_on_admission\": \"Y\"\n },\n \"secondary_diagnosis\": [\n {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n }\n ],\n \"admitting_diagnosis\": {\n \"code\": \"J18. 9\",\n \"present_on_admission\": \"Y\"\n },\n \"procedures\": [],\n \"discharge_status\": 1\n },\n \"discharge_summary\": {\n \"text\": \"Patient Name: John Doe Patient ID: 123456 Date of Birth: 01/01/1980 Date of Admission: 12/10/2023 Date of Discharge: 12/20/2023 Attending Physician: Dr. Jane Smith\\nAdmission Diagnosis:\\nPneumonia\\nSurgical Procedure: None Hospital Course: Mr. John Doe, a 40-year-old male, was admitted to the hospital with symptoms of high fever, cough, shortness of breath, and chest pain. Based on clinical examination and chest X-ray findings, he was diagnosed with bacterial pneumonia...\"\n }\n}"
response = http.request(request)
puts response.read_body{
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"validation": [
{
"diagnosis": {
"code": "A40.9",
"present_on_admission": "Y"
},
"determination": {
"result": "Unsupported",
"confidence": 0.88,
"reasoning": "Diagnosis not supported as the SOFA score threshold was not met when account for baseline creatinine",
"evidence": [
{
"criteria": "Renal Dysfunction",
"source": {
"start_index": 1319,
"end_index": 1362,
"text": "CKD baseline 1.3 elevated to 2.1 creatinine"
},
"evaluation": "Rejects"
}
]
}
}
]
}This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.Authorizations
Body
application/json
⌘I

