Update Discharge Release Rules
curl --request PUT \
--url https://api.eka.care/ipd/service/admissions/discharge-release-rules \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"rules": [
{
"id": "billing",
"enabled": true,
"mandatory": true
},
{
"id": "lab",
"enabled": false,
"mandatory": false
}
]
}
'import requests
url = "https://api.eka.care/ipd/service/admissions/discharge-release-rules"
payload = { "rules": [
{
"id": "billing",
"enabled": True,
"mandatory": True
},
{
"id": "lab",
"enabled": False,
"mandatory": False
}
] }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rules: [
{id: 'billing', enabled: true, mandatory: true},
{id: 'lab', enabled: false, mandatory: false}
]
})
};
fetch('https://api.eka.care/ipd/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/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 => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'rules' => [
[
'id' => 'billing',
'enabled' => true,
'mandatory' => true
],
[
'id' => 'lab',
'enabled' => false,
'mandatory' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/service/admissions/discharge-release-rules"
payload := strings.NewReader("{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("auth", "<auth>")
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.put("https://api.eka.care/ipd/service/admissions/discharge-release-rules")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/admissions/discharge-release-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rules": [
{
"id": "nursing",
"name": "<string>",
"description": "<string>",
"enabled": true,
"mandatory": true,
"can_disable": true
}
]
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Release rules
Update Discharge Release Rules
Overview
This API saves the discharge release rules of your workspace. Send each rule’s id with whether it is enabled and mandatory.
The saved list replaces your previous settings; rules you leave out go back to their defaults (enabled, not mandatory). Unknown rule ids are ignored, and the discharge-summary rule is always kept enabled. The response is the full, updated rule list.
Rule ids: nursing, billing, pharmacy, lab, doctor, discharge-summary.
PUT
/
ipd
/
service
/
admissions
/
discharge-release-rules
Update Discharge Release Rules
curl --request PUT \
--url https://api.eka.care/ipd/service/admissions/discharge-release-rules \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"rules": [
{
"id": "billing",
"enabled": true,
"mandatory": true
},
{
"id": "lab",
"enabled": false,
"mandatory": false
}
]
}
'import requests
url = "https://api.eka.care/ipd/service/admissions/discharge-release-rules"
payload = { "rules": [
{
"id": "billing",
"enabled": True,
"mandatory": True
},
{
"id": "lab",
"enabled": False,
"mandatory": False
}
] }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rules: [
{id: 'billing', enabled: true, mandatory: true},
{id: 'lab', enabled: false, mandatory: false}
]
})
};
fetch('https://api.eka.care/ipd/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/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 => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'rules' => [
[
'id' => 'billing',
'enabled' => true,
'mandatory' => true
],
[
'id' => 'lab',
'enabled' => false,
'mandatory' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/service/admissions/discharge-release-rules"
payload := strings.NewReader("{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("auth", "<auth>")
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.put("https://api.eka.care/ipd/service/admissions/discharge-release-rules")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/admissions/discharge-release-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rules\": [\n {\n \"id\": \"billing\",\n \"enabled\": true,\n \"mandatory\": true\n },\n {\n \"id\": \"lab\",\n \"enabled\": false,\n \"mandatory\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"rules": [
{
"id": "nursing",
"name": "<string>",
"description": "<string>",
"enabled": true,
"mandatory": true,
"can_disable": true
}
]
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Was this page helpful?

