Count Dawakhana Orders
curl --request GET \
--url https://api.eka.care/ipd/service/dawakhana/orders/count \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/dawakhana/orders/count"
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/service/dawakhana/orders/count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/service/dawakhana/orders/count")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/dawakhana/orders/count");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/dawakhana/orders/count")
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": {
"CREATED": 4,
"DISPATCHED": 12,
"CANCELLED": 1,
"RETURNED": 2,
"PARTIALLY_RETURNED": 1,
"clearancePending": 3
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Orders
Count Dawakhana Orders
Overview
This API returns the number of Dawakhana orders of your workspace in each status, for dashboard counters. The counts cover every matching order, regardless of paging.
from, to and admissionId filter the status counts the same way as List Dawakhana Orders. clearancePending is the number of admissions still waiting for the in-house pharmacy’s discharge clearance, and is not affected by the filters.
GET
/
ipd
/
service
/
dawakhana
/
orders
/
count
Count Dawakhana Orders
curl --request GET \
--url https://api.eka.care/ipd/service/dawakhana/orders/count \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/dawakhana/orders/count"
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/service/dawakhana/orders/count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/service/dawakhana/orders/count")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/dawakhana/orders/count");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/dawakhana/orders/count")
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": {
"CREATED": 4,
"DISPATCHED": 12,
"CANCELLED": 1,
"RETURNED": 2,
"PARTIALLY_RETURNED": 1,
"clearancePending": 3
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Query Parameters
Was this page helpful?

