curl --request POST \
--url https://api.v2.healthproximate.com/api/v1/drg/classify/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dx_codes": [
"<string>"
],
"pr_codes": [],
"gender": "F",
"is_alive": true,
"version": "v40"
}
'import requests
url = "https://api.v2.healthproximate.com/api/v1/drg/classify/"
payload = {
"dx_codes": ["<string>"],
"pr_codes": [],
"gender": "F",
"is_alive": True,
"version": "v40"
}
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({
dx_codes: ['<string>'],
pr_codes: [],
gender: 'F',
is_alive: true,
version: 'v40'
})
};
fetch('https://api.v2.healthproximate.com/api/v1/drg/classify/', 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://api.v2.healthproximate.com/api/v1/drg/classify/",
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([
'dx_codes' => [
'<string>'
],
'pr_codes' => [
],
'gender' => 'F',
'is_alive' => true,
'version' => 'v40'
]),
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://api.v2.healthproximate.com/api/v1/drg/classify/"
payload := strings.NewReader("{\n \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\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://api.v2.healthproximate.com/api/v1/drg/classify/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.v2.healthproximate.com/api/v1/drg/classify/")
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 \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\n}"
response = http.request(request)
puts response.read_body{
"primary_drg": "195",
"description": "SIMPLE PNEUMONIA AND PLEURISY WITHOUT CC/MCC",
"mdc": "04",
"type": "M",
"all_candidates": [
"195",
"000"
],
"version": "v40",
"fiscal_year": "FY 2023",
"input": {
"dx_codes": [
"J189",
"J310"
],
"gender": "F",
"is_alive": true,
"pr_codes": []
},
"response_time_ms": 12
}Classify ICD-10 codes into MS-DRG
Classify ICD-10-CM diagnosis codes and ICD-10-PCS procedure codes into an MS-DRG code using the vhdrg classification engine.
No LLM cost — this endpoint uses deterministic rule-based classification.
Supported MS-DRG versions: v36 (FY2019) through v40 (FY2023), and v43 (FY2026). CMS grouper data for v41/v42 is not shipped by the vhdrg engine.
curl --request POST \
--url https://api.v2.healthproximate.com/api/v1/drg/classify/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dx_codes": [
"<string>"
],
"pr_codes": [],
"gender": "F",
"is_alive": true,
"version": "v40"
}
'import requests
url = "https://api.v2.healthproximate.com/api/v1/drg/classify/"
payload = {
"dx_codes": ["<string>"],
"pr_codes": [],
"gender": "F",
"is_alive": True,
"version": "v40"
}
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({
dx_codes: ['<string>'],
pr_codes: [],
gender: 'F',
is_alive: true,
version: 'v40'
})
};
fetch('https://api.v2.healthproximate.com/api/v1/drg/classify/', 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://api.v2.healthproximate.com/api/v1/drg/classify/",
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([
'dx_codes' => [
'<string>'
],
'pr_codes' => [
],
'gender' => 'F',
'is_alive' => true,
'version' => 'v40'
]),
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://api.v2.healthproximate.com/api/v1/drg/classify/"
payload := strings.NewReader("{\n \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\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://api.v2.healthproximate.com/api/v1/drg/classify/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.v2.healthproximate.com/api/v1/drg/classify/")
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 \"dx_codes\": [\n \"<string>\"\n ],\n \"pr_codes\": [],\n \"gender\": \"F\",\n \"is_alive\": true,\n \"version\": \"v40\"\n}"
response = http.request(request)
puts response.read_body{
"primary_drg": "195",
"description": "SIMPLE PNEUMONIA AND PLEURISY WITHOUT CC/MCC",
"mdc": "04",
"type": "M",
"all_candidates": [
"195",
"000"
],
"version": "v40",
"fiscal_year": "FY 2023",
"input": {
"dx_codes": [
"J189",
"J310"
],
"gender": "F",
"is_alive": true,
"pr_codes": []
},
"response_time_ms": 12
}Authorizations
API key for organization authentication. Obtain from the organization settings or API key management endpoint.
Body
Request serializer for direct DRG classification endpoint.
ICD-10-CM diagnosis codes. First code is principal diagnosis.
11 - 10ICD-10-PCS procedure codes (7 characters each).
1 - 10Patient gender: "F" (female) or "M" (male)
F- FM- M
F, M Whether the patient was discharged alive
MS-DRG version (default: v40, FY 2023)
v36- v36v37- v37v38- v38v39- v39v40- v40v43- v43
v36, v37, v38, v39, v40, v43 Response
DRG classification result
Response serializer for direct DRG classification endpoint.
Primary DRG code (3-digit string)
DRG description
Major Diagnostic Category
DRG type: M (Medical) or P (Procedural)
All candidate DRG codes
MS-DRG version used
Fiscal year for the version
Echo of the input parameters
Show child attributes
Show child attributes
Response time in milliseconds

