curl --request POST \
--url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/context \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data @- <<EOF
{
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
EOFThis response has no body data.Provide clinical context and patient information for ambient session
curl --request POST \
--url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/context \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data @- <<EOF
{
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "IMO"
}
],
"diagnosis_note": "Hypertension"
}
]
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"provider": {
"provider_role": "ATTENDING",
"specialty": "CARDIOLOGY"
},
"sections": [
{
"loinc": "10164-2"
}
],
"visit": {
"chief_complaint": "Headache (Patient's primary symptom or problem stated in their own words)",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
}
}
EOFThis response has no body data.visit and provider_role fields.visit field within the payload. The visit field contains information about the visit such as chief complaint, encounter type, reason for visit, and visit type.provider_role field within the payload. The provider_role field contains information about the provider.Codes section to provide additional context for a session, such as medical codes for a diagnosis.
The type field in the Codes section can have one of the following values:
ICD10 (Recommended)
IMO
chief_complaint and reason_for_visit fields must not exceed 255 characters.
visit_type, encounter_type, and provider_role fields function as enums and only accept a specific set of predefined string values. You must use one of the allowed values for these fields, as any other string will cause the request to fail.
import requests
ambient_session_id = "123dfg-456dfg-789dfg-012dfg"
url = f"https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/context"
headers = {
"sdp_suki_token": "<sdp_suki_token>",
"Content-Type": "application/json"
}
payload = {
"provider": {
"specialty": "CARDIOLOGY",
"provider_role": "ATTENDING"
},
"patient": {
"dob": "2000-01-01",
"sex": "male"
},
"visit": {
"chief_complaint": "Headache",
"encounter_type": "AMBULATORY",
"reason_for_visit": "Follow-up for migraines",
"visit_type": "ESTABLISHED_PATIENT"
},
"sections": [
{"loinc": "10164-2"},
{"loinc": "48765-2"}
],
"diagnoses": {
"values": [
{
"codes": [
{
"code": "30422",
"description": "Essential hypertension",
"type": "ICD10"
}
],
"diagnosis_note": "Hypertension"
}
]
}
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
print("Context seeded successfully")
else:
print(f"Failed to seed context: {response.status_code}")
print(response.json())
const ambientSessionId = '123dfg-456dfg-789dfg-012dfg';
const response = await fetch(
`https://sdp.suki.ai/api/v1/ambient/session/${ambientSessionId}/context`,
{
method: 'POST',
headers: {
'sdp_suki_token': '<sdp_suki_token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
provider: {
specialty: 'CARDIOLOGY',
provider_role: 'ATTENDING'
},
patient: {
dob: '2000-01-01',
sex: 'male'
},
visit: {
chief_complaint: 'Headache',
encounter_type: 'AMBULATORY',
reason_for_visit: 'Follow-up for migraines',
visit_type: 'ESTABLISHED_PATIENT'
},
sections: [
{ loinc: '10164-2' },
{ loinc: '48765-2' }
],
diagnoses: {
values: [
{
codes: [
{
code: '30422',
description: 'Essential hypertension',
type: 'ICD10'
}
],
diagnosis_note: 'Hypertension'
}
]
}
})
}
);
if (response.ok) {
console.log('Context seeded successfully');
} else {
const error = await response.json();
console.error(`Failed to seed context: ${response.status}`, error);
}
sdp_suki_token
ambient_session_id
Context
Optional - Information about the diagnoses
Show child attributes
Optional - Information about the patient
Show child attributes
Optional - Information about the provider
Show child attributes
Optional - Information about the sections to be generated. If not provided, all supported note-sections will be generated.
Show child attributes
Optional - Information about the visit
Show child attributes