Register Records Adapter
curl --request POST \
--url https://api.eka.care/abdm/nhcx/v1/records/adapters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_url": "<string>",
"capabilities": {},
"active": true,
"auth_headers": {},
"flows": {},
"name": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/records/adapters"
payload = {
"base_url": "<string>",
"capabilities": {},
"active": True,
"auth_headers": {},
"flows": {},
"name": "<string>"
}
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({
base_url: '<string>',
capabilities: {},
active: true,
auth_headers: {},
flows: {},
name: '<string>'
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/records/adapters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/nhcx/v1/records/adapters")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhcx/v1/records/adapters");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/records/adapters")
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 \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"base_url": "<string>",
"capabilities": {},
"flows": {},
"hip_id": "<string>",
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}Records Adapter
Register Records Adapter
Registers where your HIS records API lives and how to call it, for the HIP in X-Hip-Id. Each capability is one templated HTTP call with an extract map; flows chain them. The records APIs read visit_ids and fhir from the finished flow.
POST
/
abdm
/
nhcx
/
v1
/
records
/
adapters
Register Records Adapter
curl --request POST \
--url https://api.eka.care/abdm/nhcx/v1/records/adapters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_url": "<string>",
"capabilities": {},
"active": true,
"auth_headers": {},
"flows": {},
"name": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/records/adapters"
payload = {
"base_url": "<string>",
"capabilities": {},
"active": True,
"auth_headers": {},
"flows": {},
"name": "<string>"
}
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({
base_url: '<string>',
capabilities: {},
active: true,
auth_headers: {},
flows: {},
name: '<string>'
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/records/adapters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/nhcx/v1/records/adapters")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhcx/v1/records/adapters");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/records/adapters")
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 \"base_url\": \"<string>\",\n \"capabilities\": {},\n \"active\": true,\n \"auth_headers\": {},\n \"flows\": {},\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"base_url": "<string>",
"capabilities": {},
"flows": {},
"hip_id": "<string>",
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}Authorizations
Headers
Body
application/json
Was this page helpful?

