Count Dawakhana Orders
curl --request GET \
--url https://api.eka.care/ipd/v1/service/dawakhana/orders/count \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/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/v1/service/dawakhana/orders/count', 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/service/dawakhana/orders/count",
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/service/dawakhana/orders/count"
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/service/dawakhana/orders/count")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/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>"
}Dawakhana
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
/
v1
/
service
/
dawakhana
/
orders
/
count
Count Dawakhana Orders
curl --request GET \
--url https://api.eka.care/ipd/v1/service/dawakhana/orders/count \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/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/v1/service/dawakhana/orders/count', 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/service/dawakhana/orders/count",
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/service/dawakhana/orders/count"
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/service/dawakhana/orders/count")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/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>"
}Headers
Query Parameters
Only orders created on or after this time (ISO-8601 date or epoch milliseconds). Ignored with admissionId.
Only orders created on or before this time (ISO-8601 date or epoch milliseconds). Ignored with admissionId.
Only orders of this IPD admission (all dates).
Was this page helpful?

