Get Discharge Release Rules
curl --request GET \
--url https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules', 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.eka.care/ipd/v1/service/admissions/discharge-release-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$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.eka.care/ipd/v1/service/admissions/discharge-release-rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rules": [
{
"id": "nursing",
"name": "Nursing",
"description": "Ward handover & belongings returned",
"enabled": true,
"mandatory": false
},
{
"id": "billing",
"name": "Billing",
"description": "Final bill settled · dues cleared",
"enabled": true,
"mandatory": true
},
{
"id": "pharmacy",
"name": "Pharmacy",
"description": "Unused meds returned · pharmacy dues closed",
"enabled": true,
"mandatory": false
},
{
"id": "lab",
"name": "Labs",
"description": "Pending reports delivered or flagged",
"enabled": false,
"mandatory": false
},
{
"id": "doctor",
"name": "Doctor",
"description": "Final review & summary sign-off",
"enabled": true,
"mandatory": false
},
{
"id": "discharge-summary",
"name": "Discharge Summary",
"description": "Discharge summary generated & saved",
"enabled": true,
"mandatory": false,
"can_disable": false
}
]
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Admissions
Get Discharge Release Rules
Overview
This API returns the discharge release rules of your workspace — the departments that must clear a patient before discharge (nursing, billing, pharmacy, labs, doctor and discharge summary).
Every rule is always returned, with your saved settings applied on top of the defaults (all enabled, none mandatory). The discharge-summary rule is always enabled and cannot be turned off (can_disable: false); it is always listed last.
GET
/
ipd
/
v1
/
service
/
admissions
/
discharge-release-rules
Get Discharge Release Rules
curl --request GET \
--url https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules', 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.eka.care/ipd/v1/service/admissions/discharge-release-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$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.eka.care/ipd/v1/service/admissions/discharge-release-rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/admissions/discharge-release-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rules": [
{
"id": "nursing",
"name": "Nursing",
"description": "Ward handover & belongings returned",
"enabled": true,
"mandatory": false
},
{
"id": "billing",
"name": "Billing",
"description": "Final bill settled · dues cleared",
"enabled": true,
"mandatory": true
},
{
"id": "pharmacy",
"name": "Pharmacy",
"description": "Unused meds returned · pharmacy dues closed",
"enabled": true,
"mandatory": false
},
{
"id": "lab",
"name": "Labs",
"description": "Pending reports delivered or flagged",
"enabled": false,
"mandatory": false
},
{
"id": "doctor",
"name": "Doctor",
"description": "Final review & summary sign-off",
"enabled": true,
"mandatory": false
},
{
"id": "discharge-summary",
"name": "Discharge Summary",
"description": "Discharge summary generated & saved",
"enabled": true,
"mandatory": false,
"can_disable": false
}
]
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Was this page helpful?

