Reopen a discharge clearance
curl --request POST \
--url https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen"
payload = { "note": "<string>" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"note\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"statuses": {},
"completed_count": 123,
"total": 123,
"all_complete": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Initiate & clearances
Reopen a discharge clearance
Moves one clearance back to PENDING — the undo for a mistaken completion — records a CLEARANCE event, and updates the admission’s clearances_summary and discharge_ready.
POST
/
ipd
/
sdk
/
admissions
/
{admission_id}
/
clearances
/
{type}
/
reopen
Reopen a discharge clearance
curl --request POST \
--url https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen"
payload = { "note": "<string>" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"note\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"statuses": {},
"completed_count": 123,
"total": 123,
"all_complete": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Headers
Path Parameters
Id of the IPD admission.
Minimum string length:
1type
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>Option 5 · enum<string>
required
Clearance type.
Available options:
pharmacy Body
application/json
Was this page helpful?

