curl --request POST \
--url https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"org_connection_id": "16e39045-5382-42a0-b93d-b75268984c1f",
"fixtures": {
"tefca_ccda": "myra-jones.xml"
}
}
'import requests
url = "https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export"
payload = {
"org_connection_id": "16e39045-5382-42a0-b93d-b75268984c1f",
"fixtures": { "tefca_ccda": "myra-jones.xml" }
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
org_connection_id: '16e39045-5382-42a0-b93d-b75268984c1f',
fixtures: {tefca_ccda: 'myra-jones.xml'}
})
};
fetch('https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export', 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.connect.fastenhealth.com/v1/bridge/fhir/ehi-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'org_connection_id' => '16e39045-5382-42a0-b93d-b75268984c1f',
'fixtures' => [
'tefca_ccda' => 'myra-jones.xml'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export"
payload := strings.NewReader("{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"task_id": "c9c7a91b66b34fdca749bb8e9cfbf617",
"status": "pending"
}
}Bulk Records Request
This endpoint is idempotent. If a request with the same org_connection_id has already been registered, it will return the existing request.
This endpoint will register an bulk medical record export request with the Fasten Connect API for the provided org_connection_id (Patient id)
This functionality is similar in design to the HL7 EHI Export specification. However it is designed to be a unified API for all EHRs, as many EHRs do not support the HL7 EHI Export specification.
This endpoint requires an API public id & private key for authentication. Do not expose these keys in the browser.
This task will run asynchronously and may take some time to complete. You can check the status of the task using the Get Request Status endpoint.
On completion a webhook will be sent to your webhook_url with metadata about the task, and a download_link to download the results.
curl --request POST \
--url https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"org_connection_id": "16e39045-5382-42a0-b93d-b75268984c1f",
"fixtures": {
"tefca_ccda": "myra-jones.xml"
}
}
'import requests
url = "https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export"
payload = {
"org_connection_id": "16e39045-5382-42a0-b93d-b75268984c1f",
"fixtures": { "tefca_ccda": "myra-jones.xml" }
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
org_connection_id: '16e39045-5382-42a0-b93d-b75268984c1f',
fixtures: {tefca_ccda: 'myra-jones.xml'}
})
};
fetch('https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export', 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.connect.fastenhealth.com/v1/bridge/fhir/ehi-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'org_connection_id' => '16e39045-5382-42a0-b93d-b75268984c1f',
'fixtures' => [
'tefca_ccda' => 'myra-jones.xml'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export"
payload := strings.NewReader("{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"org_connection_id\": \"16e39045-5382-42a0-b93d-b75268984c1f\",\n \"fixtures\": {\n \"tefca_ccda\": \"myra-jones.xml\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"task_id": "c9c7a91b66b34fdca749bb8e9cfbf617",
"status": "pending"
}
}Authorizations
Basic Authentication, containing API Public Id and Private Key generated from the Fasten Connect Portal. Do not expose these keys in the browser.
Body
Update an existent pet in the store

