curl --request POST \
--url 'https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify' \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.v2.healthproximate.com/api/v1/fhir/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/fhir/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_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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/fhir/drg/$classify")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.v2.healthproximate.com/api/v1/fhir/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>'
response = http.request(request)
puts response.read_bodyClassify a FHIR R4 Bundle into an MS-DRG ($classify)
FHIR front door for the deterministic DRG classifier. Send a Bundle containing
the encounter’s Condition resources (ICD-10-CM codings; principal marked via
Encounter.diagnosis rank 1, else first-listed), optional Procedure
resources (ICD-10-PCS codings), a minimal Patient (only gender is read),
and optionally an Encounter (hospitalization.dischargeDisposition maps to
discharge status).
Patient identifiers are dropped at the boundary — names, identifiers,
addresses and telecom are never read and never stored; the response attests
this with fhir_identifiers_dropped. The submitted Bundle is not persisted.
Returns a FHIR Parameters resource carrying the DRG code, description and
grouper version. Malformed or unclassifiable input returns an
OperationOutcome — never a partial result.
curl --request POST \
--url 'https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify' \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.v2.healthproximate.com/api/v1/fhir/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/fhir/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_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.v2.healthproximate.com/api/v1/fhir/drg/$classify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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/fhir/drg/$classify")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.v2.healthproximate.com/api/v1/fhir/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>'
response = http.request(request)
puts response.read_bodyAuthorizations
API key for organization authentication. Obtain from the organization settings or API key management endpoint.
Response
FHIR Parameters with the DRG result

