Oracle Health (Cerner) FHIR API
cerner.com · Company
FHIR R4 API for Oracle Health (formerly Cerner) — the second largest EHR in the US used by 27% of hospitals. SMART on FHIR compliant. Open sandbox available at fhir.cerner.com. Production access requires Oracle Health customer relationship.
Authentication
Sample Requests
Returns FHIR Patient resource. Use sandbox tenant ID ec2458f2-1e24-41c8-b71b-0e701af7583d for testing.
Hover any highlighted part to learn what it does
| Authorization | Bearer YOUR_ACCESS_TOKEN |
curl -X GET "https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"import requests
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
response = requests.get(
"https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}",
headers=headers,
)
print(response.json())const url = 'https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}';
const response = await fetch(url, {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "Bearer YOUR_ACCESS_TOKEN")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer YOUR_ACCESS_TOKEN"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://fhir-ehr-code.cerner.com/r4/{tenantId}/Patient/{patientId}";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: Bearer YOUR_ACCESS_TOKEN"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Register a free developer account at https://code.cerner.com
- Sandbox tenant ID: ec2458f2-1e24-41c8-b71b-0e701af7583d
- Sandbox base URL: https://fhir-ehr-code.cerner.com/r4/{tenantId}
- Get sandbox test patient IDs from https://fhir.cerner.com/millennium/r4/individuals/patient/
- For production: register app at https://code.cerner.com and get customer go-live
- Full FHIR resource reference at https://fhir.cerner.com/millennium/r4/
What can you build with Oracle Health (Cerner) FHIR API?
Oracle Health (Cerner) FHIR API is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
OAuth 2.0. OAuth lets your app act on behalf of a user. You redirect them to authorise access, receive a token, then use that token in requests. Best for accessing user-owned data. Oracle Health (Cerner) FHIR API is free to use up to a usage limit, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?