Patient Summary Retrieval
Get Patient Summary Using Partner Identifiers
Retrieve the comprehensive Patient Summary object using your internal FHIR identifiers
Listen to this pageabout 1 min
GET
/
api
/
v1
/
patient-summary
/
encounter
/
{fhir_encounter_id}
/
practitioner
/
{fhir_practitioner_id}
cURL
curl --request GET \
--url https://sdp.suki.ai/api/v1/patient-summary/encounter/enc-123/practitioner/pract-456 \
--header 'sdp_suki_token: <sdp_suki_token>' \
--header 'sdp_provider_id: <sdp_provider_id>'import requests
import json
BASE_URL = "https://sdp.suki.ai"
sdp_token = "<sdp_suki_token>"
encounter_id = "enc-123"
practitioner_id = "pract-456"
url = f"{BASE_URL}/api/v1/patient-summary/encounter/{encounter_id}/practitioner/{practitioner_id}"
headers = {"sdp_suki_token": sdp_token}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
summary = response.json()
print(f"Patient Summary: {summary['title']}")
print(f"Generated: {summary['generated_at']}")
print(f"\nSections:")
for section in summary.get("sections", []):
print(f"\n{section['heading']}:")
print(section['content'])const BASE_URL = "https://sdp.suki.ai";
const sdpToken = "<sdp_suki_token>";
const encounterId = "enc-123";
const practitionerId = "pract-456";
const url = `${BASE_URL}/api/v1/patient-summary/encounter/${encounterId}/practitioner/${practitionerId}`;
const response = await fetch(url, {
headers: { sdp_suki_token: sdpToken },
});
if (!response.ok) {
throw new Error(`Failed to retrieve summary: ${response.status}`);
}
const summary = await response.json();
console.log(`Patient Summary: ${summary.title}`);
console.log(`Generated: ${summary.generated_at}`);
console.log("\nSections:");
summary.sections?.forEach((section: any) => {
console.log(`\n${section.heading}:`);
console.log(section.content);
});<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"sdp_suki_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("sdp_suki_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}")
.header("sdp_suki_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["sdp_suki_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"patient_summary": {
"sections": [
{
"contents": [
{
"problem": {
"description": "Asthma"
},
"text": "Patient presents with shortness of breath.",
"visit": {
"date": "2026-05-22T10:00:00Z",
"description": "Follow-up for asthma"
}
}
],
"section_type": "ABOUT_VISIT",
"snippet_index": 0,
"title": "About Visit"
}
],
"updated_at": "2026-05-22T10:00:00Z"
}
}{
"code": 400,
"message": "invalid request"
}{
"code": 401,
"message": "invalid token"
}{
"code": 404,
"message": "not found"
}{
"code": 500,
"message": "internal server error"
}Use this endpoint to retrieve full Patient Summary object using your internal FHIR identifiers instead of the
patient_summary_id.
Use this API when you do not have the patient_summary_id returned by Suki. Suki uses the fhir_encounter_id and fhir_practitioner_id to locate the corresponding Patient Summary.
Before calling this endpoint:
- Ingest the required Patient, Encounter, and Practitioner resources using the CKG Data Ingestion APIs.
- Ensure the
fhir_encounter_idandfhir_practitioner_idmatch the identifiers in the ingested FHIR data.
Response object structure
The generated Patient Summary object includes the following sections:- About Visit - Information about the visit, including the date, reason for visit, and provider information.
- Patient Summary - A summary of the patient’s medical history, including their medications, allergies, and chronic conditions.
- Previous Visit - A summary of the patient’s previous visit, including the date, reason for visit, and provider information.
- Problems - A list of the patient’s problems, including their medications, allergies, and chronic conditions.
Endpoint reference
Authorizations
Headers
Path Parameters
Last modified on November 25, 2026
Was this page helpful?
cURL
curl --request GET \
--url https://sdp.suki.ai/api/v1/patient-summary/encounter/enc-123/practitioner/pract-456 \
--header 'sdp_suki_token: <sdp_suki_token>' \
--header 'sdp_provider_id: <sdp_provider_id>'import requests
import json
BASE_URL = "https://sdp.suki.ai"
sdp_token = "<sdp_suki_token>"
encounter_id = "enc-123"
practitioner_id = "pract-456"
url = f"{BASE_URL}/api/v1/patient-summary/encounter/{encounter_id}/practitioner/{practitioner_id}"
headers = {"sdp_suki_token": sdp_token}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
summary = response.json()
print(f"Patient Summary: {summary['title']}")
print(f"Generated: {summary['generated_at']}")
print(f"\nSections:")
for section in summary.get("sections", []):
print(f"\n{section['heading']}:")
print(section['content'])const BASE_URL = "https://sdp.suki.ai";
const sdpToken = "<sdp_suki_token>";
const encounterId = "enc-123";
const practitionerId = "pract-456";
const url = `${BASE_URL}/api/v1/patient-summary/encounter/${encounterId}/practitioner/${practitionerId}`;
const response = await fetch(url, {
headers: { sdp_suki_token: sdpToken },
});
if (!response.ok) {
throw new Error(`Failed to retrieve summary: ${response.status}`);
}
const summary = await response.json();
console.log(`Patient Summary: ${summary.title}`);
console.log(`Generated: ${summary.generated_at}`);
console.log("\nSections:");
summary.sections?.forEach((section: any) => {
console.log(`\n${section.heading}:`);
console.log(section.content);
});<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"sdp_suki_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("sdp_suki_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}")
.header("sdp_suki_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdp.suki.ai/api/v1/patient-summary/encounter/{fhir_encounter_id}/practitioner/{fhir_practitioner_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["sdp_suki_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"patient_summary": {
"sections": [
{
"contents": [
{
"problem": {
"description": "Asthma"
},
"text": "Patient presents with shortness of breath.",
"visit": {
"date": "2026-05-22T10:00:00Z",
"description": "Follow-up for asthma"
}
}
],
"section_type": "ABOUT_VISIT",
"snippet_index": 0,
"title": "About Visit"
}
],
"updated_at": "2026-05-22T10:00:00Z"
}
}{
"code": 400,
"message": "invalid request"
}{
"code": 401,
"message": "invalid token"
}{
"code": 404,
"message": "not found"
}{
"code": 500,
"message": "internal server error"
}