curl --request POST \
--url https://api.eka.care/admin/datasets/v1/search-status/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'import requests
url = "https://api.eka.care/admin/datasets/v1/search-status/"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://api.eka.care/admin/datasets/v1/search-status/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/admin/datasets/v1/search-status/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/admin/datasets/v1/search-status/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"enabled\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/search-status/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_bodyTurn partner search on or off
Switches partner search in the Eka Medical Database to use this catalog, or back off. Turn it on once, after your first successful write; later syncs don’t need to touch it. Turning it off is the rollback if a catalog turns out to be wrong.
Panel search (lab_panel) can only be on while result search (lab_result) is on for the same knowledge base. A request that would break this is refused with a 400 and nothing changes: turning lab_panel on while lab_result is off returns code turn_on_results_first, turning lab_panel on while lab_result is on in a different knowledge base returns code results_in_other_kb, and turning lab_result off while lab_panel is on in the same knowledge base returns code turn_off_panels_first.
curl --request POST \
--url https://api.eka.care/admin/datasets/v1/search-status/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'import requests
url = "https://api.eka.care/admin/datasets/v1/search-status/"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://api.eka.care/admin/datasets/v1/search-status/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/admin/datasets/v1/search-status/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/admin/datasets/v1/search-status/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"enabled\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/admin/datasets/v1/search-status/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body400 and nothing changes:| Request | Message | Error code |
|---|---|---|
Turn lab_panel on while lab_result is off | Turn on search for results first | turn_on_results_first |
Turn lab_panel on while lab_result is on in a different knowledge base | Turn on search for results in the same knowledge base first | results_in_other_kb |
Turn lab_result off while lab_panel is on in the same knowledge base | Turn off search for panels first | turn_off_panels_first |
Authorizations
Access token for your workspace.
Query Parameters
Which catalog to act on.
medication, lab_investigation, lab_result, lab_panel, symptom, diagnosis Body
Was this page helpful?

