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));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();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/admissions/discharge-release-rules");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\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}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
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));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();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/admissions/discharge-release-rules");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\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}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
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?

