Get the catalog
curl --request GET \
--url https://api.eka.care/protocol/workflow/default-events \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/protocol/workflow/default-events"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/protocol/workflow/default-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/protocol/workflow/default-events")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/default-events");
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/protocol/workflow/default-events")
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{
"status": "success",
"data": {
"events": [
{
"name": "<string>",
"scope": "ADMISSION",
"label": "<string>",
"closes_scope": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"also_closes": [
"ADMISSION"
]
}
],
"fields": [
{
"field": "<string>",
"source": "<string>",
"scope": "ADMISSION",
"label": "<string>",
"type": "string",
"operators": [
"equal"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"values": [
"<string>"
],
"values_from": "<string>",
"value_labels": {},
"min": 123,
"max": 123,
"note": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}Rules & catalog
Get the catalog
The events and fields rules can use, for one scope or all.
GET
/
protocol
/
workflow
/
default-events
Get the catalog
curl --request GET \
--url https://api.eka.care/protocol/workflow/default-events \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/protocol/workflow/default-events"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/protocol/workflow/default-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/protocol/workflow/default-events")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/default-events");
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/protocol/workflow/default-events")
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{
"status": "success",
"data": {
"events": [
{
"name": "<string>",
"scope": "ADMISSION",
"label": "<string>",
"closes_scope": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"also_closes": [
"ADMISSION"
]
}
],
"fields": [
{
"field": "<string>",
"source": "<string>",
"scope": "ADMISSION",
"label": "<string>",
"type": "string",
"operators": [
"equal"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"values": [
"<string>"
],
"values_from": "<string>",
"value_labels": {},
"min": 123,
"max": 123,
"note": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}Headers
The access token. The gateway verifies it and passes the user and the business on.
Query Parameters
Available options:
ADMISSION, DISCHARGE, APPOINTMENT, PRESCRIPTION, PATIENT Was this page helpful?

