Calculate MS-DRG IPPS payment
curl --request POST \
--url https://sandbox.rcintell.com/v1/drg/payment \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"ccn": "180017",
"covered_charges": 47024.59,
"length_of_stay": 6,
"ms_drg": "486"
}
'import requests
url = "https://sandbox.rcintell.com/v1/drg/payment"
payload = {
"ccn": "180017",
"covered_charges": 47024.59,
"length_of_stay": 6,
"ms_drg": "486"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ccn: '180017', covered_charges: 47024.59, length_of_stay: 6, ms_drg: '486'})
};
fetch('https://sandbox.rcintell.com/v1/drg/payment', 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://sandbox.rcintell.com/v1/drg/payment",
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([
'ccn' => '180017',
'covered_charges' => 47024.59,
'length_of_stay' => 6,
'ms_drg' => '486'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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://sandbox.rcintell.com/v1/drg/payment"
payload := strings.NewReader("{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://sandbox.rcintell.com/v1/drg/payment")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rcintell.com/v1/drg/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}"
response = http.request(request)
puts response.read_body{
"adjustments": {
"capital_dsh": 123,
"capital_ime": 123,
"capital_ime_factor": 123,
"capital_outlier": 123,
"federal_operating": 123,
"governing_basis": "<string>",
"hrr_adjustment": 123,
"hsp_part": 123,
"hsp_rate": 123,
"low_volume": 123,
"new_tech_add_on": 123,
"new_tech_applied": [
"<string>"
],
"operating_dsh": 123,
"operating_ime": 123,
"operating_ime_factor": 123,
"operating_outlier": 123,
"provider_type_class": "<string>",
"transfer_fraction": 123,
"transfer_type": "<string>",
"uncompensated_care": 123,
"vbp_adjustment": 123
},
"capital": {
"capital_base": 123,
"capital_cola": 123,
"capital_payment": 123,
"capital_rate": 123,
"gaf": 123,
"relative_weight": 123
},
"ccn": "<string>",
"drg": {
"arithmetic_mean_los": 123,
"geometric_mean_los": 123,
"mdc": "<string>",
"ms_drg": "<string>",
"post_acute_drg": true,
"relative_weight": 123,
"special_pay_drg": true,
"title": "<string>",
"type": "<string>",
"weight_before_cap": 123
},
"fiscal_year": 123,
"ms_drg": "<string>",
"operating": {
"labor_amount": 123,
"non_labor_amount": 123,
"operating_base": 123,
"operating_cola": 123,
"operating_payment": 123,
"rate_profile": "<string>",
"rate_profile_label": "<string>",
"relative_weight": 123,
"table": "<string>",
"wage_index": 123
},
"provider": {
"capital_ccr": 123,
"capital_cost_of_living_adjustment": 123,
"cbsa": "<string>",
"ccn": "<string>",
"cost_of_living_adjustment": 123,
"dsh_capital_factor": 123,
"dsh_operating_factor": 123,
"ehr_reduction": true,
"facility_specific_rate": 123,
"facility_type": "<string>",
"gaf": 123,
"hsp_rate_mdh": 123,
"low_volume_factor": 123,
"name": "<string>",
"operating_ccr": 123,
"provider_type": "<string>",
"quality_reduction": true,
"readmission_factor": 123,
"resident_to_bed_ratio": 123,
"state": "<string>",
"uncomp_care_per_claim": 123,
"vbp_factor": 123,
"wage_index": 123
},
"reliability": {
"generated_at": "<string>",
"data_sources": {},
"dataset_versions": {},
"degraded": false,
"warnings": [
"<string>"
]
},
"total_base_payment": 123,
"total_payment": 123,
"caveats": [
"<string>"
],
"discharge_date": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}knowledge
Calculate MS-DRG IPPS payment
FY2026 IPPS payment for an already-grouped MS-DRG.
Looks up the CCN in the CMS Impact File and the MS-DRG in Table 5, then runs the same FISS-pricer math as the website Payment Calculator. Does not group diagnoses or procedures into an MS-DRG.
POST
/
v1
/
drg
/
payment
Calculate MS-DRG IPPS payment
curl --request POST \
--url https://sandbox.rcintell.com/v1/drg/payment \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"ccn": "180017",
"covered_charges": 47024.59,
"length_of_stay": 6,
"ms_drg": "486"
}
'import requests
url = "https://sandbox.rcintell.com/v1/drg/payment"
payload = {
"ccn": "180017",
"covered_charges": 47024.59,
"length_of_stay": 6,
"ms_drg": "486"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ccn: '180017', covered_charges: 47024.59, length_of_stay: 6, ms_drg: '486'})
};
fetch('https://sandbox.rcintell.com/v1/drg/payment', 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://sandbox.rcintell.com/v1/drg/payment",
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([
'ccn' => '180017',
'covered_charges' => 47024.59,
'length_of_stay' => 6,
'ms_drg' => '486'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-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://sandbox.rcintell.com/v1/drg/payment"
payload := strings.NewReader("{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://sandbox.rcintell.com/v1/drg/payment")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rcintell.com/v1/drg/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ccn\": \"180017\",\n \"covered_charges\": 47024.59,\n \"length_of_stay\": 6,\n \"ms_drg\": \"486\"\n}"
response = http.request(request)
puts response.read_body{
"adjustments": {
"capital_dsh": 123,
"capital_ime": 123,
"capital_ime_factor": 123,
"capital_outlier": 123,
"federal_operating": 123,
"governing_basis": "<string>",
"hrr_adjustment": 123,
"hsp_part": 123,
"hsp_rate": 123,
"low_volume": 123,
"new_tech_add_on": 123,
"new_tech_applied": [
"<string>"
],
"operating_dsh": 123,
"operating_ime": 123,
"operating_ime_factor": 123,
"operating_outlier": 123,
"provider_type_class": "<string>",
"transfer_fraction": 123,
"transfer_type": "<string>",
"uncompensated_care": 123,
"vbp_adjustment": 123
},
"capital": {
"capital_base": 123,
"capital_cola": 123,
"capital_payment": 123,
"capital_rate": 123,
"gaf": 123,
"relative_weight": 123
},
"ccn": "<string>",
"drg": {
"arithmetic_mean_los": 123,
"geometric_mean_los": 123,
"mdc": "<string>",
"ms_drg": "<string>",
"post_acute_drg": true,
"relative_weight": 123,
"special_pay_drg": true,
"title": "<string>",
"type": "<string>",
"weight_before_cap": 123
},
"fiscal_year": 123,
"ms_drg": "<string>",
"operating": {
"labor_amount": 123,
"non_labor_amount": 123,
"operating_base": 123,
"operating_cola": 123,
"operating_payment": 123,
"rate_profile": "<string>",
"rate_profile_label": "<string>",
"relative_weight": 123,
"table": "<string>",
"wage_index": 123
},
"provider": {
"capital_ccr": 123,
"capital_cost_of_living_adjustment": 123,
"cbsa": "<string>",
"ccn": "<string>",
"cost_of_living_adjustment": 123,
"dsh_capital_factor": 123,
"dsh_operating_factor": 123,
"ehr_reduction": true,
"facility_specific_rate": 123,
"facility_type": "<string>",
"gaf": 123,
"hsp_rate_mdh": 123,
"low_volume_factor": 123,
"name": "<string>",
"operating_ccr": 123,
"provider_type": "<string>",
"quality_reduction": true,
"readmission_factor": 123,
"resident_to_bed_ratio": 123,
"state": "<string>",
"uncomp_care_per_claim": 123,
"vbp_factor": 123,
"wage_index": 123
},
"reliability": {
"generated_at": "<string>",
"data_sources": {},
"dataset_versions": {},
"degraded": false,
"warnings": [
"<string>"
]
},
"total_base_payment": 123,
"total_payment": 123,
"caveats": [
"<string>"
],
"discharge_date": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Body
application/json
Calculate FY2026 acute IPPS payment for a known MS-DRG at a CCN.
Response
FY2026 acute IPPS estimate for a known MS-DRG at a CCN