List an admission's discharge clearances
curl --request GET \
--url https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances"
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/sdk/admissions/{admission_id}/clearances', 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/sdk/admissions/{admission_id}/clearances",
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/sdk/admissions/{admission_id}/clearances"
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/sdk/admissions/{admission_id}/clearances")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances")
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[
{
"type": "pharmacy",
"status": "PENDING",
"note": "<string>",
"completed_by": {
"id": "<string>",
"name": "<string>",
"role": "<string>"
},
"completed_at": "<string>",
"updated_at": "<string>",
"notify": {}
}
]{
"message": "<string>"
}{
"message": "<string>"
}Discharge & Clearances
List an admission's discharge clearances
Returns the admission’s clearance documents (pharmacy, lab, financial, nursing, doctor). A clearance that has never been completed or reopened has no document yet, so it is not listed. The pharmacy clearance also carries the per-pharmacy notification state in notify.
GET
/
ipd
/
v1
/
sdk
/
admissions
/
{admission_id}
/
clearances
List an admission's discharge clearances
curl --request GET \
--url https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances"
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/sdk/admissions/{admission_id}/clearances', 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/sdk/admissions/{admission_id}/clearances",
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/sdk/admissions/{admission_id}/clearances"
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/sdk/admissions/{admission_id}/clearances")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/sdk/admissions/{admission_id}/clearances")
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[
{
"type": "pharmacy",
"status": "PENDING",
"note": "<string>",
"completed_by": {
"id": "<string>",
"name": "<string>",
"role": "<string>"
},
"completed_at": "<string>",
"updated_at": "<string>",
"notify": {}
}
]{
"message": "<string>"
}{
"message": "<string>"
}Headers
Path Parameters
Id of the IPD admission.
Minimum string length:
1Response
OK
type
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 Available options:
PENDING Actor recorded on the change; defaults to the authenticated operator.
Show child attributes
Show child attributes
ISO date-time.
ISO date-time.
Pharmacy only: per-pharmacy discharge notification state.
Was this page helpful?

