List tasks
curl --request GET \
--url https://api.eka.care/protocol/workflow/tasks \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/protocol/workflow/tasks"
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/tasks', 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/tasks")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/tasks");
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/tasks")
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": [
{
"scope": {
"type": "ADMISSION",
"id": "<string>"
},
"type": "<string>",
"status": "IN_PROGRESS",
"meta": {
"form_kind": "SA",
"sa_id": "<string>",
"template_id": "<string>"
},
"title": "<string>",
"description": "<string>",
"payload": {},
"requiredness": "MANDATORY",
"blocking": true,
"audience_keys": [
"<string>"
],
"estimate": "<string>",
"escalation": {
"after": "<string>",
"audience_keys": [
"<string>"
],
"title": "<string>"
},
"task_id": "<string>",
"bid": "<string>",
"assignee": "<string>",
"assignee_name": "<string>",
"source": {
"kind": "SYSTEM",
"event_id": "<string>",
"event_name": "<string>",
"fired_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"rule_id": "<string>",
"rule_version": 123,
"run_id": "<string>",
"index": 123,
"iteration": 123
},
"parent_task_id": "<string>",
"child_task_ids": [
"<string>"
],
"completed_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"due_at": "<string>",
"scheduled_at": "<string>",
"last_action": {
"action": "COMPLETED",
"at": "<string>",
"by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
}
},
"started_at": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"updated_at": "<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>"
}
]
}
}Tasks
List tasks
Newest first: the hospital’s tasks, or one scope’s (an admission) with scope_id.
GET
/
protocol
/
workflow
/
tasks
List tasks
curl --request GET \
--url https://api.eka.care/protocol/workflow/tasks \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/protocol/workflow/tasks"
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/tasks', 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/tasks")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/tasks");
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/tasks")
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": [
{
"scope": {
"type": "ADMISSION",
"id": "<string>"
},
"type": "<string>",
"status": "IN_PROGRESS",
"meta": {
"form_kind": "SA",
"sa_id": "<string>",
"template_id": "<string>"
},
"title": "<string>",
"description": "<string>",
"payload": {},
"requiredness": "MANDATORY",
"blocking": true,
"audience_keys": [
"<string>"
],
"estimate": "<string>",
"escalation": {
"after": "<string>",
"audience_keys": [
"<string>"
],
"title": "<string>"
},
"task_id": "<string>",
"bid": "<string>",
"assignee": "<string>",
"assignee_name": "<string>",
"source": {
"kind": "SYSTEM",
"event_id": "<string>",
"event_name": "<string>",
"fired_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"rule_id": "<string>",
"rule_version": 123,
"run_id": "<string>",
"index": 123,
"iteration": 123
},
"parent_task_id": "<string>",
"child_task_ids": [
"<string>"
],
"completed_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"due_at": "<string>",
"scheduled_at": "<string>",
"last_action": {
"action": "COMPLETED",
"at": "<string>",
"by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
}
},
"started_at": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"updated_at": "<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>"
}
]
}
}Was this page helpful?

